diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-06-15 13:53:27 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-06-15 13:53:27 +0300 |
commit | 586ebd520657eaed361968c55c1ef3e268cf5053 (patch) | |
tree | ed4753c30af505441eb17519d22bb6b6a4a55b32 /gost_omac.c | |
parent | 25729ddc501fecd873943450dec45e15d885c20f (diff) | |
download | gost-engine-586ebd520657eaed361968c55c1ef3e268cf5053.zip gost-engine-586ebd520657eaed361968c55c1ef3e268cf5053.tar.gz gost-engine-586ebd520657eaed361968c55c1ef3e268cf5053.tar.bz2 |
Bugfix - copy dgst context
Diffstat (limited to 'gost_omac.c')
-rw-r--r-- | gost_omac.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gost_omac.c b/gost_omac.c index 23872bc..fa7ab74 100644 --- a/gost_omac.c +++ b/gost_omac.c @@ -89,6 +89,10 @@ int omac_imit_copy(EVP_MD_CTX *to, const EVP_MD_CTX *from) { return 0; } + if (c_to->cmac_ctx == c_from->cmac_ctx) + { + return 1; + } return CMAC_CTX_copy(c_to->cmac_ctx, c_from->cmac_ctx); } |