X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_omac.c;h=daf5750354beaddafd20e6ae68922d68adc94c90;hb=6476d4d4966f6efcfd84c5d1c9c4e90d83aa9f14;hp=49113a5cf24da75be3bbe01202d8cf6889c1a1a6;hpb=d8195bfd8d86c542d7505a4f6214f99a5edae220;p=openssl-gost%2Fengine.git diff --git a/gost_omac.c b/gost_omac.c index 49113a5..daf5750 100644 --- a/gost_omac.c +++ b/gost_omac.c @@ -72,8 +72,7 @@ int omac_imit_final(EVP_MD_CTX *ctx, unsigned char *md) CMAC_Final(c->cmac_ctx, mac, &mac_size); - int md_size = EVP_MD_meth_get_result_size(EVP_MD_CTX_md(ctx)); - memcpy(md, mac, min(md_size, c->dgst_size)); + memcpy(md, mac, c->dgst_size); return 1; }