Searched refs:rsa_n (Results 1 – 8 of 8) sorted by relevance
/openbsd/usr.bin/ssh/ |
H A D | ssh-rsa.c | 68 const BIGNUM *rsa_n, *rsa_e; in ssh_rsa_serialize_public() local 76 RSA_get0_key(rsa, &rsa_n, &rsa_e, NULL); in ssh_rsa_serialize_public() 94 RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d); in ssh_rsa_serialize_private() 152 const BIGNUM *rsa_n, *rsa_e; in ssh_rsa_copy_public() local 163 if ((rsa_n_dup = BN_dup(rsa_n)) == NULL || in ssh_rsa_copy_public() 192 BIGNUM *rsa_n = NULL, *rsa_e = NULL; in ssh_rsa_deserialize_public() local 199 sshbuf_get_bignum2(b, &rsa_n) != 0) { in ssh_rsa_deserialize_public() 207 rsa_n = rsa_e = NULL; /* transferred */ in ssh_rsa_deserialize_public() 221 BN_clear_free(rsa_n); in ssh_rsa_deserialize_public() 255 rsa_n = rsa_e = NULL; /* transferred */ in ssh_rsa_deserialize_private() [all …]
|
H A D | ssh-pkcs11.c | 829 BIGNUM *rsa_n, *rsa_e; in pkcs11_fetch_rsa_pubkey() local 877 rsa_n = BN_bin2bn(key_attr[1].pValue, key_attr[1].ulValueLen, NULL); in pkcs11_fetch_rsa_pubkey() 879 if (rsa_n == NULL || rsa_e == NULL) { in pkcs11_fetch_rsa_pubkey() 883 if (!RSA_set0_key(rsa, rsa_n, rsa_e, NULL)) in pkcs11_fetch_rsa_pubkey() 885 rsa_n = rsa_e = NULL; /* transferred */ in pkcs11_fetch_rsa_pubkey() 1074 const BIGNUM *rsa_n, *rsa_e; 1076 RSA_get0_key(rsa, &rsa_n, &rsa_e, NULL); 1077 return rsa_n != NULL && rsa_e != NULL;
|
H A D | ssh-keygen.c | 481 BIGNUM *rsa_n = NULL, *rsa_e = NULL, *rsa_d = NULL; in do_convert_private_ssh2() local 568 if ((rsa_n = BN_new()) == NULL || in do_convert_private_ssh2() 575 buffer_get_bignum_bits(b, rsa_n); in do_convert_private_ssh2() 586 if (!RSA_set0_key(rsa, rsa_n, rsa_e, rsa_d)) in do_convert_private_ssh2() 588 rsa_n = rsa_e = rsa_d = NULL; /* transferred */ in do_convert_private_ssh2()
|
/openbsd/regress/usr.bin/ssh/unittests/sshkey/ |
H A D | common.h | 18 const BIGNUM *rsa_n(struct sshkey *k);
|
H A D | mktestdata.sh | 84 rm -f rsa_n dsa_n ecdsa_n # new-format keys 108 cp rsa_1 rsa_n 112 ssh-keygen -pf rsa_n -N ""
|
H A D | test_sshkey.c | 254 ASSERT_PTR_NE(rsa_n(kr), NULL); in sshkey_tests() 257 ASSERT_INT_EQ(BN_num_bits(rsa_n(kr)), 1024); in sshkey_tests() 294 ASSERT_PTR_NE(rsa_n(k1), NULL); in sshkey_tests()
|
H A D | common.c | 76 rsa_n(struct sshkey *k) in rsa_n() function
|
H A D | test_file.c | 56 ASSERT_BIGNUM_EQ(rsa_n(k1), a); in sshkey_file_tests()
|