From 2b5dcfed94d66a3207f8bbd6d043e17532a88db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Wed, 15 May 2019 10:11:22 +0200 Subject: Require non-empty nonce for SIV mode. --- siv-cmac.h | 1 + 1 file changed, 1 insertion(+) (limited to 'siv-cmac.h') 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, -- cgit v1.2.1