summaryrefslogtreecommitdiffstats
path: root/src/crypto/drbg.c
diff options
context:
space:
mode:
authorMichael Brown2012-03-16 20:52:39 +0100
committerMichael Brown2012-03-18 13:26:33 +0100
commitb0a1ad9242645af9f74e9eb65ffba37f322b64f9 (patch)
tree6347473ef386714e74eb5d1e9c0c3f25f2d24f21 /src/crypto/drbg.c
parent[libc] Move VA_ARG_COUNT() macro to stdarg.h (diff)
downloadipxe-b0a1ad9242645af9f74e9eb65ffba37f322b64f9.tar.gz
ipxe-b0a1ad9242645af9f74e9eb65ffba37f322b64f9.tar.xz
ipxe-b0a1ad9242645af9f74e9eb65ffba37f322b64f9.zip
[rng] Fix build error when assertions are enabled
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto/drbg.c')
-rw-r--r--src/crypto/drbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/drbg.c b/src/crypto/drbg.c
index afd75da3..809de372 100644
--- a/src/crypto/drbg.c
+++ b/src/crypto/drbg.c
@@ -128,8 +128,8 @@ int drbg_instantiate ( struct drbg_state *state, const void *personal,
state, strerror ( rc ) );
return rc;
}
- assert ( len >= min_len );
- assert ( len <= sizeof ( data ) );
+ assert ( len >= ( int ) min_len );
+ assert ( len <= ( int ) sizeof ( data ) );
/* 9. initial_working_state = Instantiate_algorithm (
* entropy_input, nonce, personalization_string ).