]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gosthash.c
Merge branch 'no_gost94_sig' into gost12_algs
[openssl-gost/engine.git] / gosthash.c
index b3d80d4ac62edb2fbe91df823100d391dfb426d8..036a2b3520f85319bc324b7e1ce792943affd314 100644 (file)
@@ -255,6 +255,8 @@ int finish_hash(gost_hash_ctx * ctx, byte * hashval)
         fin_len += ctx->left;
     }
     memset(buf, 0, 32);
+    if (fin_len == 0)
+        hash_step(ctx->cipher_ctx, H, buf);
     bptr = buf;
     fin_len <<= 3;              /* Hash length in BITS!! */
     while (fin_len > 0) {