]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - hmac-sha256.h
+RC5 +size-statistics tool +small modification to nessie_bc_test (optional free(...
[avr-crypto-lib.git] / hmac-sha256.h
index 9bdd560d0432ffb60df33f4f87774ef31ee61ff5..1e602e7da6edabce31259762def339394fe67d4c 100644 (file)
@@ -4,7 +4,7 @@
 #include "sha256.h"
 
 #define HMAC_BITS SHA256_HASH_BITS
-#define HMAC_BYTES (HMAC_BITS/8)
+#define HMAC_BYTES ((HMAC_BITS+7)/8)
 
 typedef sha256_ctx_t hmac_sha256_ctx_t;