Skip to content

Commit e44a4b7

Browse files
Sergei Ianovichyanovich
authored andcommitted
fixup! Allow kuznyechik-ctr-acpkm-omac PKCS12 integration
1 parent fa4d6b0 commit e44a4b7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gost_grasshopper_cipher.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,13 @@ static int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX *ctx, int type, int arg, v
902902
*(int *) ptr = KUZNYECHIK_MAC_MAX_SIZE;
903903
return 1;
904904
}
905+
case EVP_CTRL_PBE_PRF_NID: {
906+
if (ptr) {
907+
*((int *)ptr) = NID_id_tc26_hmac_gost_3411_2012_512;
908+
return 1;
909+
}
910+
return 0;
911+
}
905912
case EVP_CTRL_PROCESS_UNPROTECTED:
906913
{
907914
STACK_OF(X509_ATTRIBUTE) *x = ptr;

0 commit comments

Comments
 (0)