Home
last modified time | relevance | path

Searched refs:big_value_len (Results 1 – 11 of 11) sorted by relevance

/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystore.c577 OBJ_PUB_RSA_MOD(objp))->big_value_len, 8) + in soft_pack_object_size()
579 OBJ_PUB_RSA_PUBEXPO(objp))->big_value_len, 8) + in soft_pack_object_size()
588 OBJ_PUB_DSA_PRIME(objp))->big_value_len, 8) + in soft_pack_object_size()
590 OBJ_PUB_DSA_SUBPRIME(objp))->big_value_len, 8) + in soft_pack_object_size()
592 OBJ_PUB_DSA_BASE(objp))->big_value_len, 8) + in soft_pack_object_size()
594 OBJ_PUB_DSA_VALUE(objp))->big_value_len, 8) + in soft_pack_object_size()
601 OBJ_PUB_EC_POINT(objp))->big_value_len, 8) + in soft_pack_object_size()
609 OBJ_PUB_DH_PRIME(objp))->big_value_len, 8) + in soft_pack_object_size()
611 OBJ_PUB_DH_BASE(objp))->big_value_len, 8) + in soft_pack_object_size()
613 OBJ_PUB_DH_VALUE(objp))->big_value_len, 8) + in soft_pack_object_size()
[all …]
H A DsoftASN1.c80 if (src->big_value_len == 0) { in pad_bigint_attr()
82 dst->big_value_len = 0; in pad_bigint_attr()
90 (void) memset(dst->big_value, 0x0, dst->big_value_len); in pad_bigint_attr()
93 dst->big_value_len = src->big_value_len + padding; in pad_bigint_attr()
95 dst->big_value = realloc(dst->big_value, dst->big_value_len); in pad_bigint_attr()
102 src->big_value_len); in pad_bigint_attr()
120 if (src.big_value_len == 0) { in unpad_bigint_attr()
122 dst->big_value_len = 0; in unpad_bigint_attr()
127 dst->big_value_len = src.big_value_len - offset; in unpad_bigint_attr()
134 dst->big_value = malloc(dst->big_value_len); in unpad_bigint_attr()
[all …]
H A DsoftAttributeUtil.c715 big->big_value_len = template->ulValueLen; in get_bigint_attr_from_template()
718 big->big_value_len = 0; in get_bigint_attr_from_template()
734 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object()
743 if (template->ulValueLen >= big->big_value_len) { in get_bigint_attr_from_object()
749 big->big_value_len); in get_bigint_attr_from_object()
750 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object()
879 (src->big_value_len > 0)) { in copy_bigint_attr()
885 dst->big_value_len = src->big_value_len; in copy_bigint_attr()
892 src->big_value_len = 0; in copy_bigint_attr()
895 dst->big_value_len = 0; in copy_bigint_attr()
[all …]
H A DsoftEC.c99 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 DsoftObject.h51 CK_ULONG big_value_len; member
H A DsoftObjectUtil.c1500 bi->big_value_len = buflen; in dup_bigint_attr()
/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelUtil.c326 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key()
330 ENCODE_ATTR(CKA_MODULUS, big->big_value, big->big_value_len); in get_rsa_private_key()
340 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key()
345 big->big_value_len); in get_rsa_private_key()
352 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key()
356 ENCODE_ATTR(CKA_PRIME_1, big->big_value, big->big_value_len); in get_rsa_private_key()
363 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key()
367 ENCODE_ATTR(CKA_PRIME_2, big->big_value, big->big_value_len); in get_rsa_private_key()
374 if ((ptr = malloc(big->big_value_len)) == NULL) { in get_rsa_private_key()
379 big->big_value_len); in get_rsa_private_key()
[all …]
H A DkernelObjectUtil.c954 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 DkernelAttributeUtil.c581 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 DkernelObject.h73 CK_ULONG big_value_len; member
H A DkernelKeys.c2053 tmp.ulValueLen = big->big_value_len; in get_base_key_attributes()
2140 tmp.ulValueLen = big->big_value_len; in get_base_key_attributes()