Searched refs:bkey (Results 1 - 6 of 6) sorted by relevance

/illumos-gate/usr/src/common/crypto/rsa/
H A Drsa_impl.c374 rsa_genkey_pair(RSAbytekey *bkey) argument
405 if (bkey == NULL)
409 if (bkey->modulus_bits == 0)
413 if (bkey->pubexpo_bytes == 0 || bkey->pubexpo == NULL)
417 modulus_bytes = CRYPTO_BITS2BYTES(bkey->modulus_bits);
435 CHARLEN2BIGNUMLEN(bkey->pubexpo_bytes)) != BIG_OK) {
439 bytestring2bignum(&public_exponent, bkey->pubexpo, bkey->pubexpo_bytes);
444 bkey
489 rsa_encrypt(RSAbytekey *bkey, uchar_t *in, uint32_t in_len, uchar_t *out) argument
556 rsa_decrypt(RSAbytekey *bkey, uchar_t *in, uint32_t in_len, uchar_t *out) argument
[all...]
H A Drsa_impl.h121 CK_RV rsa_genkey_pair(RSAbytekey *bkey);
123 CK_RV rsa_encrypt(RSAbytekey *bkey,
126 CK_RV rsa_decrypt(RSAbytekey *bkey,
/illumos-gate/usr/src/common/crypto/dh/
H A Ddh_impl.c123 dh_genkey_pair(DHbytekey *bkey) argument
132 if (bkey == NULL)
136 if (bkey->prime_bits == 0 || bkey->prime == NULL ||
137 bkey->base_bytes == 0 || bkey->base == NULL)
140 prime_bytes = CRYPTO_BITS2BYTES(bkey->prime_bits);
151 if ((brv = DH_key_init(&dhkey, bkey->prime_bits)) != BIG_OK) {
162 bytestring2bignum(&(dhkey.p), bkey->prime, prime_bytes);
166 CHARLEN2BIGNUMLEN(bkey
250 dh_key_derive(DHbytekey *bkey, uint32_t key_type, uchar_t *secretkey, uint32_t *secretkey_len, int flag) argument
[all...]
H A Ddh_impl.h90 CK_RV dh_genkey_pair(DHbytekey *bkey);
92 CK_RV dh_key_derive(DHbytekey *bkey, uint32_t key_type,
/illumos-gate/usr/src/common/crypto/dsa/
H A Ddsa_impl.c166 dsa_genkey_pair(DSAbytekey *bkey) argument
174 prime_bytes = CRYPTO_BITS2BYTES(bkey->prime_bits);
186 subprime_bytes = CRYPTO_BITS2BYTES(bkey->subprime_bits);
192 if (bkey->public_y == NULL || bkey->private_x == NULL) {
200 if ((brv = DSA_key_init(&dsakey, bkey->prime_bits)) != BIG_OK) {
211 bytestring2bignum(&(dsakey.p), bkey->prime, prime_bytes);
219 bytestring2bignum(&(dsakey.q), bkey->subprime, subprime_bytes);
223 CHARLEN2BIGNUMLEN(bkey->base_bytes))) != BIG_OK) {
227 bytestring2bignum(&(dsakey.g), bkey
254 dsa_sign(DSAbytekey *bkey, uchar_t *in, uint32_t inlen, uchar_t *out) argument
421 dsa_verify(DSAbytekey *bkey, uchar_t *data, uchar_t *sig) argument
[all...]
H A Ddsa_impl.h104 CK_RV dsa_genkey_pair(DSAbytekey *bkey);
106 CK_RV dsa_sign(DSAbytekey *bkey, uchar_t *msg, uint32_t msglen, uchar_t *sig);
108 CK_RV dsa_verify(DSAbytekey *bkey, uchar_t *msg, uchar_t *sig);

Completed in 46 milliseconds