]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
cmac64: fix nettle_block16 usage
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Mon, 26 Aug 2019 18:20:22 +0000 (21:20 +0300)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 3 Sep 2019 16:46:54 +0000 (18:46 +0200)
CMAC64 uses block8, rather than block16.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
cmac64.c

index 2fbffc9b5ea620ace588ae14edc6feb97f89a78e..636635ba478bd19d46c3eb253d4dd62b0d3cfc8d 100644 (file)
--- 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
    */