summaryrefslogtreecommitdiff
path: root/siv-cmac.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2019-05-15 10:24:48 +0200
committerNiels Möller <nisse@lysator.liu.se>2019-05-15 10:24:48 +0200
commitf8c206ed23e98a62c2b4d17237d6c0a2f6050843 (patch)
tree0bd28bfbb31f074a60752d91bc808796685f9e9d /siv-cmac.h
parent2b5dcfed94d66a3207f8bbd6d043e17532a88db8 (diff)
downloadnettle-f8c206ed23e98a62c2b4d17237d6c0a2f6050843.tar.gz
New SIV key size constants. Use in tests.
Diffstat (limited to 'siv-cmac.h')
-rw-r--r--siv-cmac.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/siv-cmac.h b/siv-cmac.h
index a56dfd79..881a59ba 100644
--- a/siv-cmac.h
+++ b/siv-cmac.h
@@ -88,6 +88,8 @@ siv_cmac_decrypt_message(struct cmac128_ctx *siv_cmac_ctx, const void *cmac_ciph
#define SIV_CMAC_CTX(type) { struct CMAC128_CTX(type) siv_cmac; type siv_cipher; }
/* SIV_CMAC_AES128 */
+#define SIV_CMAC_AES128_KEY_SIZE 32
+
struct siv_cmac_aes128_ctx SIV_CMAC_CTX(struct aes128_ctx);
void
@@ -106,6 +108,8 @@ siv_cmac_aes128_decrypt_message(struct siv_cmac_aes128_ctx *ctx,
size_t mlength, uint8_t *dst, const uint8_t *src);
/* SIV_CMAC_AES256 */
+#define SIV_CMAC_AES256_KEY_SIZE 64
+
struct siv_cmac_aes256_ctx SIV_CMAC_CTX(struct aes256_ctx);
void