Searched refs:big_value_len (Results 1 – 11 of 11) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystore.c | 594 OBJ_PUB_RSA_MOD(objp))->big_value_len, 8) + in soft_pack_object_size() 596 OBJ_PUB_RSA_PUBEXPO(objp))->big_value_len, 8) + in soft_pack_object_size() 605 OBJ_PUB_DSA_PRIME(objp))->big_value_len, 8) + in soft_pack_object_size() 607 OBJ_PUB_DSA_SUBPRIME(objp))->big_value_len, 8) + in soft_pack_object_size() 609 OBJ_PUB_DSA_BASE(objp))->big_value_len, 8) + in soft_pack_object_size() 611 OBJ_PUB_DSA_VALUE(objp))->big_value_len, 8) + in soft_pack_object_size() 618 OBJ_PUB_EC_POINT(objp))->big_value_len, 8) + in soft_pack_object_size() 626 OBJ_PUB_DH_PRIME(objp))->big_value_len, 8) + in soft_pack_object_size() 628 OBJ_PUB_DH_BASE(objp))->big_value_len, 8) + in soft_pack_object_size() 630 OBJ_PUB_DH_VALUE(objp))->big_value_len, 8) + in soft_pack_object_size() [all …]
|
H A D | softASN1.c | 81 if (src->big_value_len == 0) { in pad_bigint_attr() 83 dst->big_value_len = 0; in pad_bigint_attr() 91 explicit_bzero(dst->big_value, dst->big_value_len); in pad_bigint_attr() 94 dst->big_value_len = src->big_value_len + padding; in pad_bigint_attr() 96 dst->big_value = realloc(dst->big_value, dst->big_value_len); in pad_bigint_attr() 103 src->big_value_len); in pad_bigint_attr() 121 if (src.big_value_len == 0) { in unpad_bigint_attr() 123 dst->big_value_len = 0; in unpad_bigint_attr() 128 dst->big_value_len = src.big_value_len - offset; in unpad_bigint_attr() 135 dst->big_value = malloc(dst->big_value_len); in unpad_bigint_attr() [all …]
|
H A D | softAttributeUtil.c | 716 big->big_value_len = template->ulValueLen; in get_bigint_attr_from_template() 719 big->big_value_len = 0; in get_bigint_attr_from_template() 735 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object() 744 if (template->ulValueLen >= big->big_value_len) { in get_bigint_attr_from_object() 750 big->big_value_len); in get_bigint_attr_from_object() 751 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object() 880 (src->big_value_len > 0)) { in copy_bigint_attr() 886 dst->big_value_len = src->big_value_len; in copy_bigint_attr() 893 src->big_value_len = 0; in copy_bigint_attr() 896 dst->big_value_len = 0; in copy_bigint_attr() [all …]
|
H A D | softEC.c | 99 len = p->big_value_len; in check_key() 112 len = p->big_value_len; in check_key() 199 bi.big_value_len = privKey->privateValue.len; in soft_ec_genkey_pair() 203 bi.big_value_len = privKey->publicValue.len; in soft_ec_genkey_pair()
|
H A D | softObject.h | 53 CK_ULONG big_value_len; member
|
H A D | softObjectUtil.c | 1560 bi->big_value_len = buflen; in dup_bigint_attr()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelUtil.c | 218 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key() 222 ENCODE_ATTR(CKA_MODULUS, big->big_value, big->big_value_len); in get_rsa_private_key() 232 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key() 237 big->big_value_len); in get_rsa_private_key() 244 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key() 248 ENCODE_ATTR(CKA_PRIME_1, big->big_value, big->big_value_len); in get_rsa_private_key() 255 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key() 259 ENCODE_ATTR(CKA_PRIME_2, big->big_value, big->big_value_len); in get_rsa_private_key() 266 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key() 271 big->big_value_len); in get_rsa_private_key() [all …]
|
H A D | kernelObjectUtil.c | 954 obj_size += big->big_value_len; in kernel_get_object_size() 956 obj_size += big->big_value_len; in kernel_get_object_size() 960 obj_size += big->big_value_len; in kernel_get_object_size() 962 obj_size += big->big_value_len; in kernel_get_object_size() 964 obj_size += big->big_value_len; in kernel_get_object_size() 966 obj_size += big->big_value_len; in kernel_get_object_size() 970 obj_size += big->big_value_len; in kernel_get_object_size() 980 obj_size += big->big_value_len; in kernel_get_object_size() 984 obj_size += big->big_value_len; in kernel_get_object_size() 988 obj_size += big->big_value_len; in kernel_get_object_size() [all …]
|
H A D | kernelAttributeUtil.c | 581 big->big_value_len = template->ulValueLen; in get_bigint_attr_from_template() 584 big->big_value_len = 0; in get_bigint_attr_from_template() 600 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object() 609 if (template->ulValueLen >= big->big_value_len) { in get_bigint_attr_from_object() 615 big->big_value_len); in get_bigint_attr_from_object() 616 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object() 740 (src->big_value_len > 0)) { in copy_bigint_attr() 746 dst->big_value_len = src->big_value_len; in copy_bigint_attr() 753 src->big_value_len = 0; in copy_bigint_attr() 756 dst->big_value_len = 0; in copy_bigint_attr() [all …]
|
H A D | kernelObject.h | 73 CK_ULONG big_value_len; member
|
H A D | kernelKeys.c | 2048 tmp.ulValueLen = big->big_value_len; in get_base_key_attributes() 2135 tmp.ulValueLen = big->big_value_len; in get_base_key_attributes()
|