Support key type inference for CKM_GOSTR3410_KEY_PAIR_GEN

This commit is contained in:
Mathias Brossard 2012-06-28 16:56:59 +02:00
parent 3fc4547e45
commit bfbef6fe2b
1 changed files with 2 additions and 0 deletions

View File

@ -2584,6 +2584,8 @@ pkcs15_gen_keypair(struct sc_pkcs11_slot *slot, CK_MECHANISM_PTR pMechanism,
keytype = CKK_RSA;
else if (rv != CKR_OK && pMechanism->mechanism == CKM_EC_KEY_PAIR_GEN)
keytype = CKK_EC;
else if (rv != CKR_OK && pMechanism->mechanism == CKM_GOSTR3410_KEY_PAIR_GEN)
keytype = CKK_GOSTR3410;
else if (rv != CKR_OK)
goto kpgen_done;