X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_omac_acpkm.c;h=3061e36f8d13f3cb84e5d337ef184a86b6a58d52;hb=fd12b88c3392a300d94421f62cf870be8d4ef430;hp=9bdb05f0e510ae2be0957531bfa777e329e79788;hpb=6b41c2e3f9335af1437a05e6f48bfec7e1841a75;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; }