X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_omac_acpkm.c;h=3061e36f8d13f3cb84e5d337ef184a86b6a58d52;hb=6476d4d4966f6efcfd84c5d1c9c4e90d83aa9f14;hp=9bdb05f0e510ae2be0957531bfa777e329e79788;hpb=d8195bfd8d86c542d7505a4f6214f99a5edae220;p=openssl-gost%2Fengine.git diff --git a/gost_omac_acpkm.c b/gost_omac_acpkm.c index 9bdb05f..3061e36 100644 --- a/gost_omac_acpkm.c +++ b/gost_omac_acpkm.c @@ -475,6 +475,13 @@ int omac_acpkm_imit_ctrl(EVP_MD_CTX *ctx, int type, int arg, void *ptr) } c->dgst_size = arg; break; + case NID_magma_cbc: + if (arg < 1 || arg > 8) { + GOSTerr(GOST_F_OMAC_ACPKM_IMIT_CTRL, GOST_R_INVALID_MAC_SIZE); + return 0; + } + c->dgst_size = arg; + break; default: return 0; }