diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2015-09-06 20:45:33 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2015-09-06 20:45:33 +0300 |
commit | 7ed0037f1e9192a42f4b244221d3bddccc10be63 (patch) | |
tree | 620ee6154ee22e67f5daf81732cdd472d4851332 | |
parent | ce40d60dfafceef6b964d741aba51ff068c59213 (diff) | |
download | gost-engine-7ed0037f1e9192a42f4b244221d3bddccc10be63.zip gost-engine-7ed0037f1e9192a42f4b244221d3bddccc10be63.tar.gz gost-engine-7ed0037f1e9192a42f4b244221d3bddccc10be63.tar.bz2 |
Correct size of context
-rw-r--r-- | gost_md2012.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gost_md2012.c b/gost_md2012.c index 092de26..08f3724 100644 --- a/gost_md2012.c +++ b/gost_md2012.c @@ -83,7 +83,7 @@ static int gost_digest_final(EVP_MD_CTX *ctx, unsigned char *md) static int gost_digest_copy(EVP_MD_CTX *to, const EVP_MD_CTX *from) { if (to->md_data && from->md_data) - memcpy(to->md_data, from->md_data, sizeof(*(from->md_data))); + memcpy(to->md_data, from->md_data, sizeof(gost2012_hash_ctx)); return 1; } |