/titanic_41/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelUtil.c | 318 key->ck_count = 0; in get_rsa_private_key() 331 key->ck_count++; in get_rsa_private_key() 346 key->ck_count++; in get_rsa_private_key() 357 key->ck_count++; in get_rsa_private_key() 368 key->ck_count++; in get_rsa_private_key() 380 key->ck_count++; in get_rsa_private_key() 392 key->ck_count++; in get_rsa_private_key() 404 key->ck_count++; in get_rsa_private_key() 444 key->ck_count = RSA_PUB_ATTR_COUNT; in get_rsa_public_key() 481 (key->ck_count > 0) && key->ck_attrs != NULL) { in free_key_attributes() [all …]
|
H A D | kernelKeys.c | 2068 key_by_value->ck_count = 2; in get_base_key_attributes() 2155 key_by_value->ck_count = 3; in get_base_key_attributes() 2197 obj_ndk.ndk_base_key.ck_count = 0; in derive_key_by_value() 2283 &obj_ndk.ndk_base_key.ck_count); in derive_key_by_value() 2318 &obj_ndk.ndk_base_key.ck_count); in derive_key_by_value()
|
/titanic_41/usr/src/uts/common/crypto/io/ |
H A D | dca_rsa.c | 442 if (dca_find_attribute(attr, key->ck_count, CKA_PUBLIC_EXPONENT)) in dca_rsainit() 450 if (dca_find_attribute(attr, key->ck_count, CKA_PRIVATE_EXPONENT)) in dca_rsainit() 460 if ((rv = dca_attr_lookup_uint8_array(attr, key->ck_count, CKA_MODULUS, in dca_rsainit() 479 if ((rv = dca_attr_lookup_uint8_array(attr, key->ck_count, expname, in dca_rsainit() 493 (void) dca_attr_lookup_uint8_array(attr, key->ck_count, in dca_rsainit() 497 (void) dca_attr_lookup_uint8_array(attr, key->ck_count, in dca_rsainit() 501 (void) dca_attr_lookup_uint8_array(attr, key->ck_count, in dca_rsainit() 505 (void) dca_attr_lookup_uint8_array(attr, key->ck_count, in dca_rsainit() 509 (void) dca_attr_lookup_uint8_array(attr, key->ck_count, in dca_rsainit()
|
H A D | dca_dsa.c | 412 if (dca_attr_lookup_uint8_array(attr, key->ck_count, CKA_PRIME, in dca_dsainit() 420 if (dca_attr_lookup_uint8_array(attr, key->ck_count, CKA_SUBPRIME, in dca_dsainit() 428 if (dca_attr_lookup_uint8_array(attr, key->ck_count, CKA_BASE, in dca_dsainit() 436 if (dca_attr_lookup_uint8_array(attr, key->ck_count, CKA_VALUE, in dca_dsainit()
|
H A D | ecc.c | 1199 (base_key->ck_count == 0)) { in ecc_nostore_key_derive() 1231 if ((value_idx = find_attr(attrs, base_key->ck_count, in ecc_nostore_key_derive() 1236 if ((params_idx = find_attr(attrs, base_key->ck_count, in ecc_nostore_key_derive()
|
H A D | dprov.c | 8408 base_key->ck_count, DPROV_CKA_BASE, &tmp, in dprov_key_task() 8411 base_key->ck_count, DPROV_CKA_PRIME, &tmp, in dprov_key_task() 8414 base_key->ck_count, DPROV_CKA_VALUE, &tmp, in dprov_key_task() 8941 ret_key->ck_count = key->ck_count; in dprov_key_attr_asymmetric() 8967 ret_key->ck_count = DPROV_MAX_ATTR; in dprov_key_attr_asymmetric() 9711 if ((attr_idx = dprov_find_attr(key->ck_attrs, key->ck_count, in dprov_get_key_attr_scalar_common() 9749 if ((attr_idx = dprov_find_attr(key->ck_attrs, key->ck_count, in dprov_get_key_attr_array()
|
H A D | crypto.c | 2166 if (key->ck_count == 0 || key->ck_attrs == NULL) in crypto_free_key_attributes() 2170 len = key->ck_count * sizeof (crypto_object_attribute_t); in crypto_free_key_attributes() 2173 for (i = 0; i < key->ck_count; i++) { in crypto_free_key_attributes() 2406 count = STRUCT_FGET(key, ck_count); in copyin_key() 2411 out_key->ck_count = count; in copyin_key() 2415 out_key->ck_count = 0; in copyin_key()
|
H A D | dca.c | 3570 (key->ck_count == 0)) { in dca_get_key_attr()
|
/titanic_41/usr/src/uts/common/inet/kssl/ |
H A D | ksslioctl.c | 74 attrs_size = privkey->ck_count * sizeof (crypto_object_attribute_t); in privateKey_free() 75 for (i = 0; i < privkey->ck_count; i++) { in privateKey_free() 296 kssl_privkey->ck_count = kssl_params->kssl_privkey.ks_count; in extract_private_key() 309 attrs_size = kssl_privkey->ck_count * in extract_private_key() 321 for (i = 0; i < kssl_privkey->ck_count; i++) { in extract_private_key() 734 count = kp->ke_private_key->ck_count; in kssl_get_obj_handle()
|
/titanic_41/usr/src/uts/common/crypto/core/ |
H A D | kcf_prov_lib.c | 287 count = in_key->ck_count; in crypto_copy_key_to_ctx() 315 key->ck_count = count; in crypto_copy_key_to_ctx() 549 for (i = 0; i < key->ck_count; i++) { in crypto_get_key_attr()
|
/titanic_41/usr/src/uts/common/sys/crypto/ |
H A D | common.h | 382 #define ck_count cku_data.cku_key_attrs.cku_a_count macro
|