From: Dmitry Belyavskiy Date: Fri, 15 Jun 2018 10:53:27 +0000 (+0300) Subject: Bugfix - copy dgst context X-Git-Tag: v3.0.0~412^2~6 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=586ebd520657eaed361968c55c1ef3e268cf5053;hp=25729ddc501fecd873943450dec45e15d885c20f;p=openssl-gost%2Fengine.git Bugfix - copy dgst context --- 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); }