Unbreak the world build (in sbin/gbde). This file is used by both

kernel and world, so KASSERT() needs to be wrapped within an #ifdef
_KERNEL / #endif pair.

Reported by:	krion, tinderbox
This commit is contained in:
Colin Percival 2005-08-17 00:24:20 +00:00
parent 8d8b579597
commit 751a4770f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149169

View File

@ -734,8 +734,10 @@ int rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBit
int i = 0; int i = 0;
u32 temp; u32 temp;
#ifdef _KERNEL
KASSERT(keyBits == 128 || keyBits == 192 || keyBits == 256, KASSERT(keyBits == 128 || keyBits == 192 || keyBits == 256,
("Invalid key size (%d).", keyBits)); ("Invalid key size (%d).", keyBits));
#endif
rk[0] = GETU32(cipherKey ); rk[0] = GETU32(cipherKey );
rk[1] = GETU32(cipherKey + 4); rk[1] = GETU32(cipherKey + 4);
rk[2] = GETU32(cipherKey + 8); rk[2] = GETU32(cipherKey + 8);