Searched refs:big_value (Results 1 – 9 of 9) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softASN1.c | 82 dst->big_value = NULL; in pad_bigint_attr() 90 if (dst->big_value != NULL) in pad_bigint_attr() 91 explicit_bzero(dst->big_value, dst->big_value_len); in pad_bigint_attr() 93 padding = (src->big_value[0] < 0x80) ? 0 : 1; in pad_bigint_attr() 96 dst->big_value = realloc(dst->big_value, dst->big_value_len); in pad_bigint_attr() 97 if (dst->big_value == NULL) in pad_bigint_attr() 101 dst->big_value[0] = 0x0; in pad_bigint_attr() 102 (void) memcpy(&(dst->big_value[padding]), src->big_value, in pad_bigint_attr() 122 dst->big_value = NULL; in unpad_bigint_attr() 127 offset = (src.big_value[0] == 0x00) ? 1 : 0; in unpad_bigint_attr() [all …]
|
H A D | softKeystore.c | 800 OBJ_PUB_RSA_MOD(objp))->big_value), in soft_pack_object() 813 OBJ_PUB_RSA_PUBEXPO(objp))->big_value), in soft_pack_object() 826 OBJ_PUB_DSA_PRIME(objp))->big_value, in soft_pack_object() 839 OBJ_PUB_DSA_SUBPRIME(objp))->big_value, in soft_pack_object() 852 OBJ_PUB_DSA_BASE(objp))->big_value, in soft_pack_object() 865 OBJ_PUB_DSA_VALUE(objp))->big_value, in soft_pack_object() 878 OBJ_PUB_EC_POINT(objp))->big_value, in soft_pack_object() 891 OBJ_PUB_DH_PRIME(objp))->big_value, in soft_pack_object() 904 OBJ_PUB_DH_BASE(objp))->big_value, in soft_pack_object() 917 OBJ_PUB_DH_VALUE(objp))->big_value, in soft_pack_object() [all …]
|
H A D | softAttributeUtil.c | 709 big->big_value = malloc(template->ulValueLen); in get_bigint_attr_from_template() 710 if (big->big_value == NULL) { in get_bigint_attr_from_template() 714 (void) memcpy(big->big_value, template->pValue, in get_bigint_attr_from_template() 718 big->big_value = NULL; in get_bigint_attr_from_template() 739 if (big->big_value == NULL) { in get_bigint_attr_from_object() 749 (void) memcpy(template->pValue, big->big_value, in get_bigint_attr_from_object() 879 if ((src->big_value != NULL) && in copy_bigint_attr() 885 dst->big_value = src->big_value; in copy_bigint_attr() 892 src->big_value = NULL; in copy_bigint_attr() 895 dst->big_value = NULL; in copy_bigint_attr() [all …]
|
H A D | softEC.c | 100 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 D | softObjectUtil.c | 1561 if ((bi->big_value = malloc(buflen)) == NULL) { in dup_bigint_attr() 1564 (void) memcpy(bi->big_value, buf, buflen); in dup_bigint_attr()
|
H A D | softObject.h | 52 CK_BYTE *big_value; member
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelUtil.c | 214 if (big->big_value == NULL) { in get_rsa_private_key() 222 ENCODE_ATTR(CKA_MODULUS, big->big_value, big->big_value_len); in get_rsa_private_key() 228 if (big->big_value == NULL) { in get_rsa_private_key() 236 ENCODE_ATTR(CKA_PRIVATE_EXPONENT, big->big_value, in get_rsa_private_key() 243 if (big->big_value != NULL) { in get_rsa_private_key() 248 ENCODE_ATTR(CKA_PRIME_1, big->big_value, big->big_value_len); in get_rsa_private_key() 254 if (big->big_value != NULL) { in get_rsa_private_key() 259 ENCODE_ATTR(CKA_PRIME_2, big->big_value, big->big_value_len); in get_rsa_private_key() 265 if (big->big_value != NULL) { in get_rsa_private_key() 270 ENCODE_ATTR(CKA_EXPONENT_1, big->big_value, in get_rsa_private_key() [all …]
|
H A D | kernelAttributeUtil.c | 574 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 D | kernelObject.h | 72 CK_BYTE *big_value; member
|