Home
last modified time | relevance | path

Searched refs:rsa_p (Results 1 – 3 of 3) sorted by relevance

/dragonfly/crypto/openssh/
H A Dssh-rsa.c111 const BIGNUM *rsa_p, *rsa_q, *rsa_d; in ssh_rsa_complete_crt_parameters() local
122 RSA_get0_factors(key->rsa, &rsa_p, &rsa_q); in ssh_rsa_complete_crt_parameters()
140 (BN_sub(aux, rsa_p, BN_value_one()) == 0) || in ssh_rsa_complete_crt_parameters()
H A Dsshkey.c3260 const BIGNUM *rsa_n, *rsa_e, *rsa_d, *rsa_iqmp, *rsa_p, *rsa_q; in sshkey_private_serialize_opt() local
3274 RSA_get0_factors(key->rsa, &rsa_p, &rsa_q); in sshkey_private_serialize_opt()
3280 (r = sshbuf_put_bignum2(b, rsa_p)) != 0 || in sshkey_private_serialize_opt()
3290 RSA_get0_factors(key->rsa, &rsa_p, &rsa_q); in sshkey_private_serialize_opt()
3295 (r = sshbuf_put_bignum2(b, rsa_p)) != 0 || in sshkey_private_serialize_opt()
3474 BIGNUM *rsa_iqmp = NULL, *rsa_p = NULL, *rsa_q = NULL; in sshkey_private_deserialize() local
3638 (r = sshbuf_get_bignum2(buf, &rsa_p)) != 0 || in sshkey_private_deserialize()
3646 if (!RSA_set0_factors(k->rsa, rsa_p, rsa_q)) { in sshkey_private_deserialize()
3650 rsa_p = rsa_q = NULL; /* transferred */ in sshkey_private_deserialize()
3757 BN_clear_free(rsa_p); in sshkey_private_deserialize()
H A Dssh-keygen.c487 BIGNUM *rsa_p = NULL, *rsa_q = NULL, *rsa_iqmp = NULL; in do_convert_private_ssh2() local
569 (rsa_p = BN_new()) == NULL || in do_convert_private_ssh2()
577 buffer_get_bignum_bits(b, rsa_p); in do_convert_private_ssh2()
581 if (!RSA_set0_factors(key->rsa, rsa_p, rsa_q)) in do_convert_private_ssh2()
583 rsa_p = rsa_q = NULL; /* transferred */ in do_convert_private_ssh2()