/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softRSA.c | 95 uchar_t prime1[MAX_KEY_ATTR_BUFLEN]; in soft_rsa_decrypt() local 101 uint32_t prime1_len = sizeof (prime1); in soft_rsa_decrypt() 113 rv = soft_get_private_value(key, CKA_PRIME_1, prime1, &prime1_len); in soft_rsa_decrypt() 165 k.prime1 = prime1; in soft_rsa_decrypt() 832 uchar_t prime1[MAX_KEY_ATTR_BUFLEN]; in soft_rsa_genkey_pair() local 833 uint32_t prime1_len = sizeof (prime1); in soft_rsa_genkey_pair() 888 k.prime1 = prime1; in soft_rsa_genkey_pair() 930 prime1, k.prime1_bytes, B_FALSE)) != CKR_OK) { in soft_rsa_genkey_pair()
|
H A D | softKeystore.c | 1340 biginteger_t prime1; in soft_unpack_object() local 1358 (void) memset(&prime1, 0x0, sizeof (biginteger_t)); in soft_unpack_object() 1555 if ((rv = soft_unpack_obj_attribute(buf, &prime1, in soft_unpack_object() 1559 copy_bigint_attr(&prime1, KEY_PRI_RSA_PRIME1(pvk)); in soft_unpack_object() 1835 bigint_attr_cleanup(&prime1); in soft_unpack_object()
|
H A D | softAttributeUtil.c | 1887 biginteger_t prime1; local 1907 (void) memset(&prime1, 0x0, sizeof (biginteger_t)); 2064 rv = get_bigint_attr_from_template(&prime1, 2269 copy_bigint_attr(&prime1, KEY_PRI_RSA_PRIME1(pvk)); 2480 bigint_attr_cleanup(&prime1);
|
/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | asn1.c | 889 CK_ATTRIBUTE * prime1, in ber_encode_RSAPrivateKey() argument 917 prime1->ulValueLen); in ber_encode_RSAPrivateKey() 992 (CK_BYTE *)prime1 + sizeof (CK_ATTRIBUTE), prime1->ulValueLen); in ber_encode_RSAPrivateKey() 1058 CK_ATTRIBUTE ** prime1, in ber_decode_RSAPrivateKey() argument 1250 *prime1 = p_attr; in ber_decode_RSAPrivateKey()
|
H A D | key.c | 1437 CK_ATTRIBUTE *prime1 = NULL, *prime2 = NULL; in rsa_priv_wrap_get_data() local 1454 &prime1) == FALSE) { in rsa_priv_wrap_get_data() 1474 modulus, publ_exp, priv_exp, prime1, prime2, in rsa_priv_wrap_get_data() 1488 CK_ATTRIBUTE *prime1 = NULL; in rsa_priv_unwrap() local 1496 &modulus, &publ_exp, &priv_exp, &prime1, &prime2, in rsa_priv_unwrap() 1505 (void) remove_leading_zeros(prime1); in rsa_priv_unwrap() 1514 (void) template_update_attribute(tmpl, prime1); in rsa_priv_unwrap()
|
/titanic_50/usr/src/common/crypto/rsa/ |
H A D | rsa_impl.h | 108 uchar_t *prime1; /* p */ member
|
H A D | rsa_impl.c | 460 bignum2bytestring(bkey->prime1, &(rsakey.q), bkey->prime1_bytes); in rsa_genkey_pair() 569 bkey->prime1_bytes == 0 || bkey->prime1 == NULL || in rsa_decrypt() 602 bytestring2bignum(&(rsakey.q), bkey->prime1, bkey->prime1_bytes); in rsa_decrypt()
|
/titanic_50/usr/src/uts/common/crypto/io/ |
H A D | rsa.c | 794 uchar_t *modulus, *prime1, *prime2, *expo1, *expo2, *coef; in core_rsa_decrypt() local 812 if ((crypto_get_key_attr(key, SUN_CKA_PRIME_1, &prime1, &prime1_len) in core_rsa_decrypt() 827 k.prime1 = prime1; in core_rsa_decrypt()
|
/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelAttributeUtil.c | 1404 biginteger_t prime1; in kernel_build_private_key_object() local 1422 (void) memset(&prime1, 0x0, sizeof (biginteger_t)); in kernel_build_private_key_object() 1556 rv = get_bigint_attr_from_template(&prime1, in kernel_build_private_key_object() 1704 copy_bigint_attr(&prime1, KEY_PRI_RSA_PRIME1(pvk)); in kernel_build_private_key_object() 1806 bigint_attr_cleanup(&prime1); in kernel_build_private_key_object()
|
/titanic_50/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 2505 rv = get_bigint_attr(sess, obj, CKA_PRIME_1, &rawrsa->prime1); in get_raw_rsa() 2529 if (rawrsa->prime1.val) in get_raw_rsa() 2530 free(rawrsa->prime1.val); in get_raw_rsa() 3366 if (rawkey->rawdata.rsa.prime1.val != NULL) { in store_raw_key() 3368 rawkey->rawdata.rsa.prime1.val, in store_raw_key() 3369 rawkey->rawdata.rsa.prime1.len); in store_raw_key()
|
/titanic_50/usr/src/lib/libkmf/include/ |
H A D | kmftypes.h | 185 KMF_BIGINT prime1; member
|
/titanic_50/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 899 rsa.prime1.val = (uchar_t *)Prime1->bv_val; in readAltFormatPrivateKey() 900 rsa.prime1.len = Prime1->bv_len; in readAltFormatPrivateKey() 3148 if (key->prime1.val != NULL) in ImportRawRSAKey() 3149 if ((rsa->p = BN_bin2bn(key->prime1.val, key->prime1.len, in ImportRawRSAKey() 4092 if ((rv = sslBN2KMFBN(rsa->p, &kmfkey->prime1)) != KMF_OK) in exportRawRSAKey()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/ |
H A D | kssladm_create.c | 141 priv_key_bignums[3] = rsa->rawdata.rsa.prime1; in kmf_to_kssl()
|
/titanic_50/usr/src/lib/libkmf/ber_der/common/ |
H A D | clasn1.c | 2278 rsa->prime1.val, rsa->prime1.len, in DerEncodeRSAPrivateKey()
|
/titanic_50/usr/src/lib/libkmf/libkmf/common/ |
H A D | generalop.c | 1341 kmf_free_bigint(&key->prime1); in free_raw_rsa()
|