summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-08-26 21:20:22 +0300
committerNiels Möller <nisse@lysator.liu.se>2019-09-03 18:46:54 +0200
commit8147b2b31c10334908bc979dcf2c31aca4293faf (patch)
tree8142f00f5228a5c58b2806083172415720f870b6
parentfaed9ae6b49e2002c499f1f0551b65ed1a1d8bd4 (diff)
downloadnettle-8147b2b31c10334908bc979dcf2c31aca4293faf.tar.gz
cmac64: fix nettle_block16 usage
CMAC64 uses block8, rather than block16. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
-rw-r--r--cmac64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmac64.c b/cmac64.c
index 2fbffc9b..636635ba 100644
--- a/cmac64.c
+++ b/cmac64.c
@@ -98,7 +98,7 @@ cmac64_update(struct cmac64_ctx *ctx, const void *cipher,
nettle_cipher_func *encrypt,
size_t msg_len, const uint8_t *msg)
{
- union nettle_block16 Y;
+ union nettle_block8 Y;
/*
* check if we expand the block
*/