/freebsd-current/crypto/openssh/regress/unittests/sshkey/ |
H A D | common.h | 18 const BIGNUM *rsa_n(struct sshkey *k);
|
H A D | common.c | 87 rsa_n(struct sshkey *k) function
|
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 | 275 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 D | test_file.c | 67 ASSERT_BIGNUM_EQ(rsa_n(k1), a); 86 buf = load_file("rsa_n");
|
/freebsd-current/crypto/openssh/ |
H A D | ssh-rsa.c | 44 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 D | ssh-pkcs11.c | 835 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 D | ssh-keygen.c | 491 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 D | sshkey.c | 1334 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 D | encode_key2text.c | 634 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 D | rsa_backend.c | 127 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 D | self_test_data.inc | 1109 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 D | test_crypto.c | 5851 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");
|