Skip to content

Commit 8241540

Browse files
MironenkoCopilot
andcommitted
Fix setting Grasshopper MAC size > 8 via openssl-tool
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5209f5e commit 8241540

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gost_eng_pmeth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static int pkey_gost_magma_mac_ctrl_str(EVP_PKEY_CTX* ctx,
282282
static int pkey_gost_grasshopper_mac_ctrl_str(EVP_PKEY_CTX* ctx,
283283
const char* type, const char* value)
284284
{
285-
return pkey_gost_omac_ctrl_str(ctx, type, value, 8);
285+
return pkey_gost_omac_ctrl_str(ctx, type, value, 16);
286286
}
287287

288288
static int pkey_gost_mac_signctx(EVP_PKEY_CTX* ctx, unsigned char* sig,

0 commit comments

Comments
 (0)