From bdfa6fbbb1a31a1cc16eb732d011224eeb422ce6 Mon Sep 17 00:00:00 2001 From: cperciva Date: Wed, 17 Aug 2005 00:24:20 +0000 Subject: [PATCH] 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 --- sys/crypto/rijndael/rijndael-alg-fst.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/crypto/rijndael/rijndael-alg-fst.c b/sys/crypto/rijndael/rijndael-alg-fst.c index a0eb4fd850c..9f02aa648b0 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); -- 2.45.2