diff options
author | cperciva <cperciva@FreeBSD.org> | 2005-08-17 00:24:20 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2005-08-17 00:24:20 +0000 |
commit | bdfa6fbbb1a31a1cc16eb732d011224eeb422ce6 (patch) | |
tree | 1fe2873afd46989ce73df157131feb4d628108cb /sys/crypto | |
parent | 0dd6587c949ab49ccb9775fcd53b83bb0e8a6126 (diff) | |
download | FreeBSD-src-bdfa6fbbb1a31a1cc16eb732d011224eeb422ce6.zip FreeBSD-src-bdfa6fbbb1a31a1cc16eb732d011224eeb422ce6.tar.gz |
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
Diffstat (limited to 'sys/crypto')
-rw-r--r-- | sys/crypto/rijndael/rijndael-alg-fst.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/crypto/rijndael/rijndael-alg-fst.c b/sys/crypto/rijndael/rijndael-alg-fst.c index a0eb4fd..9f02aa6 100644 --- a/sys/crypto/rijndael/rijndael-alg-fst.c +++ b/sys/crypto/rijndael/rijndael-alg-fst.c @@ -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); |