Home
last modified time | relevance | path

Searched refs:big_value (Results 1 – 9 of 9) sorted by relevance

/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftASN1.c81 dst->big_value = NULL; in pad_bigint_attr()
89 if (dst->big_value != NULL) in pad_bigint_attr()
90 (void) memset(dst->big_value, 0x0, dst->big_value_len); in pad_bigint_attr()
92 padding = (src->big_value[0] < 0x80) ? 0 : 1; in pad_bigint_attr()
95 dst->big_value = realloc(dst->big_value, dst->big_value_len); in pad_bigint_attr()
96 if (dst->big_value == NULL) in pad_bigint_attr()
100 dst->big_value[0] = 0x0; in pad_bigint_attr()
101 (void) memcpy(&(dst->big_value[padding]), src->big_value, in pad_bigint_attr()
121 dst->big_value = NULL; in unpad_bigint_attr()
126 offset = (src.big_value[0] == 0x00) ? 1 : 0; in unpad_bigint_attr()
[all …]
H A DsoftKeystore.c783 OBJ_PUB_RSA_MOD(objp))->big_value), in soft_pack_object()
796 OBJ_PUB_RSA_PUBEXPO(objp))->big_value), in soft_pack_object()
809 OBJ_PUB_DSA_PRIME(objp))->big_value, in soft_pack_object()
822 OBJ_PUB_DSA_SUBPRIME(objp))->big_value, in soft_pack_object()
835 OBJ_PUB_DSA_BASE(objp))->big_value, in soft_pack_object()
848 OBJ_PUB_DSA_VALUE(objp))->big_value, in soft_pack_object()
861 OBJ_PUB_EC_POINT(objp))->big_value, in soft_pack_object()
874 OBJ_PUB_DH_PRIME(objp))->big_value, in soft_pack_object()
887 OBJ_PUB_DH_BASE(objp))->big_value, in soft_pack_object()
900 OBJ_PUB_DH_VALUE(objp))->big_value, in soft_pack_object()
[all …]
H A DsoftAttributeUtil.c708 big->big_value = malloc(template->ulValueLen); in get_bigint_attr_from_template()
709 if (big->big_value == NULL) { in get_bigint_attr_from_template()
713 (void) memcpy(big->big_value, template->pValue, in get_bigint_attr_from_template()
717 big->big_value = NULL; in get_bigint_attr_from_template()
738 if (big->big_value == NULL) { in get_bigint_attr_from_object()
748 (void) memcpy(template->pValue, big->big_value, in get_bigint_attr_from_object()
878 if ((src->big_value != NULL) && in copy_bigint_attr()
884 dst->big_value = src->big_value; in copy_bigint_attr()
891 src->big_value = NULL; in copy_bigint_attr()
894 dst->big_value = NULL; in copy_bigint_attr()
[all …]
H A DsoftEC.c100 if (p->big_value == NULL) in check_key()
113 if (p->big_value == NULL) in check_key()
198 bi.big_value = privKey->privateValue.data; in soft_ec_genkey_pair()
202 bi.big_value = privKey->publicValue.data; in soft_ec_genkey_pair()
H A DsoftObjectUtil.c1501 if ((bi->big_value = malloc(buflen)) == NULL) { in dup_bigint_attr()
1504 (void) memcpy(bi->big_value, buf, buflen); in dup_bigint_attr()
H A DsoftObject.h50 CK_BYTE *big_value; member
/titanic_44/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelUtil.c322 if (big->big_value == NULL) { in get_rsa_private_key()
330 ENCODE_ATTR(CKA_MODULUS, big->big_value, big->big_value_len); in get_rsa_private_key()
336 if (big->big_value == NULL) { in get_rsa_private_key()
344 ENCODE_ATTR(CKA_PRIVATE_EXPONENT, big->big_value, in get_rsa_private_key()
351 if (big->big_value != NULL) { in get_rsa_private_key()
356 ENCODE_ATTR(CKA_PRIME_1, big->big_value, big->big_value_len); in get_rsa_private_key()
362 if (big->big_value != NULL) { in get_rsa_private_key()
367 ENCODE_ATTR(CKA_PRIME_2, big->big_value, big->big_value_len); in get_rsa_private_key()
373 if (big->big_value != NULL) { in get_rsa_private_key()
378 ENCODE_ATTR(CKA_EXPONENT_1, big->big_value, in get_rsa_private_key()
[all …]
H A DkernelAttributeUtil.c574 big->big_value = malloc(template->ulValueLen); in get_bigint_attr_from_template()
575 if (big->big_value == NULL) { in get_bigint_attr_from_template()
579 (void) memcpy(big->big_value, template->pValue, in get_bigint_attr_from_template()
583 big->big_value = NULL; in get_bigint_attr_from_template()
604 if (big->big_value == NULL) { in get_bigint_attr_from_object()
614 (void) memcpy(template->pValue, big->big_value, in get_bigint_attr_from_object()
739 if ((src->big_value != NULL) && in copy_bigint_attr()
745 dst->big_value = src->big_value; in copy_bigint_attr()
752 src->big_value = NULL; in copy_bigint_attr()
755 dst->big_value = NULL; in copy_bigint_attr()
[all …]
H A DkernelObject.h72 CK_BYTE *big_value; member