Fix in encrypt_decrypt(), initialize the mgf

This commit is contained in:
alegon01 2019-04-24 14:03:35 +02:00
parent f631b5f733
commit e21cb5712c
1 changed files with 1 additions and 1 deletions

View File

@ -5287,7 +5287,7 @@ static int encrypt_decrypt(CK_SESSION_HANDLE session,
CK_RV rv;
int pad;
CK_MECHANISM_TYPE hash_alg = CKM_SHA256;
CK_RSA_PKCS_MGF_TYPE mgf;
CK_RSA_PKCS_MGF_TYPE mgf = CKG_MGF1_SHA256;
CK_RSA_PKCS_OAEP_PARAMS oaep_params;
printf(" %s: ", p11_mechanism_to_name(mech_type));