X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_omac.c;h=fa7ab746ba5119a485003521324f17803f47ab33;hb=6e163b2cdd1233b2b0f46ddd2c9e0fdab0d318f8;hp=23872bc8f72d21e52bd594998618c2f3597a2d17;hpb=920ae61478fa9fc91068910254ca130637ce045a;p=openssl-gost%2Fengine.git 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); }