aboutsummaryrefslogtreecommitdiff
path: root/gost_md2012.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2015-09-06 20:45:33 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2015-09-06 20:45:33 +0300
commit7ed0037f1e9192a42f4b244221d3bddccc10be63 (patch)
tree620ee6154ee22e67f5daf81732cdd472d4851332 /gost_md2012.c
parentce40d60dfafceef6b964d741aba51ff068c59213 (diff)
downloadgost-engine-7ed0037f1e9192a42f4b244221d3bddccc10be63.zip
gost-engine-7ed0037f1e9192a42f4b244221d3bddccc10be63.tar.gz
gost-engine-7ed0037f1e9192a42f4b244221d3bddccc10be63.tar.bz2
Correct size of context
Diffstat (limited to 'gost_md2012.c')
-rw-r--r--gost_md2012.c2
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;
}