diff options
author | Niels Möller <nisse@lysator.liu.se> | 2019-05-15 10:11:22 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2019-05-15 10:11:22 +0200 |
commit | 2b5dcfed94d66a3207f8bbd6d043e17532a88db8 (patch) | |
tree | 6a098be22eafdbf9658c1cc6c5a55fa4bdbc3011 /siv-cmac.h | |
parent | ef82f2281f7c2459cd8fafa1e50598069c6a3732 (diff) | |
download | nettle-2b5dcfed94d66a3207f8bbd6d043e17532a88db8.tar.gz |
Require non-empty nonce for SIV mode.
Diffstat (limited to 'siv-cmac.h')
-rw-r--r-- | siv-cmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |