Use correct blocksize of 32 bytes for GOSTR3411-94 HMAC
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 16 Nov 2013 09:07:09 +0000 (11:07 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 16 Nov 2013 09:07:09 +0000 (11:07 +0200)
* cipher/md.c (md_open): Set macpads_Bsize to 32 for
GCRY_MD_GOST24311_94.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/md.c

index 3bfa3bd..65dadd1 100644 (file)
@@ -326,6 +326,9 @@ md_open (gcry_md_hd_t *h, int algo, int secure, int hmac)
               case GCRY_MD_SHA512:
                 ctx->macpads_Bsize = 128;
                 break;
+              case GCRY_MD_GOSTR3411_94:
+                ctx->macpads_Bsize = 32;
+                break;
               default:
                 ctx->macpads_Bsize = 64;
                 break;