Home
last modified time | relevance | path

Searched full:rsa (Results 1 – 25 of 1181) sorted by relevance

12345678910>>...48

/freebsd/crypto/heimdal/doc/doxyout/hcrypto/man/man3/
H A Dhcrypto_rsa.31 .TH "RSA functions" 3 "11 Jan 2012" "Version 1.5.2" "Heimdal crypto library" \" -*- nroff -*-
10 .RI "RSA * \fBRSA_new\fP (void)"
13 .RI "RSA * \fBRSA_new_method\fP (ENGINE *engine)"
16 .RI "void \fBRSA_free\fP (RSA *rsa)"
19 .RI "int \fBRSA_up_ref\fP (RSA *rsa)"
22 .RI "const RSA_METHOD * \fBRSA_get_method\fP (const RSA *rsa)"
25 .RI "int \fBRSA_set_method\fP (RSA *rsa, const RSA_METHOD *method)"
28 .RI "int \fBRSA_set_app_data\fP (RSA *rsa, void *arg)"
31 .RI "void * \fBRSA_get_app_data\fP (const RSA *rsa)"
36 See the \fBRSA - public-key cryptography\fP for description and examples.
[all …]
/freebsd/secure/lib/libcrypto/man/man7/
H A DEVP_PKEY-RSA.757 .IX Title "EVP_PKEY-RSA 7ossl"
58 .TH EVP_PKEY-RSA 7ossl 2025-09-30 3.5.4 OpenSSL
64 EVP_PKEY\-RSA, EVP_KEYMGMT\-RSA, RSA
65 \&\- EVP_PKEY RSA keytype and algorithm support
68 The \fBRSA\fR keytype is implemented in OpenSSL's default and FIPS providers.
69 That implementation supports the basic RSA keys, containing the modulus \fIn\fR,
73 .SS "Common RSA parameters"
74 .IX Subsection "Common RSA parameters"
76 "Common parameters" in \fBprovider\-keymgmt\fR\|(7)), the \fBRSA\fR keytype implementation
80 The RSA modulus "n" value.
[all …]
H A DEVP_SIGNATURE-RSA.757 .IX Title "EVP_SIGNATURE-RSA 7ossl"
58 .TH EVP_SIGNATURE-RSA 7ossl 2025-09-30 3.5.4 OpenSSL
64 EVP_SIGNATURE\-RSA
65 \&\- The EVP_PKEY RSA signature implementation
68 Support for computing RSA signatures.
69 See \fBEVP_PKEY\-RSA\fR\|(7) for information related to RSA keys.
76 .IP """RSA"", ""rsaEncryption"", ""1.2.840.113549.1.1.1""" 4
77 .IX Item """RSA"", ""rsaEncryption"", ""1.2.840.113549.1.1.1"""
84 .IP """RSA\-RIPEMD160"", ""ripemd160WithRSA"", ""1.3.36.3.3.1.2""" 4
85 .IX Item """RSA-RIPEMD160"", ""ripemd160WithRSA"", ""1.3.36.3.3.1.2"""
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Drsa.h46 /* The types RSA and RSA_METHOD are defined in ossl_typ.h */
79 * RSA implementation now uses blinding by
93 * new with 0.9.7h; the built-in RSA
105 * New with 3.0: use part of the flags to denote exact type of RSA key,
107 * These different types share the same RSA structure, but indicate the
110 * RSA - this is the "normal" unlimited RSA structure (typenum 0)
212 OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
213 OSSL_DEPRECATEDIN_3_0 RSA *RSA_new_method(ENGINE *engine);
214 OSSL_DEPRECATEDIN_3_0 int RSA_bits(const RSA *rsa);
215 OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_ossl.c11 * RSA low level APIs are deprecated for public use, but still ok for
25 unsigned char *to, RSA *rsa, int padding);
27 unsigned char *to, RSA *rsa, int padding);
29 unsigned char *to, RSA *rsa, int padding);
31 unsigned char *to, RSA *rsa, int padding);
32 static int rsa_ossl_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa,
34 static int rsa_ossl_init(RSA *rsa);
35 static int rsa_ossl_finish(RSA *rsa);
37 static int rsa_ossl_s390x_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa,
40 "OpenSSL PKCS#1 RSA",
[all …]
H A Drsa_sp800_56b_gen.c29 * rsa Object used to store primes p & q.
55 int ossl_rsa_fips186_4_gen_prob_primes(RSA *rsa, RSA_ACVP_TEST *test, in ossl_rsa_fips186_4_gen_prob_primes() argument
85 * NOTE: SP800-131A Rev1 Disallows key lengths of < 2048 bits for RSA in ossl_rsa_fips186_4_gen_prob_primes()
112 if (rsa->p == NULL) in ossl_rsa_fips186_4_gen_prob_primes()
113 rsa->p = BN_secure_new(); in ossl_rsa_fips186_4_gen_prob_primes()
114 if (rsa->q == NULL) in ossl_rsa_fips186_4_gen_prob_primes()
115 rsa->q = BN_secure_new(); in ossl_rsa_fips186_4_gen_prob_primes()
116 if (rsa->p == NULL || rsa->q == NULL) in ossl_rsa_fips186_4_gen_prob_primes()
118 BN_set_flags(rsa->p, BN_FLG_CONSTTIME); in ossl_rsa_fips186_4_gen_prob_primes()
119 BN_set_flags(rsa->q, BN_FLG_CONSTTIME); in ossl_rsa_fips186_4_gen_prob_primes()
[all …]
H A Drsa_x931g.c11 * RSA low level APIs are deprecated for public use, but still ok for
23 /* X9.31 RSA key derivation and generation */
25 int RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, in RSA_X931_derive_ex() argument
34 if (rsa == NULL) in RSA_X931_derive_ex()
37 ctx = BN_CTX_new_ex(rsa->libctx); in RSA_X931_derive_ex()
49 if (!rsa->e) { in RSA_X931_derive_ex()
50 rsa->e = BN_dup(e); in RSA_X931_derive_ex()
51 if (!rsa->e) in RSA_X931_derive_ex()
54 e = rsa->e; in RSA_X931_derive_ex()
62 if (Xp && rsa->p == NULL) { in RSA_X931_derive_ex()
[all …]
H A Drsa_crpt.c11 * RSA low level APIs are deprecated for public use, but still ok for
23 int RSA_bits(const RSA *r) in RSA_bits()
28 int RSA_size(const RSA *r) in RSA_size()
34 RSA *rsa, int padding) in RSA_public_encrypt() argument
36 return rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding); in RSA_public_encrypt()
40 unsigned char *to, RSA *rsa, int padding) in RSA_private_encrypt() argument
42 return rsa->meth->rsa_priv_enc(flen, from, to, rsa, padding); in RSA_private_encrypt()
46 unsigned char *to, RSA *rsa, int padding) in RSA_private_decrypt() argument
48 return rsa->meth->rsa_priv_dec(flen, from, to, rsa, padding); in RSA_private_decrypt()
52 RSA *rsa, int padding) in RSA_public_decrypt() argument
[all …]
H A Drsa_local.h14 #include "crypto/rsa.h"
85 /* for multi-prime RSA, defined in RFC 8017 */
87 /* Be careful using this if the RSA structure is shared */
106 unsigned char *to, RSA *rsa, int padding);
108 unsigned char *to, RSA *rsa, int padding);
110 unsigned char *to, RSA *rsa, int padding);
112 unsigned char *to, RSA *rsa, int padding);
114 int (*rsa_mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
119 int (*init) (RSA *rsa);
121 int (*finish) (RSA *rsa);
[all …]
H A Drsa_sp800_56b_check.c17 * Part of the RSA keypair test.
24 int ossl_rsa_check_crt_components(const RSA *rsa, BN_CTX *ctx) in ossl_rsa_check_crt_components() argument
30 if (rsa->dmp1 == NULL || rsa->dmq1 == NULL || rsa->iqmp == NULL) { in ossl_rsa_check_crt_components()
31 if (rsa->dmp1 != NULL || rsa->dmq1 != NULL || rsa->iqmp != NULL) in ossl_rsa_check_crt_components()
50 && (BN_copy(p1, rsa->p) != NULL) in ossl_rsa_check_crt_components()
53 && (BN_copy(q1, rsa->q) != NULL) in ossl_rsa_check_crt_components()
56 && (BN_cmp(rsa->dmp1, BN_value_one()) > 0) in ossl_rsa_check_crt_components()
57 && (BN_cmp(rsa->dmp1, p1) < 0) in ossl_rsa_check_crt_components()
59 && (BN_cmp(rsa->dmq1, BN_value_one()) > 0) in ossl_rsa_check_crt_components()
60 && (BN_cmp(rsa->dmq1, q1) < 0) in ossl_rsa_check_crt_components()
[all …]
H A Drsa_meth.c11 * RSA low level APIs are deprecated for public use, but still ok for
104 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_pub_enc()
111 unsigned char *to, RSA *rsa, in RSA_meth_set_pub_enc() argument
120 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_pub_dec()
127 unsigned char *to, RSA *rsa, in RSA_meth_set_pub_dec() argument
136 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_priv_enc()
143 unsigned char *to, RSA *rsa, in RSA_meth_set_priv_enc() argument
152 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_priv_dec()
159 unsigned char *to, RSA *rsa, in RSA_meth_set_priv_dec() argument
168 (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx) in RSA_meth_get_mod_exp()
[all …]
H A Drsa_gen.c17 * RSA low level APIs are deprecated for public use, but still ok for
30 static int rsa_keygen_pairwise_test(RSA *rsa, OSSL_CALLBACK *cb, void *cbarg);
31 static int rsa_keygen(OSSL_LIB_CTX *libctx, RSA *rsa, int bits, int primes,
41 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) in RSA_generate_key_ex() argument
43 if (rsa->meth->rsa_keygen != NULL) in RSA_generate_key_ex()
44 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb); in RSA_generate_key_ex()
46 return RSA_generate_multi_prime_key(rsa, bits, RSA_DEFAULT_PRIME_NUM, in RSA_generate_key_ex()
50 int RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes, in RSA_generate_multi_prime_key() argument
55 if (rsa->meth->rsa_multi_prime_keygen != NULL) { in RSA_generate_multi_prime_key()
56 return rsa->meth->rsa_multi_prime_keygen(rsa, bits, primes, in RSA_generate_multi_prime_key()
[all …]
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devppkey_rsa_common.txt17 # RSA 2048 bit key.
19 PrivateKey = RSA-2048
51 PublicKey = RSA-2048-PUBLIC
62 PrivPubKeyPair = RSA-2048:RSA-2048-PUBLIC
66 # generated using (openssl genpkey -algorithm RSA -pkeyopt bits:1024)
67 PrivateKey = RSA-1024
85 PrivateKey = RSA-512
97 Title = RSA tests
99 Verify = RSA-2048
105 Sign = RSA-2048
[all …]
H A Devppkey_rsa_sigalg.txt17 # RSA 2048 bit key.
19 PrivateKey = RSA-2048
51 PublicKey = RSA-2048-PUBLIC
62 PrivPubKeyPair = RSA-2048:RSA-2048-PUBLIC
64 Title = RSA tests with EVP_PKEY_sign, EVP_PKEY_verify, EVP_PKEY_verify_recover
66 # Demonstrate the possibility to use the RSA (not RSA-SHA1) signature
70 Sign = RSA:RSA-2048
76 Sign = RSA-SHA1:RSA-2048
82 Sign = RSA-SHA1:RSA-2048
89 Sign = RSA-SHA1:RSA-2048
[all …]
H A Devppkey_rsa.txt19 # RSA 2048 bit key.
21 PrivateKey = RSA-2048
53 PublicKey = RSA-2048-PUBLIC
64 PrivPubKeyPair = RSA-2048:RSA-2048-PUBLIC
66 Title = RSA tests
69 Sign = RSA-2048
76 Sign = RSA-2048
84 Sign = RSA-2048
91 VerifyRecover = RSA-2048
98 Verify = RSA-2048
[all …]
/freebsd/crypto/openssl/doc/man7/
H A DEVP_PKEY-RSA.pod5 EVP_PKEY-RSA, EVP_KEYMGMT-RSA, RSA
6 - EVP_PKEY RSA keytype and algorithm support
10 The B<RSA> keytype is implemented in OpenSSL's default and FIPS providers.
11 That implementation supports the basic RSA keys, containing the modulus I<n>,
16 =head2 Common RSA parameters
19 L<provider-keymgmt(7)/Common parameters>), the B<RSA> keytype implementation
26 The RSA modulus "n" value.
30 The RSA public exponent "e" value.
37 The RSA private exponent "d" value.
39 =item "rsa-factor1" (B<OSSL_PKEY_PARAM_RSA_FACTOR1>) <unsigned integer>
[all …]
/freebsd/secure/lib/libcrypto/man/man3/
H A DRSA_meth_new.376 \&\- Routines to build up RSA methods
80 \& #include <openssl/rsa.h>
103 \& unsigned char *to, RSA *rsa, int padding);
104 \& int RSA_meth_set_pub_enc(RSA_METHOD *rsa,
106 \& unsigned char *to, RSA *rsa,
111 \& unsigned char *to, RSA *rsa, int padding);
112 \& int RSA_meth_set_pub_dec(RSA_METHOD *rsa,
114 \& unsigned char *to, RSA *rsa,
118 \& unsigned char *to, RSA *rsa,
120 \& int RSA_meth_set_priv_enc(RSA_METHOD *rsa,
[all …]
H A DRSA_set_method.366 RSA_new_method \- select RSA method
70 \& #include <openssl/rsa.h>
82 \& int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
84 \& const RSA_METHOD *RSA_get_method(const RSA *rsa);
88 \& int RSA_flags(const RSA *rsa);
90 \& RSA *RSA_new_method(ENGINE *engine);
97 An \fBRSA_METHOD\fR specifies the functions that OpenSSL uses for RSA
100 important information about how these RSA API functions are affected by the
106 \&\fBRSA_set_default_method()\fR makes \fBmeth\fR the default method for all RSA
109 been set as a default for RSA, so this function is no longer recommended.
[all …]
H A DRSA_get0_key.372 \&\- Routines for getting and setting data in an RSA object
76 \& #include <openssl/rsa.h>
84 \& int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
85 \& int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
86 \& int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
87 \& void RSA_get0_key(const RSA *r,
89 \& void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
90 \& void RSA_get0_crt_params(const RSA *r,
93 \& const BIGNUM *RSA_get0_n(const RSA *d);
94 \& const BIGNUM *RSA_get0_e(const RSA *d);
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DRSA_meth_new.pod17 - Routines to build up RSA methods
21 #include <openssl/rsa.h>
42 unsigned char *to, RSA *rsa, int padding);
43 int RSA_meth_set_pub_enc(RSA_METHOD *rsa,
45 unsigned char *to, RSA *rsa,
50 unsigned char *to, RSA *rsa, int padding);
51 int RSA_meth_set_pub_dec(RSA_METHOD *rsa,
53 unsigned char *to, RSA *rsa,
57 unsigned char *to, RSA *rsa,
59 int RSA_meth_set_priv_enc(RSA_METHOD *rsa,
[all …]
H A DRSA_set_method.pod7 RSA_new_method - select RSA method
11 #include <openssl/rsa.h>
21 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
23 const RSA_METHOD *RSA_get_method(const RSA *rsa);
27 int RSA_flags(const RSA *rsa);
29 RSA *RSA_new_method(ENGINE *engine);
36 An B<RSA_METHOD> specifies the functions that OpenSSL uses for RSA
39 important information about how these RSA API functions are affected by the
45 RSA_set_default_method() makes B<meth> the default method for all RSA
48 been set as a default for RSA, so this function is no longer recommended.
[all …]
H A DRSA_get0_key.pod13 - Routines for getting and setting data in an RSA object
17 #include <openssl/rsa.h>
23 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
24 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
25 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
26 void RSA_get0_key(const RSA *r,
28 void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
29 void RSA_get0_crt_params(const RSA *r,
32 const BIGNUM *RSA_get0_n(const RSA *d);
33 const BIGNUM *RSA_get0_e(const RSA *d);
[all …]
/freebsd/crypto/openssl/test/ssl-tests/
H A D25-cipher.cnf.in25 "CipherString" => "ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256",
29 "CipherString" => "ECDHE-RSA-AES256-SHA384"
32 "ExpectedCipher" => "ECDHE-RSA-AES256-SHA384",
39 "CipherString" => "ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256",
43 "CipherString" => "ECDHE-RSA-AES128-SHA256"
46 "ExpectedCipher" => "ECDHE-RSA-AES128-SHA256",
53 "CipherString" => "ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256",
57 "CipherString" => "ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384",
60 "ExpectedCipher" => "ECDHE-RSA-AES128-SHA256",
67 "CipherString" => "ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256",
[all …]
/freebsd/crypto/openssl/ssl/
H A Dssl_rsa_legacy.c10 /* We need to use the deprecated RSA low level calls */
14 #include <openssl/rsa.h>
17 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa) in SSL_use_RSAPrivateKey() argument
22 if (rsa == NULL) { in SSL_use_RSAPrivateKey()
31 if (!RSA_up_ref(rsa)) { in SSL_use_RSAPrivateKey()
36 if (EVP_PKEY_assign_RSA(pkey, rsa) <= 0) { in SSL_use_RSAPrivateKey()
37 RSA_free(rsa); in SSL_use_RSAPrivateKey()
51 RSA *rsa = NULL; in SSL_use_RSAPrivateKey_file() local
70 rsa = d2i_RSAPrivateKey_bio(in, NULL); in SSL_use_RSAPrivateKey_file()
73 rsa = PEM_read_bio_RSAPrivateKey(in, NULL, in SSL_use_RSAPrivateKey_file()
[all …]
/freebsd/lib/libbearssl/
H A DMakefile99 rsa/rsa_default_keygen.c \
100 rsa/rsa_default_modulus.c \
101 rsa/rsa_default_pkcs1_sign.c \
102 rsa/rsa_default_priv.c \
103 rsa/rsa_default_privexp.c \
104 rsa/rsa_default_pss_sign.c \
105 rsa/rsa_default_pss_vrfy.c \
106 rsa/rsa_default_pub.c \
107 rsa/rsa_default_pubexp.c \
108 rsa/rsa_i15_keygen.c \
[all …]

12345678910>>...48