/titanic_41/usr/src/uts/common/crypto/api/ |
H A D | kcf_keys.c | 199 crypto_mechanism_t *mech, crypto_key_t *base_key, in crypto_key_derive() argument 211 rv = kcf_get_hardware_provider(mech->cm_type, base_key, in crypto_key_derive() 220 rv = KCF_PROV_KEY_DERIVE(real_provider, sid, mech, base_key, in crypto_key_derive() 225 attrs, count, new_key, NULL, 0, NULL, base_key, NULL, NULL); in crypto_key_derive()
|
/titanic_41/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelKeys.c | 1981 get_base_key_attributes(kernel_object_t *base_key, crypto_key_t *key_by_value) in get_base_key_attributes() argument 1988 switch (base_key->key_type) { in get_base_key_attributes() 1998 (void) pthread_mutex_lock(&base_key->object_mutex); in get_base_key_attributes() 2000 if (!base_key->is_lib_obj) { in get_base_key_attributes() 2005 if (base_key->class != CKO_PUBLIC_KEY && in get_base_key_attributes() 2006 base_key->class != CKO_PRIVATE_KEY) { in get_base_key_attributes() 2019 rv = kernel_get_attribute(base_key, &tmp); in get_base_key_attributes() 2029 rv = kernel_get_attribute(base_key, &tmp); in get_base_key_attributes() 2038 switch (base_key->class) { in get_base_key_attributes() 2040 big = OBJ_PUB_EC_POINT(base_key); in get_base_key_attributes() [all …]
|
/titanic_41/usr/src/uts/common/crypto/io/ |
H A D | ecc.c | 1172 crypto_key_t *base_key, crypto_object_attribute_t *in_attrs, in ecc_nostore_key_derive() argument 1198 if ((base_key->ck_format != CRYPTO_KEY_ATTR_LIST) || in ecc_nostore_key_derive() 1199 (base_key->ck_count == 0)) { in ecc_nostore_key_derive() 1230 attrs = base_key->ck_attrs; 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 | crypto.c | 6247 crypto_key_t base_key; in object_derive_key() local 6277 bzero(&base_key, sizeof (base_key)); in object_derive_key() 6290 &base_key, &key_rctl_bytes, &key_rctl_chk, &rv, &error)) { in object_derive_key() 6294 if ((rv = kcf_get_hardware_provider(mech.cm_type, &base_key, in object_derive_key() 6326 &handle, NULL, 0, NULL, &base_key, NULL, NULL); in object_derive_key() 6355 free_crypto_key(&base_key); in object_derive_key() 6405 crypto_key_t base_key; in nostore_derive_key() local 6437 bzero(&base_key, sizeof (base_key)); in nostore_derive_key() 6450 &base_key, &key_rctl_bytes, &key_rctl_chk, &rv, &error)) { in nostore_derive_key() 6454 if ((rv = kcf_get_hardware_provider(mech.cm_type, &base_key, in nostore_derive_key() [all …]
|
H A D | dprov.c | 4089 crypto_key_t *base_key, crypto_object_attribute_t *template, in dprov_key_derive() argument 4104 0, NULL, base_key, NULL, 0, NULL, 0, NULL, 0); in dprov_key_derive() 4974 crypto_key_t *base_key, crypto_object_attribute_t *template, in dprov_nostore_key_derive() argument 4990 0, NULL, base_key, NULL, 0, out_template, out_attribute_count, in dprov_nostore_key_derive() 8365 crypto_key_t *base_key; in dprov_key_task() local 8378 base_key = taskq_req->dr_key_req.kr_key; in dprov_key_task() 8402 if (base_key->ck_format != CRYPTO_KEY_ATTR_LIST) { in dprov_key_task() 8407 if ((dprov_get_template_attr_array(base_key->ck_attrs, in dprov_key_task() 8408 base_key->ck_count, DPROV_CKA_BASE, &tmp, in dprov_key_task() 8410 (dprov_get_template_attr_array(base_key->ck_attrs, in dprov_key_task() [all …]
|
/titanic_41/usr/src/uts/common/sys/crypto/ |
H A D | impl.h | 1163 #define KCF_PROV_KEY_DERIVE(pd, session, mech, base_key, template, count, \ argument 1167 session, mech, base_key, template, count, key, req) : \ 1228 #define KCF_PROV_NOSTORE_KEY_DERIVE(pd, session, mech, base_key, template, \ argument 1233 (pd)->pd_prov_handle, session, mech, base_key, template, count, \
|