| /illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
| H A D | list.c | 122 if (key->keyclass == KMF_ASYM_PUB) { in describeKey() 130 if (key->keyclass == KMF_ASYM_PRI) { in describeKey() 138 if (key->keyclass == KMF_SYMMETRIC) { in describeKey() 169 if (keys[i].keyclass == KMF_SYMMETRIC) { in pk_show_keys() 314 KMF_KEY_CLASS keyclass; in list_pk11_objects() local 368 keyclass = KMF_ASYM_PRI; in list_pk11_objects() 370 KMF_KEYCLASS_ATTR, &keyclass, in list_pk11_objects() 371 sizeof (keyclass)); in list_pk11_objects() 390 keyclass = KMF_SYMMETRIC; in list_pk11_objects() 392 KMF_KEYCLASS_ATTR, &keyclass, in list_pk11_objects() [all …]
|
| H A D | delete.c | 235 KMF_KEY_CLASS keyclass; in delete_nss_keys() local 266 keyclass = KMF_ASYM_PRI; in delete_nss_keys() 268 &keyclass, sizeof (keyclass)); in delete_nss_keys() 281 keyclass = KMF_SYMMETRIC; in delete_nss_keys() 283 &keyclass, sizeof (keyclass)); in delete_nss_keys() 296 keyclass = KMF_ASYM_PUB; in delete_nss_keys() 298 &keyclass, sizeof (keyclass)); in delete_nss_keys() 428 KMF_KEY_CLASS keyclass; in delete_pk11_keys() local 473 keyclass = KMF_ASYM_PRI; in delete_pk11_keys() 475 &keyclass, sizeof (keyclass)); in delete_pk11_keys() [all …]
|
| H A D | signcsr.c | 266 KMF_KEY_CLASS keyclass = KMF_ASYM_PRI; in pk_signcsr_files() local 316 &keyclass, sizeof (keyclass)); in pk_signcsr_files() 367 KMF_KEY_CLASS keyclass = KMF_ASYM_PRI; in pk_signcsr_pk11_nss() local 438 &keyclass, sizeof (keyclass)); in pk_signcsr_pk11_nss()
|
| H A D | export.c | 523 if (rv == KMF_OK && key.keyclass == KMF_SYMMETRIC) { in pk_export_pk11_keys() 576 &key.keyclass, sizeof (KMF_KEY_CLASS)); in pk_export_pk11_keys()
|
| /illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
| H A D | key_mgr.c | 72 CK_ULONG i, keyclass, subclass = 0; in key_mgr_generate_key_pair() local 88 keyclass = *(CK_OBJECT_CLASS *)publ_tmpl[i].pValue; in key_mgr_generate_key_pair() 89 if (keyclass != CKO_PUBLIC_KEY) { in key_mgr_generate_key_pair() 101 keyclass = *(CK_OBJECT_CLASS *)priv_tmpl[i].pValue; in key_mgr_generate_key_pair() 102 if (keyclass != CKO_PRIVATE_KEY) { in key_mgr_generate_key_pair() 362 CK_ULONG keyclass, keytype; in key_mgr_unwrap_key() local 383 keyclass = CKO_SECRET_KEY; in key_mgr_unwrap_key() 391 keyclass = *(CK_OBJECT_CLASS *)attributes[i].pValue; in key_mgr_unwrap_key() 402 if (found_class == FALSE || (found_type == FALSE && keyclass != in key_mgr_unwrap_key() 409 if (keyclass != CKO_SECRET_KEY) { in key_mgr_unwrap_key() [all …]
|
| H A D | mech_rsa.c | 61 CK_OBJECT_CLASS keyclass; in ckm_rsa_encrypt() local 68 keyclass = *(CK_OBJECT_CLASS *)attr->pValue; in ckm_rsa_encrypt() 70 if (keyclass != CKO_PUBLIC_KEY) { in ckm_rsa_encrypt() 90 CK_OBJECT_CLASS keyclass; in ckm_rsa_decrypt() local 99 keyclass = *(CK_OBJECT_CLASS *)attr->pValue; in ckm_rsa_decrypt() 103 if (keyclass != CKO_PRIVATE_KEY) { in ckm_rsa_decrypt() 122 CK_OBJECT_CLASS keyclass; in ckm_rsa_sign() local 130 keyclass = *(CK_OBJECT_CLASS *)attr->pValue; in ckm_rsa_sign() 133 if (keyclass != CKO_PRIVATE_KEY) { in ckm_rsa_sign() 152 CK_OBJECT_CLASS keyclass; in ckm_rsa_verify() local [all …]
|
| /illumos-gate/usr/src/lib/libelfsign/common/ |
| H A D | elfcertlib.c | 346 KMF_KEY_CLASS keyclass; in elfcertlib_loadprivatekey() local 353 keyclass = KMF_ASYM_PRI; in elfcertlib_loadprivatekey() 366 &keyclass, sizeof (keyclass)); in elfcertlib_loadprivatekey() 406 KMF_KEY_CLASS keyclass; in elfcertlib_loadtokenkey() local 430 keyclass = KMF_ASYM_PRI; in elfcertlib_loadtokenkey() 447 &keyclass, sizeof (keyclass)); in elfcertlib_loadtokenkey()
|
| /illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
| H A D | nss_spi.c | 976 privkey->keyclass = KMF_ASYM_PRI; in NSS_CreateKeypair() 983 pubkey->keyclass = KMF_ASYM_PUB; in NSS_CreateKeypair() 1155 if (key->keyclass != KMF_ASYM_PUB && in NSS_DeleteKey() 1156 key->keyclass != KMF_ASYM_PRI && in NSS_DeleteKey() 1157 key->keyclass != KMF_SYMMETRIC) in NSS_DeleteKey() 1175 if (key->keyclass == KMF_ASYM_PUB) { in NSS_DeleteKey() 1178 } else if (key->keyclass == KMF_ASYM_PRI) { in NSS_DeleteKey() 1181 } else if (key->keyclass == KMF_SYMMETRIC) { in NSS_DeleteKey() 1192 if (key->keyclass == KMF_ASYM_PUB) { in NSS_DeleteKey() 1194 } else if (key->keyclass == KMF_ASYM_PRI) { in NSS_DeleteKey() [all …]
|
| /illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
| H A D | pkcs11_spi.c | 1729 privkey->keyclass = KMF_ASYM_PRI; in KMFPK11_CreateKeypair() 1734 pubkey->keyclass = KMF_ASYM_PUB; in KMFPK11_CreateKeypair() 1775 privkey->keyclass = KMF_ASYM_PRI; in KMFPK11_CreateKeypair() 1780 pubkey->keyclass = KMF_ASYM_PUB; in KMFPK11_CreateKeypair() 1826 privkey->keyclass = KMF_ASYM_PRI; in KMFPK11_CreateKeypair() 1831 pubkey->keyclass = KMF_ASYM_PUB; in KMFPK11_CreateKeypair() 1961 if (key->keyclass != KMF_ASYM_PUB && in KMFPK11_DeleteKey() 1962 key->keyclass != KMF_ASYM_PRI && in KMFPK11_DeleteKey() 1963 key->keyclass != KMF_SYMMETRIC) in KMFPK11_DeleteKey() 2141 KMF_KEY_CLASS *keyclass) in getObjectKeyclass() argument [all …]
|
| /illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
| H A D | keyop.c | 138 if (key->keyclass == KMF_ASYM_PUB || in kmf_delete_key_from_keystore() 139 key->keyclass == KMF_ASYM_PRI) { in kmf_delete_key_from_keystore() 142 } else if (key->keyclass == KMF_SYMMETRIC) { in kmf_delete_key_from_keystore()
|
| /illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
| H A D | openssl_spi.c | 1558 privkey->keyclass = KMF_ASYM_PRI; in OpenSSL_CreateKeypair() 1567 pubkey->keyclass = KMF_ASYM_PUB; in OpenSSL_CreateKeypair() 1605 privkey->keyclass = KMF_ASYM_PRI; in OpenSSL_CreateKeypair() 1617 pubkey->keyclass = KMF_ASYM_PUB; in OpenSSL_CreateKeypair() 1894 if (key->keyclass != KMF_ASYM_PUB && in OpenSSL_DeleteKey() 1895 key->keyclass != KMF_ASYM_PRI && in OpenSSL_DeleteKey() 1896 key->keyclass != KMF_SYMMETRIC) in OpenSSL_DeleteKey() 1899 if (key->keyclass == KMF_SYMMETRIC) { in OpenSSL_DeleteKey() 2236 KMF_KEY_CLASS keyclass = KMF_ASYM_PRI; in OpenSSL_FindPrikeyByCert() local 2257 KMF_KEYCLASS_ATTR, &keyclass, sizeof (keyclass)); in OpenSSL_FindPrikeyByCert() [all …]
|
| /illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
| H A D | softKeysUtil.c | 1256 CK_OBJECT_CLASS keyclass = CKO_SECRET_KEY; in soft_create_hmac_key() local 1269 keytemplate[0].pValue = &keyclass; in soft_create_hmac_key() 1270 keytemplate[0].ulValueLen = sizeof (keyclass); in soft_create_hmac_key()
|
| /illumos-gate/usr/src/lib/libkmf/include/ |
| H A D | kmftypes.h | 226 KMF_KEY_CLASS keyclass; member
|
| /illumos-gate/usr/src/uts/common/smbsrv/ndl/ |
| H A D | winreg.ndl | 217 IN winreg_string_t keyclass;
|