diff options
-rw-r--r-- | pkcs11.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1796,10 +1796,9 @@ static CK_RV generate_keypair_rsa_pkcs(p11_session_t *session, } /* - * We require a key size, and if either key is a token object, the - * other must be too. + * We require a key size. */ - if (keysize == 0 || public_handle_flavor != private_handle_flavor) + if (keysize == 0) return CKR_TEMPLATE_INCOMPLETE; /* |