Home
last modified time | relevance | path

Searched refs:RSA (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/freebsd-13-stable/crypto/openssl/include/openssl/
HDrsa.h198 RSA *RSA_new(void);
199 RSA *RSA_new_method(ENGINE *engine);
200 int RSA_bits(const RSA *rsa);
201 int RSA_size(const RSA *rsa);
202 int RSA_security_bits(const RSA *rsa);
204 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
205 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
206 int RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
207 int RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[],
209 void RSA_get0_key(const RSA *r,
[all …]
/freebsd-13-stable/crypto/openssl/crypto/rsa/
HDrsa_asn1.c31 RSA_free((RSA *)*pval); in rsa_cb()
35 if (((RSA *)*pval)->version != RSA_ASN1_VERSION_MULTI) { in rsa_cb()
39 return (rsa_multip_calc_product((RSA *)*pval) == 1) ? 2 : 0; in rsa_cb()
52 ASN1_EMBED(RSA, version, INT32),
53 ASN1_SIMPLE(RSA, n, BIGNUM),
54 ASN1_SIMPLE(RSA, e, BIGNUM),
55 ASN1_SIMPLE(RSA, d, CBIGNUM),
56 ASN1_SIMPLE(RSA, p, CBIGNUM),
57 ASN1_SIMPLE(RSA, q, CBIGNUM),
58 ASN1_SIMPLE(RSA, dmp1, CBIGNUM),
[all …]
HDrsa_lib.c20 RSA *RSA_new(void) in RSA_new()
25 const RSA_METHOD *RSA_get_method(const RSA *rsa) in RSA_get_method()
30 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth) in RSA_set_method()
50 RSA *RSA_new_method(ENGINE *engine) in RSA_new_method()
52 RSA *ret = OPENSSL_zalloc(sizeof(*ret)); in RSA_new_method()
105 void RSA_free(RSA *r) in RSA_free()
144 int RSA_up_ref(RSA *r) in RSA_up_ref()
156 int RSA_set_ex_data(RSA *r, int idx, void *arg) in RSA_set_ex_data()
161 void *RSA_get_ex_data(const RSA *r, int idx) in RSA_get_ex_data()
166 int RSA_security_bits(const RSA *rsa) in RSA_security_bits()
[all …]
HDrsa_meth.c102 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_pub_enc()
109 unsigned char *to, RSA *rsa, in RSA_meth_set_pub_enc()
118 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_pub_dec()
125 unsigned char *to, RSA *rsa, in RSA_meth_set_pub_dec()
134 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_priv_enc()
141 unsigned char *to, RSA *rsa, in RSA_meth_set_priv_enc()
150 unsigned char *to, RSA *rsa, int padding) in RSA_meth_get_priv_dec()
157 unsigned char *to, RSA *rsa, in RSA_meth_set_priv_dec()
166 (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx) in RSA_meth_get_mod_exp()
172 int (*mod_exp) (BIGNUM *r0, const BIGNUM *i, RSA *rsa, in RSA_meth_set_mod_exp()
[all …]
HDrsa_local.h71 unsigned char *to, RSA *rsa, int padding);
73 unsigned char *to, RSA *rsa, int padding);
75 unsigned char *to, RSA *rsa, int padding);
77 unsigned char *to, RSA *rsa, int padding);
79 int (*rsa_mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
84 int (*init) (RSA *rsa);
86 int (*finish) (RSA *rsa);
100 const RSA *rsa);
103 unsigned int siglen, const RSA *rsa);
110 int (*rsa_keygen) (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
[all …]
HDrsa_crpt.c17 int RSA_bits(const RSA *r) in RSA_bits()
22 int RSA_size(const RSA *r) in RSA_size()
28 RSA *rsa, int padding) in RSA_public_encrypt()
34 unsigned char *to, RSA *rsa, int padding) in RSA_private_encrypt()
40 unsigned char *to, RSA *rsa, int padding) in RSA_private_decrypt()
46 RSA *rsa, int padding) in RSA_public_decrypt()
51 int RSA_flags(const RSA *r) in RSA_flags()
56 void RSA_blinding_off(RSA *rsa) in RSA_blinding_off()
64 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx) in RSA_blinding_on()
110 BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) in RSA_setup_blinding()
/freebsd-13-stable/crypto/openssl/doc/man3/
HDRSA_get0_key.pod13 - Routines for getting and setting data in an RSA object
19 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
20 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
21 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
22 void RSA_get0_key(const RSA *r,
24 void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
25 void RSA_get0_crt_params(const RSA *r,
28 const BIGNUM *RSA_get0_n(const RSA *d);
29 const BIGNUM *RSA_get0_e(const RSA *d);
30 const BIGNUM *RSA_get0_d(const RSA *d);
[all …]
HDRSA_set_method.pod7 RSA_new_method - select RSA method
17 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
19 RSA_METHOD *RSA_get_method(const RSA *rsa);
23 int RSA_flags(const RSA *rsa);
25 RSA *RSA_new_method(ENGINE *engine);
29 An B<RSA_METHOD> specifies the functions that OpenSSL uses for RSA
32 important information about how these RSA API functions are affected by the
38 RSA_set_default_method() makes B<meth> the default method for all RSA
41 been set as a default for RSA, so this function is no longer recommended.
51 B<rsa>. This will replace the RSA_METHOD used by the RSA key and if the
[all …]
HDRSA_check_key.pod5 RSA_check_key_ex, RSA_check_key - validate private RSA keys
11 int RSA_check_key_ex(RSA *rsa, BN_GENCB *cb);
13 int RSA_check_key(RSA *rsa);
17 RSA_check_key_ex() function validates RSA keys.
21 It does not work on RSA public keys that have only the modulus
26 the RSA key material, so the RSA key structure must contain all the private
28 Therefore, it cannot be used with any arbitrary RSA key object,
29 even if it is otherwise fit for regular RSA operation.
39 return 1 if B<rsa> is a valid RSA key, and 0 otherwise.
47 Unlike most other RSA functions, this function does B<not> work
[all …]
HDRSA_meth_new.pod17 - Routines to build up RSA methods
38 unsigned char *to, RSA *rsa, int padding);
41 unsigned char *to, RSA *rsa,
46 unsigned char *to, RSA *rsa, int padding);
49 unsigned char *to, RSA *rsa,
53 unsigned char *to, RSA *rsa,
57 unsigned char *to, RSA *rsa, int padding));
60 unsigned char *to, RSA *rsa,
64 unsigned char *to, RSA *rsa, int padding));
68 RSA *rsa, BN_CTX *ctx);
[all …]
HDEVP_PKEY_CTX_set_rsa_pss_keygen_md.pod8 - EVP_PKEY RSA-PSS algorithm support functions
23 These are the functions that implement L<RSA-PSS(7)>.
29 than B<PSS>. It is otherwise similar to the B<RSA> version.
34 to the B<RSA> operation except detection of the salt length (using
42 similar to the B<RSA> versions.
46 As with RSA key generation the EVP_PKEY_CTX_set_rsa_keygen_bits()
47 and EVP_PKEY_CTX_set_rsa_keygen_pubexp() macros are supported for RSA-PSS:
48 they have exactly the same meaning as for the RSA algorithm.
68 A context for the B<RSA-PSS> algorithm can be obtained by calling:
80 L<RSA-PSS(7)>,
HDRSA_blinding_on.pod5 RSA_blinding_on, RSA_blinding_off - protect the RSA operation from timing attacks
11 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
13 void RSA_blinding_off(RSA *rsa);
17 RSA is vulnerable to timing attacks. In a setup where attackers can
18 measure the time of RSA decryption or signature operations, blinding
19 must be used to protect the RSA operation from that attack.
HDRSA_size.pod5 RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits
11 int RSA_size(const RSA *rsa);
13 int RSA_bits(const RSA *rsa);
15 int RSA_security_bits(const RSA *rsa)
19 RSA_size() returns the RSA modulus size in bytes. It can be used to
20 determine how much memory must be allocated for an RSA encrypted
HDRSA_generate_key.pod6 RSA_generate_multi_prime_key - generate RSA key pair
12 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
13 int RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb);
18 RSA *RSA_generate_key(int bits, unsigned long e,
24 RSA_generate_key_ex() generates a 2-prime RSA key pair and stores it in the
25 B<RSA> structure provided in B<rsa>. The pseudo-random number generator must
28 RSA_generate_multi_prime_key() generates a multi-prime RSA key pair and stores
29 it in the B<RSA> structure provided in B<rsa>. The number of primes is given by
84 RSA_generate_key() returns a pointer to the RSA structure or
HDRSA_new.pod5 RSA_new, RSA_free - allocate and free RSA objects
11 RSA *RSA_new(void);
13 void RSA_free(RSA *rsa);
17 RSA_new() allocates and initializes an B<RSA> structure. It is equivalent to
20 RSA_free() frees the B<RSA> structure and its components. The key is
/freebsd-13-stable/crypto/openssh/regress/
HDagent-pkcs11-cert.sh20 $SSHKEYGEN -qs $OBJ/ca -I "rsa_key" -n $USER -z 2 ${SSH_SOFTHSM_DIR}/RSA.pub ||
47 ${SSH_SOFTHSM_DIR}/RSA.pub \
48 ${SSH_SOFTHSM_DIR}/RSA-cert.pub ||
53 ${SSH_SOFTHSM_DIR}/RSA.pub \
55 ${SSH_SOFTHSM_DIR}/RSA-cert.pub | sort > $OBJ/expect_list
60 for x in ${SSH_SOFTHSM_DIR}/EC.pub ${SSH_SOFTHSM_DIR}/RSA.pub \
61 ${SSH_SOFTHSM_DIR}/EC-cert.pub ${SSH_SOFTHSM_DIR}/RSA-cert.pub ; do
66 $SSHADD -qd ${SSH_SOFTHSM_DIR}/EC.pub ${SSH_SOFTHSM_DIR}/RSA.pub
68 for x in ${SSH_SOFTHSM_DIR}/EC-cert.pub ${SSH_SOFTHSM_DIR}/RSA-cert.pub ; do
79 ${SSH_SOFTHSM_DIR}/RSA.pub \
[all …]
/freebsd-13-stable/crypto/openssl/crypto/pem/
HDpem_all.c22 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa);
47 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa) in IMPLEMENT_PEM_rw()
49 RSA *rtmp; in IMPLEMENT_PEM_rw()
63 RSA *PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **rsa, pem_password_cb *cb, in PEM_read_bio_RSAPrivateKey()
73 RSA *PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) in PEM_read_RSAPrivateKey()
82 IMPLEMENT_PEM_write_cb_const(RSAPrivateKey, RSA, PEM_STRING_RSA, in IMPLEMENT_PEM_write_cb_const() argument
86 IMPLEMENT_PEM_rw_const(RSAPublicKey, RSA, PEM_STRING_RSA_PUBLIC, in IMPLEMENT_PEM_write_cb_const()
88 IMPLEMENT_PEM_rw(RSA_PUBKEY, RSA, PEM_STRING_PUBLIC, RSA_PUBKEY) in IMPLEMENT_PEM_write_cb_const()
/freebsd-13-stable/contrib/bearssl/test/x509/
HDalltests.txt11 type = RSA
41 type = RSA
47 type = RSA
53 type = RSA
137 keytype = RSA
149 keytype = RSA
159 keytype = RSA
170 keytype = RSA
181 keytype = RSA
192 keytype = RSA
[all …]
/freebsd-13-stable/crypto/openssl/doc/man1/
HDciphers.pod221 =item B<kRSA>, B<aRSA>, B<RSA>
223 Cipher suites using RSA key exchange or authentication. B<RSA> is an alias for
229 with RSA and DSS keys or either respectively.
408 e.g. DES-CBC3-SHA. In these cases, RSA authentication is used.
420 SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA DH-RSA-DES-CBC3-SHA
422 SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA DHE-RSA-DES-CBC3-SHA
443 TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA DHE-RSA-DES-CBC3-SHA
455 TLS_DH_RSA_WITH_AES_128_CBC_SHA DH-RSA-AES128-SHA
456 TLS_DH_RSA_WITH_AES_256_CBC_SHA DH-RSA-AES256-SHA
460 TLS_DHE_RSA_WITH_AES_128_CBC_SHA DHE-RSA-AES128-SHA
[all …]
/freebsd-13-stable/crypto/openssl/crypto/x509/
HDx_all.c209 RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) in d2i_RSAPrivateKey_fp()
214 int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa) in i2d_RSAPrivateKey_fp()
219 RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa) in d2i_RSAPublicKey_fp()
224 RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa) in d2i_RSA_PUBKEY_fp()
231 int i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa) in i2d_RSAPublicKey_fp()
236 int i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa) in i2d_RSA_PUBKEY_fp()
242 RSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) in d2i_RSAPrivateKey_bio()
247 int i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa) in i2d_RSAPrivateKey_bio()
252 RSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa) in d2i_RSAPublicKey_bio()
257 RSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa) in d2i_RSA_PUBKEY_bio()
[all …]
/freebsd-13-stable/crypto/openssl/doc/man7/
HDRSA-PSS.pod5 RSA-PSS - EVP_PKEY RSA-PSS algorithm support
9 The B<RSA-PSS> EVP_PKEY implementation is a restricted version of the RSA
15 This algorithm shares several control operations with the B<RSA> algorithm
20 Signing and verification is similar to the B<RSA> algorithm except the
35 The PKCS#8 private key format used for RSA-PSS keys is similar to the RSA
/freebsd-13-stable/contrib/file/magic/Magdir/
HDssl16 # Note: called "ASCII armored RSA Private Key" by TrID
17 0 string -----BEGIN\040RSA\040PRIVATE PEM RSA private key
21 0 string -----BEGIN\040RSA\040PRIVATE PEM RSA private key
31 0 string -----BEGIN\040RSA\040PUBLIC\040KEY----- PEM RSA public key
HDpgp102 # - RSA (e=65537) secret (sub-)keys
104 # 1024b RSA encrypted data
106 0 string \x84\x8c\x03 PGP RSA encrypted session key -
109 >11 byte 0x01 RSA (Encrypt or Sign) 1024b
110 >11 byte 0x02 RSA Encrypt-Only 1024b
121 # 2048b RSA encrypted data
123 0 string \x85\x01\x0c\x03 PGP RSA encrypted session key -
126 >12 byte 0x01 RSA (Encrypt or Sign) 2048b
127 >12 byte 0x02 RSA Encrypt-Only 2048b
138 # 3072b RSA encrypted data
[all …]
/freebsd-13-stable/contrib/ntp/include/
HDlibssl_compat.h56 extern RSA* sslshim_EVP_PKEY_get0_RSA(EVP_PKEY * pkey);
59 extern void sslshim_RSA_get0_key(const RSA *prsa, const BIGNUM **pn,
61 extern int sslshim_RSA_set0_key(RSA *prsa, BIGNUM *n,
63 extern void sslshim_RSA_get0_factors(const RSA *prsa, const BIGNUM **pp,
65 extern int sslshim_RSA_set0_factors(RSA *prsar, BIGNUM *p, BIGNUM *q);
66 extern int sslshim_RSA_set0_crt_params(RSA *prsa, BIGNUM *dmp1,
/freebsd-13-stable/crypto/openssl/engines/
HDe_dasync.c98 unsigned char *to, RSA *rsa, int padding);
100 unsigned char *to, RSA *rsa, int padding);
102 unsigned char *to, RSA *rsa, int padding);
104 unsigned char *to, RSA *rsa, int padding);
105 static int dasync_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa,
108 static int dasync_rsa_init(RSA *rsa);
109 static int dasync_rsa_finish(RSA *rsa);
517 unsigned char *to, RSA *rsa, int padding) { in dasync_pub_enc()
525 unsigned char *to, RSA *rsa, int padding) { in dasync_pub_dec()
533 unsigned char *to, RSA *rsa, int padding) in dasync_rsa_priv_enc()
[all …]

12345678910>>...12