Lines Matching refs:rsa

146 int RSA_marshal_public_key(CBB *cbb, const RSA *rsa) {  in RSA_marshal_public_key()  argument
149 !marshal_integer(&child, rsa->n) || in RSA_marshal_public_key()
150 !marshal_integer(&child, rsa->e) || in RSA_marshal_public_key()
159 const RSA *rsa) { in RSA_public_key_to_bytes() argument
163 !RSA_marshal_public_key(&cbb, rsa) || in RSA_public_key_to_bytes()
312 int RSA_marshal_private_key(CBB *cbb, const RSA *rsa) { in RSA_marshal_private_key() argument
314 sk_RSA_additional_prime_num(rsa->additional_primes) > 0; in RSA_marshal_private_key()
320 !marshal_integer(&child, rsa->n) || in RSA_marshal_private_key()
321 !marshal_integer(&child, rsa->e) || in RSA_marshal_private_key()
322 !marshal_integer(&child, rsa->d) || in RSA_marshal_private_key()
323 !marshal_integer(&child, rsa->p) || in RSA_marshal_private_key()
324 !marshal_integer(&child, rsa->q) || in RSA_marshal_private_key()
325 !marshal_integer(&child, rsa->dmp1) || in RSA_marshal_private_key()
326 !marshal_integer(&child, rsa->dmq1) || in RSA_marshal_private_key()
327 !marshal_integer(&child, rsa->iqmp)) { in RSA_marshal_private_key()
338 for (size_t i = 0; i < sk_RSA_additional_prime_num(rsa->additional_primes); in RSA_marshal_private_key()
341 sk_RSA_additional_prime_value(rsa->additional_primes, i); in RSA_marshal_private_key()
363 const RSA *rsa) { in RSA_private_key_to_bytes() argument
367 !RSA_marshal_private_key(&cbb, rsa) || in RSA_private_key_to_bytes()
432 RSA *RSAPublicKey_dup(const RSA *rsa) { in RSAPublicKey_dup() argument
435 if (!RSA_public_key_to_bytes(&der, &der_len, rsa)) { in RSAPublicKey_dup()
443 RSA *RSAPrivateKey_dup(const RSA *rsa) { in RSAPrivateKey_dup() argument
446 if (!RSA_private_key_to_bytes(&der, &der_len, rsa)) { in RSAPrivateKey_dup()