summaryrefslogtreecommitdiff
path: root/siv-cmac.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2019-05-15 10:11:22 +0200
committerNiels Möller <nisse@lysator.liu.se>2019-05-15 10:11:22 +0200
commit2b5dcfed94d66a3207f8bbd6d043e17532a88db8 (patch)
tree6a098be22eafdbf9658c1cc6c5a55fa4bdbc3011 /siv-cmac.h
parentef82f2281f7c2459cd8fafa1e50598069c6a3732 (diff)
downloadnettle-2b5dcfed94d66a3207f8bbd6d043e17532a88db8.tar.gz
Require non-empty nonce for SIV mode.
Diffstat (limited to 'siv-cmac.h')
-rw-r--r--siv-cmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/siv-cmac.h b/siv-cmac.h
index 199e1402..a56dfd79 100644
--- a/siv-cmac.h
+++ b/siv-cmac.h
@@ -57,6 +57,7 @@ extern "C" {
/* For SIV, the block size of the underlying cipher shall be 128 bits. */
#define SIV_BLOCK_SIZE 16
#define SIV_DIGEST_SIZE 16
+#define SIV_MIN_NONCE_SIZE 1
void
siv_cmac_set_key(struct cmac128_ctx *siv_cmac_ctx, void *cmac_cipher_ctx, void *cipher_ctx,