mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
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:
parent
8d8b579597
commit
751a4770f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149169
@ -734,8 +734,10 @@ int rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBit
|
||||
int i = 0;
|
||||
u32 temp;
|
||||
|
||||
#ifdef _KERNEL
|
||||
KASSERT(keyBits == 128 || keyBits == 192 || keyBits == 256,
|
||||
("Invalid key size (%d).", keyBits));
|
||||
#endif
|
||||
rk[0] = GETU32(cipherKey );
|
||||
rk[1] = GETU32(cipherKey + 4);
|
||||
rk[2] = GETU32(cipherKey + 8);
|
||||
|
Loading…
Reference in New Issue
Block a user