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

/freebsd-current/crypto/openssh/regress/unittests/sshkey/
H A Dcommon.h18 const BIGNUM *rsa_n(struct sshkey *k);
H A Dcommon.c87 rsa_n(struct sshkey *k) function
H A Dmktestdata.sh84 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 Dtest_sshkey.c275 ASSERT_PTR_NE(rsa_n(kr), NULL);
278 ASSERT_INT_EQ(BN_num_bits(rsa_n(kr)), 1024);
317 ASSERT_PTR_NE(rsa_n(k1), NULL);
H A Dtest_file.c67 ASSERT_BIGNUM_EQ(rsa_n(k1), a);
86 buf = load_file("rsa_n");
/freebsd-current/crypto/openssh/
H A Dssh-rsa.c44 const BIGNUM *rsa_n; local
48 RSA_get0_key(key->rsa, &rsa_n, NULL, NULL);
49 return BN_num_bits(rsa_n);
93 const BIGNUM *rsa_n, *rsa_e; local
97 RSA_get0_key(key->rsa, &rsa_n, &rsa_e, NULL);
99 (r = sshbuf_put_bignum2(b, rsa_n)) != 0)
110 const BIGNUM *rsa_n, *rsa_e, *rsa_d, *rsa_iqmp, *rsa_p, *rsa_q; local
112 RSA_get0_key(key->rsa, &rsa_n, &rsa_e, &rsa_d);
118 if ((r = sshbuf_put_bignum2(b, rsa_n)) != 0 ||
162 const BIGNUM *rsa_n, *rsa_ local
190 BIGNUM *rsa_n = NULL, *rsa_e = NULL; local
220 BIGNUM *rsa_n = NULL, *rsa_e = NULL, *rsa_d = NULL; local
396 const BIGNUM *rsa_n; local
479 const BIGNUM *rsa_n; local
[all...]
H A Dssh-pkcs11.c835 BIGNUM *rsa_n, *rsa_e; local
883 rsa_n = BN_bin2bn(key_attr[1].pValue, key_attr[1].ulValueLen, NULL);
885 if (rsa_n == NULL || rsa_e == NULL) {
889 if (!RSA_set0_key(rsa, rsa_n, rsa_e, NULL))
891 rsa_n = rsa_e = NULL; /* transferred */
1079 const BIGNUM *rsa_n, *rsa_e;
1081 RSA_get0_key(rsa, &rsa_n, &rsa_e, NULL);
1082 return rsa_n != NULL && rsa_e != NULL;
H A Dssh-keygen.c491 BIGNUM *rsa_n = NULL, *rsa_e = NULL, *rsa_d = NULL; local
576 if ((rsa_n = BN_new()) == NULL ||
583 buffer_get_bignum_bits(b, rsa_n);
587 if (!RSA_set0_key(key->rsa, rsa_n, rsa_e, rsa_d))
589 rsa_n = rsa_e = rsa_d = NULL; /* transferred */
H A Dsshkey.c1334 const BIGNUM *rsa_n; local
1340 RSA_get0_key(k->rsa, &rsa_n, NULL, NULL);
1341 nbits = BN_num_bits(rsa_n);
/freebsd-current/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2text.c634 const BIGNUM *rsa_d = NULL, *rsa_n = NULL, *rsa_e = NULL; local
666 RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d);
672 type_label, BN_num_bits(rsa_n), primes) <= 0)
676 type_label, BN_num_bits(rsa_n)) <= 0)
680 if (!print_labeled_bignum(out, modulus_label, rsa_n))
/freebsd-current/crypto/openssl/crypto/rsa/
H A Drsa_backend.c127 const BIGNUM *rsa_d = NULL, *rsa_n = NULL, *rsa_e = NULL; local
135 RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d);
138 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_N, rsa_n)
/freebsd-current/crypto/openssl/providers/fips/
H A Dself_test_data.inc1109 static const unsigned char rsa_n[] = {
1270 ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_RSA_N, rsa_n),
1282 ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_RSA_N, rsa_n),
1288 ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_RSA_N, rsa_n),
/freebsd-current/contrib/bearssl/test/
H A Dtest_crypto.c5851 unsigned char rsa_n[128], rsa_e[3], rsa_p[64], rsa_q[64]; local
5912 rsa_pk.n = rsa_n;
5913 rsa_pk.nlen = hextobin(rsa_n, "E65DAEF196D22C300B3DAE1CE5157EDF821BB6038E419D8D363A8B2DA84A1321042330E6F87A8BD8FE6BA1D2A17031955ED2315CC5FD2397197E238A5E0D2D0AFD25717E814EC4D2BBA887327A3C5B3A450FD8D547BDFCBB0F73B997CA13DD5E7572C4D5BAA764A349BAB2F868ACF4574AE2C7AEC94B77D2EE00A21B6CB175BB");

Completed in 212 milliseconds