Home
last modified time | relevance | path

Searched refs:k_attrs (Results 1 – 2 of 2) sorted by relevance

/titanic_44/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c282 crypto_object_attribute_t *k_attrs = NULL; in crypto_copy_key_to_ctx() local
300 k_attrs = (crypto_object_attribute_t *)(void *)((caddr_t)key + in crypto_copy_key_to_ctx()
303 attr_val = (caddr_t)k_attrs + in crypto_copy_key_to_ctx()
306 k_attrs[i].oa_type = in_key->ck_attrs[i].oa_type; in crypto_copy_key_to_ctx()
309 k_attrs[i].oa_value = attr_val; in crypto_copy_key_to_ctx()
310 k_attrs[i].oa_value_len = in_key->ck_attrs[i].oa_value_len; in crypto_copy_key_to_ctx()
311 attr_val += roundup(k_attrs[i].oa_value_len, sizeof (caddr_t)); in crypto_copy_key_to_ctx()
316 key->ck_attrs = k_attrs; in crypto_copy_key_to_ctx()
/titanic_44/usr/src/uts/common/crypto/io/
H A Dcrypto.c2232 crypto_object_attribute_t *k_attrs = NULL; in copyin_attributes() local
2296 k_attrs = kmem_alloc(k_attrs_total_len, KM_SLEEP); in copyin_attributes()
2297 k_attrs_buf = (char *)k_attrs + k_attrs_len; in copyin_attributes()
2303 k_attrs[i].oa_type = STRUCT_FGET(oa, oa_type); in copyin_attributes()
2308 kmem_free(k_attrs, k_attrs_total_len); in copyin_attributes()
2309 k_attrs = NULL; in copyin_attributes()
2316 k_attrs[i].oa_value = p; in copyin_attributes()
2319 k_attrs[i].oa_value = NULL; in copyin_attributes()
2321 k_attrs[i].oa_value_len = value_len; in copyin_attributes()
2340 *k_attrs_out = k_attrs; in copyin_attributes()
[all …]