Home
last modified time | relevance | path

Searched refs:rsa_n (Results 1 – 13 of 13) sorted by relevance

/freebsd/crypto/openssh/
H A Dssh-rsa.c73 const BIGNUM *rsa_n, *rsa_e; in ssh_rsa_serialize_public() local
81 RSA_get0_key(rsa, &rsa_n, &rsa_e, NULL); in ssh_rsa_serialize_public()
83 (r = sshbuf_put_bignum2(b, rsa_n)) != 0) in ssh_rsa_serialize_public()
94 const BIGNUM *rsa_n, *rsa_e, *rsa_d, *rsa_iqmp, *rsa_p, *rsa_q; in ssh_rsa_serialize_private() local
99 RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d); in ssh_rsa_serialize_private()
105 if ((r = sshbuf_put_bignum2(b, rsa_n)) != 0 || in ssh_rsa_serialize_private()
157 const BIGNUM *rsa_n, *rsa_e; in ssh_rsa_copy_public() local
167 RSA_get0_key(rsa_from, &rsa_n, &rsa_e, NULL); in ssh_rsa_copy_public()
168 if ((rsa_n_dup = BN_dup(rsa_n)) == NULL || in ssh_rsa_copy_public()
197 BIGNUM *rsa_n = NULL, *rsa_e = NULL; in ssh_rsa_deserialize_public() local
[all …]
H A Dssh-pkcs11.c997 BIGNUM *rsa_n, *rsa_e; in pkcs11_fetch_rsa_pubkey() local
1045 rsa_n = BN_bin2bn(key_attr[1].pValue, key_attr[1].ulValueLen, NULL); in pkcs11_fetch_rsa_pubkey()
1047 if (rsa_n == NULL || rsa_e == NULL) { in pkcs11_fetch_rsa_pubkey()
1051 if (!RSA_set0_key(rsa, rsa_n, rsa_e, NULL)) in pkcs11_fetch_rsa_pubkey()
1053 rsa_n = rsa_e = NULL; /* transferred */ in pkcs11_fetch_rsa_pubkey()
H A Dssh-keygen.c457 BIGNUM *rsa_n = NULL, *rsa_e = NULL, *rsa_d = NULL; in do_convert_private_ssh2() local
519 if ((rsa_n = BN_new()) == NULL || in do_convert_private_ssh2()
526 buffer_get_bignum_bits(b, rsa_n); in do_convert_private_ssh2()
538 if (!RSA_set0_key(rsa, rsa_n, rsa_e, rsa_d)) in do_convert_private_ssh2()
540 rsa_n = rsa_e = rsa_d = NULL; /* transferred */ in do_convert_private_ssh2()
/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2text.c464 const BIGNUM *rsa_d = NULL, *rsa_n = NULL, *rsa_e = NULL; in rsa_to_text() local
496 RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d); in rsa_to_text()
502 type_label, BN_num_bits(rsa_n), primes) in rsa_to_text()
507 type_label, BN_num_bits(rsa_n)) in rsa_to_text()
512 if (!ossl_bio_print_labeled_bignum(out, modulus_label, rsa_n)) in rsa_to_text()
/freebsd/crypto/openssh/regress/unittests/sshkey/
H A Dcommon.h18 const BIGNUM *rsa_n(struct sshkey *k);
H A Dmktestdata.sh63 rm -f rsa_n ecdsa_n # new-format keys
85 cp rsa_1 rsa_n
88 ssh-keygen -pf rsa_n -N ""
H A Dcommon.c84 rsa_n(struct sshkey *k) in rsa_n() function
H A Dtest_sshkey.c324 ASSERT_PTR_NE(rsa_n(kr), NULL); in sshkey_tests()
327 ASSERT_INT_EQ(BN_num_bits(rsa_n(kr)), 1024); in sshkey_tests()
359 ASSERT_PTR_NE(rsa_n(k1), NULL); in sshkey_tests()
H A Dtest_file.c64 ASSERT_BIGNUM_EQ(rsa_n(k1), a); in sshkey_file_tests()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_backend.c264 const BIGNUM *rsa_d = NULL, *rsa_n = NULL, *rsa_e = NULL; in DEFINE_SPECIAL_STACK_OF_CONST() local
272 RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d); in DEFINE_SPECIAL_STACK_OF_CONST()
275 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_N, rsa_n) in DEFINE_SPECIAL_STACK_OF_CONST()
/freebsd/crypto/openssl/doc/man3/
H A DEVP_PKEY_fromdata.pod120 unsigned long rsa_n = 0xbc747fc5;
124 OSSL_PARAM_ulong("n", &rsa_n),
/freebsd/contrib/bearssl/test/
H A Dtest_crypto.c5851 unsigned char rsa_n[128], rsa_e[3], rsa_p[64], rsa_q[64]; in test_RSA_sign() local
5912 rsa_pk.n = rsa_n; in test_RSA_sign()
5913 …rsa_pk.nlen = hextobin(rsa_n, "E65DAEF196D22C300B3DAE1CE5157EDF821BB6038E419D8D363A8B2DA84A1321042… in test_RSA_sign()
/freebsd/crypto/openssl/providers/fips/
H A Dself_test_data.inc1126 static const unsigned char rsa_n[] = {
1287 ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_RSA_N, rsa_n),
1299 ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_RSA_N, rsa_n),
1305 ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_RSA_N, rsa_n),