Searched refs:RSA (Results 1 - 25 of 79) sorted by relevance

1234

/freebsd-12-stable/crypto/openssl/crypto/rsa/
H A Drsa_asn1.c20 * RSA keys.
31 RSA_free((RSA *)*pval);
35 if (((RSA *)*pval)->version != RSA_ASN1_VERSION_MULTI) {
39 return (rsa_multip_calc_product((RSA *)*pval) == 1) ? 2 : 0;
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,
[all...]
H A Drsa_local.h46 /* for multi-prime RSA, defined in RFC 8017 */
50 /* be careful using this if the RSA structure is shared */
71 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 *rs
[all...]
H A Drsa_meth.c102 unsigned char *to, RSA *rsa, int padding)
109 unsigned char *to, RSA *rsa,
118 unsigned char *to, RSA *rsa, int padding)
125 unsigned char *to, RSA *rsa,
134 unsigned char *to, RSA *rsa, int padding)
141 unsigned char *to, RSA *rsa,
150 unsigned char *to, RSA *rsa, int padding)
157 unsigned char *to, RSA *rsa,
166 (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx)
172 int (*mod_exp) (BIGNUM *r0, const BIGNUM *i, RSA *rs
[all...]
H A Drsa_lib.c20 RSA *RSA_new(void)
25 const RSA_METHOD *RSA_get_method(const RSA *rsa)
30 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth)
50 RSA *RSA_new_method(ENGINE *engine)
52 RSA *ret = OPENSSL_zalloc(sizeof(*ret));
105 void RSA_free(RSA *r)
113 REF_PRINT_COUNT("RSA", r);
144 int RSA_up_ref(RSA *r)
151 REF_PRINT_COUNT("RSA", r);
156 int RSA_set_ex_data(RSA *
[all...]
H A Drsa_prn.c16 int RSA_print_fp(FILE *fp, const RSA *x, int off)
32 int RSA_print(BIO *bp, const RSA *x, int off)
37 if (pk == NULL || !EVP_PKEY_set1_RSA(pk, (RSA *)x))
H A Drsa_crpt.c17 int RSA_bits(const RSA *r)
22 int RSA_size(const RSA *r)
28 RSA *rsa, int padding)
34 unsigned char *to, RSA *rsa, int padding)
40 unsigned char *to, RSA *rsa, int padding)
46 RSA *rsa, int padding)
51 int RSA_flags(const RSA *r)
56 void RSA_blinding_off(RSA *rsa)
64 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx)
110 BN_BLINDING *RSA_setup_blinding(RSA *rs
[all...]
H A Drsa_depr.c27 RSA *RSA_generate_key(int bits, unsigned long e_value,
32 RSA *rsa = RSA_new();
H A Drsa_saos.c20 RSA *rsa)
57 unsigned int siglen, RSA *rsa)
H A Drsa_pss.c25 int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
32 int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash,
138 int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,
145 int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,
H A Drsa_ossl.c16 unsigned char *to, RSA *rsa, int padding);
18 unsigned char *to, RSA *rsa, int padding);
20 unsigned char *to, RSA *rsa, int padding);
22 unsigned char *to, RSA *rsa, int padding);
23 static int rsa_ossl_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa,
25 static int rsa_ossl_init(RSA *rsa);
26 static int rsa_ossl_finish(RSA *rsa);
28 "OpenSSL PKCS#1 RSA",
69 unsigned char *to, RSA *rsa, int padding)
157 static BN_BLINDING *rsa_get_blinding(RSA *rs
[all...]
H A Drsa_gen.c22 static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value,
32 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb)
41 int RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,
64 static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value,
105 /* We need the RSA components non-NULL */
/freebsd-12-stable/crypto/openssl/include/openssl/
H A Drsa.h28 /* The types RSA and RSA_METHOD are defined in ossl_typ.h */
71 * RSA implementation now uses blinding by
85 * new with 0.9.7h; the built-in RSA
198 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 *
[all...]
H A Dx509.h400 RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa);
401 int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa);
402 RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa);
403 int i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa);
404 RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa);
405 int i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa);
438 RSA *d2i_RSAPrivateKey_bi
[all...]
/freebsd-12-stable/crypto/openssh/openbsd-compat/
H A Dopenssl-compat.h131 void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e,
136 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
140 void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1,
145 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
149 void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
153 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
206 int (*RSA_meth_get_finish(const RSA_METHOD *meth))(RSA *rsa);
211 const unsigned char *from, unsigned char *to, RSA *rsa, int padding));
216 const unsigned char *from, unsigned char *to, RSA *rsa, int padding));
220 int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish)(RSA *rs
[all...]
H A Dlibressl-api-compat.c16 * apply to all code found in this distribution, be it the RC4, RSA,
229 RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
242 RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
266 RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1,
280 RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp)
306 RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q)
317 RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q)
568 (*RSA_meth_get_finish(const RSA_METHOD *meth))(RSA *rsa)
577 const unsigned char *from, unsigned char *to, RSA *rsa, int padding))
587 const unsigned char *from, unsigned char *to, RSA *rs
[all...]
/freebsd-12-stable/contrib/ntp/include/
H A Dlibssl_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-12-stable/crypto/openssl/crypto/pem/
H A Dpem_all.c22 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa);
42 * We treat RSA or DSA private keys as a special case. For private keys we
47 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa)
49 RSA *rtmp;
63 RSA *PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **rsa, pem_password_cb *cb,
73 RSA *PEM_read_RSAPrivateKey(FILE *fp, RSA **rs
[all...]
/freebsd-12-stable/secure/lib/libcrypto/man/man7/
H A DMakefile5 MAN+= RSA-PSS.7
/freebsd-12-stable/crypto/openssl/crypto/x509/
H A Dx_all.c200 RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa)
205 int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa)
210 RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa)
215 RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa)
222 int i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa)
227 int i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa)
233 RSA *d2i_RSAPrivateKey_bi
[all...]
/freebsd-12-stable/contrib/unbound/sldns/
H A Dkeyraw.h91 * \return a RSA * structure with the key material
93 RSA *sldns_key_buf2rsa_raw(unsigned char* key, size_t len);
/freebsd-12-stable/contrib/ntp/libntp/
H A Dlibssl_compat.c110 RSA*
127 * set/get RSA params
131 const RSA * prsa,
149 RSA * prsa,
168 const RSA * prsa,
183 RSA * prsa,
200 RSA * prsa,
/freebsd-12-stable/crypto/openssl/engines/
H A De_dasync.c95 /* RSA */
98 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);
193 if ((dasync_rsa_method = RSA_meth_new("Dummy Async RSA method", 0)) == NULL
506 * RSA implementatio
[all...]
/freebsd-12-stable/contrib/ldns/ldns/
H A Dkeys.h240 * remainder of the (RSA) priv. key file generated from bind9
242 * \return NULL on failure otherwise a RSA structure
244 RSA *ldns_key_new_frm_fp_rsa(FILE *fp);
250 * remainder of the (RSA) priv. key file generated from bind9
253 * \return NULL on failure otherwise a RSA structure
255 RSA *ldns_key_new_frm_fp_rsa_l(FILE *fp, int *line_nr);
263 * \return NULL on failure otherwise a RSA structure
274 * \return NULL on failure otherwise a RSA structure
325 void ldns_key_set_rsa_key(ldns_key *k, RSA *r);
341 void ldns_key_assign_rsa_key(ldns_key *k, RSA *
[all...]
H A Ddnssec_sign.h70 * Sign a buffer with the RSA key (hash with SHA1)
75 ldns_rdf *ldns_sign_public_rsasha1(ldns_buffer *to_sign, RSA *key);
78 * Sign a buffer with the RSA key (hash with MD5)
83 ldns_rdf *ldns_sign_public_rsamd5(ldns_buffer *to_sign, RSA *key);
/freebsd-12-stable/crypto/heimdal/lib/hx509/
H A Dks_keychain.c86 RSA *rsa,
96 RSA *rsa,
107 RSA *rsa,
160 RSA * rsa, int padding)
221 kc_rsa_init(RSA *rsa)
227 kc_rsa_finish(RSA *rsa)
237 "hx509 Keychain PKCS#1 RSA",
259 RSA *rsa;

Completed in 127 milliseconds

1234