]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_md.c
gost_crypt: process full available block in CFB and CNT mode
[openssl-gost/engine.git] / gost_md.c
index 54a2fe511f4912a12bb0b573c03edb32a76088c0..5d2c537a7acd95ef49f626490d71ce11014ed00d 100644 (file)
--- a/gost_md.c
+++ b/gost_md.c
@@ -30,7 +30,8 @@ EVP_MD *digest_gost(void)
             || !EVP_MD_meth_set_result_size(md, 32)
             || !EVP_MD_meth_set_input_blocksize(md, 32)
             || !EVP_MD_meth_set_app_datasize(md,
-                                             sizeof(struct ossl_gost_digest_ctx))
+                                             sizeof(struct
+                                                    ossl_gost_digest_ctx))
             || !EVP_MD_meth_set_init(md, gost_digest_init)
             || !EVP_MD_meth_set_update(md, gost_digest_update)
             || !EVP_MD_meth_set_final(md, gost_digest_final)
@@ -84,6 +85,7 @@ int gost_digest_copy(EVP_MD_CTX *to, const EVP_MD_CTX *from)
 int gost_digest_cleanup(EVP_MD_CTX *ctx)
 {
     if (EVP_MD_CTX_md_data(ctx))
-        memset(EVP_MD_CTX_md_data(ctx), 0, sizeof(struct ossl_gost_digest_ctx));
+        memset(EVP_MD_CTX_md_data(ctx), 0,
+               sizeof(struct ossl_gost_digest_ctx));
     return 1;
 }