Skip to content

Commit

Permalink
fixup! Allow kuznyechik-ctr-acpkm-omac PKCS12 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Ianovich authored and yanovich committed Nov 2, 2022
1 parent fa4d6b0 commit e44a4b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gost_grasshopper_cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,13 @@ static int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX *ctx, int type, int arg, v
*(int *) ptr = KUZNYECHIK_MAC_MAX_SIZE;
return 1;
}
case EVP_CTRL_PBE_PRF_NID: {
if (ptr) {
*((int *)ptr) = NID_id_tc26_hmac_gost_3411_2012_512;
return 1;
}
return 0;
}
case EVP_CTRL_PROCESS_UNPROTECTED:
{
STACK_OF(X509_ATTRIBUTE) *x = ptr;
Expand Down

0 comments on commit e44a4b7

Please sign in to comment.