Mercurial > illumos > illumos-gate
changeset 2938:e7f2842a0351
6452822 C_GenerateKeyPair failed to support CKM_RSA_PKCS_KEY_PAIR_GEN mechanism in dprov mode
author | mcpowers |
---|---|
date | Tue, 17 Oct 2006 11:47:02 -0700 |
parents | bc70052fc8ab |
children | fac46b1b7c81 |
files | usr/src/uts/common/crypto/io/dprov.c |
diffstat | 1 files changed, 2 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/crypto/io/dprov.c Tue Oct 17 10:29:00 2006 -0700 +++ b/usr/src/uts/common/crypto/io/dprov.c Tue Oct 17 11:47:02 2006 -0700 @@ -4212,13 +4212,6 @@ kmech->cm_param_len = 0; switch (kmech->cm_type) { - case AES_ECB_MECH_INFO_TYPE: - case BLOWFISH_ECB_MECH_INFO_TYPE: - case DES_ECB_MECH_INFO_TYPE: - case DES3_ECB_MECH_INFO_TYPE: - rv = CRYPTO_SUCCESS; - goto out; - case DES_CBC_MECH_INFO_TYPE: case DES3_CBC_MECH_INFO_TYPE: expected_param_len = DES_BLOCK_LEN; @@ -4237,20 +4230,10 @@ rv = copyin_aes_ctr_mech(umech, kmech, &error, mode); goto out; - case RC4_MECH_INFO_TYPE: - case RSA_PKCS_MECH_INFO_TYPE: - case RSA_X_509_MECH_INFO_TYPE: - case MD5_RSA_PKCS_MECH_INFO_TYPE: - case SHA1_RSA_PKCS_MECH_INFO_TYPE: - case SHA256_RSA_PKCS_MECH_INFO_TYPE: - case SHA384_RSA_PKCS_MECH_INFO_TYPE: - case SHA512_RSA_PKCS_MECH_INFO_TYPE: + default: + /* nothing to do - mechanism has no parameters */ rv = CRYPTO_SUCCESS; goto out; - - default: - rv = CRYPTO_MECHANISM_INVALID; - goto out; } if (param_len != expected_param_len) {