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

12345

/external/chromium_org/third_party/boringssl/src/crypto/rsa/
H A Drsa_asn1.c74 RSA_free((RSA *)*pval);
82 ASN1_SIMPLE(RSA, version, LONG),
83 ASN1_SIMPLE(RSA, n, BIGNUM),
84 ASN1_SIMPLE(RSA, e, BIGNUM),
85 ASN1_SIMPLE(RSA, d, BIGNUM),
86 ASN1_SIMPLE(RSA, p, BIGNUM),
87 ASN1_SIMPLE(RSA, q, BIGNUM),
88 ASN1_SIMPLE(RSA, dmp1, BIGNUM),
89 ASN1_SIMPLE(RSA, dmq1, BIGNUM),
90 ASN1_SIMPLE(RSA, iqm
[all...]
H A Dpadding.c74 OPENSSL_PUT_ERROR(RSA, RSA_padding_add_PKCS1_type_1,
80 OPENSSL_PUT_ERROR(RSA, RSA_padding_add_PKCS1_type_1,
105 OPENSSL_PUT_ERROR(RSA, RSA_padding_check_PKCS1_type_1,
112 OPENSSL_PUT_ERROR(RSA, RSA_padding_check_PKCS1_type_1,
126 OPENSSL_PUT_ERROR(RSA, RSA_padding_check_PKCS1_type_1,
135 OPENSSL_PUT_ERROR(RSA, RSA_padding_check_PKCS1_type_1,
141 OPENSSL_PUT_ERROR(RSA, RSA_padding_check_PKCS1_type_1,
148 OPENSSL_PUT_ERROR(RSA, RSA_padding_check_PKCS1_type_1,
163 OPENSSL_PUT_ERROR(RSA, RSA_padding_add_PKCS1_type_2,
169 OPENSSL_PUT_ERROR(RSA, RSA_padding_add_PKCS1_type_
[all...]
H A Drsa.c10 * apply to all code found in this distribution, be it the RC4, RSA,
71 RSA *RSA_new(void) { return RSA_new_method(NULL); }
73 RSA *RSA_new_method(const ENGINE *engine) {
74 RSA *rsa = (RSA *)OPENSSL_malloc(sizeof(RSA));
76 OPENSSL_PUT_ERROR(RSA, RSA_new_method, ERR_R_MALLOC_FAILURE);
80 memset(rsa, 0, sizeof(RSA));
110 void RSA_free(RSA *rsa) {
154 int RSA_up_ref(RSA *rs
[all...]
H A Drsa_impl.c10 * apply to all code found in this distribution, be it the RC4, RSA,
72 static int finish(RSA *rsa) {
86 static size_t size(const RSA *rsa) {
90 static int encrypt(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out,
99 OPENSSL_PUT_ERROR(RSA, encrypt, RSA_R_MODULUS_TOO_LARGE);
104 OPENSSL_PUT_ERROR(RSA, encrypt, RSA_R_OUTPUT_BUFFER_TOO_SMALL);
109 OPENSSL_PUT_ERROR(RSA, encrypt, RSA_R_BAD_E_VALUE);
116 OPENSSL_PUT_ERROR(RSA, encrypt, RSA_R_BAD_E_VALUE);
130 OPENSSL_PUT_ERROR(RSA, encrypt, ERR_R_MALLOC_FAILURE);
147 OPENSSL_PUT_ERROR(RSA, encryp
[all...]
H A Dinternal.h10 * apply to all code found in this distribution, be it the RC4, RSA,
92 BN_BLINDING *rsa_setup_blinding(RSA *rsa, BN_CTX *in_ctx);
117 int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const uint8_t *mHash,
121 int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, uint8_t *EM, const uint8_t *mHash,
128 int RSA_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in,
/external/openssl/crypto/rsa/
H A Drsa_asn1.c75 RSA_free((RSA *)*pval);
83 ASN1_SIMPLE(RSA, version, LONG),
84 ASN1_SIMPLE(RSA, n, BIGNUM),
85 ASN1_SIMPLE(RSA, e, BIGNUM),
86 ASN1_SIMPLE(RSA, d, BIGNUM),
87 ASN1_SIMPLE(RSA, p, BIGNUM),
88 ASN1_SIMPLE(RSA, q, BIGNUM),
89 ASN1_SIMPLE(RSA, dmp1, BIGNUM),
90 ASN1_SIMPLE(RSA, dmq1, BIGNUM),
91 ASN1_SIMPLE(RSA, iqm
[all...]
H A Drsa_null.c65 /* This is a dummy RSA implementation that just returns errors when called.
66 * It is designed to allow some RSA functions to work while stopping those
67 * covered by the RSA patent. That is RSA, encryption, decryption, signing
68 * and verify is not allowed but RSA key generation, key checking and other
69 * operations (like storing RSA keys) are permitted.
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 unsigned char *to, RSA *rs
[all...]
H A Drsa_locl.h4 RSA *rsa);
H A Drsa.h11 * apply to all code found in this distribution, be it the RC4, RSA,
74 #error RSA is disabled.
82 /* typedef struct rsa_st RSA; */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding);
99 RSA *rsa,int padding);
100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
104 int (*init)(RSA *rsa); /* called at new */
105 int (*finish)(RSA *rs
[all...]
H A Drsa_prn.c65 int RSA_print_fp(FILE *fp, const RSA *x, int off)
82 int RSA_print(BIO *bp, const RSA *x, int off)
87 if (!pk || !EVP_PKEY_set1_RSA(pk, (RSA *)x))
H A Drsa_lib.c11 * apply to all code found in this distribution, be it the RC4, RSA,
74 const char RSA_version[]="RSA" OPENSSL_VERSION_PTEXT;
78 RSA *RSA_new(void)
80 RSA *r=RSA_new_method(NULL);
111 const RSA_METHOD *RSA_get_method(const RSA *rsa)
116 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth)
135 RSA *RSA_new_method(ENGINE *engine)
137 RSA *ret;
139 ret=(RSA *)OPENSSL_malloc(sizeof(RSA));
[all...]
H A Drsa_depr.c71 RSA *RSA_generate_key(int bits, unsigned long e_value,
76 RSA *rsa = RSA_new();
H A Drsa_crpt.c11 * apply to all code found in this distribution, be it the RC4, RSA,
70 int RSA_size(const RSA *r)
76 RSA *rsa, int padding)
90 RSA *rsa, int padding)
104 RSA *rsa, int padding)
118 RSA *rsa, int padding)
131 int RSA_flags(const RSA *r)
136 void RSA_blinding_off(RSA *rsa)
147 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx)
190 BN_BLINDING *RSA_setup_blinding(RSA *rs
[all...]
/external/chromium_org/net/android/
H A Dprivate_key_type_list.h9 DEFINE_PRIVATE_KEY_TYPE(RSA, 0)
H A Dkeystore_openssl.cc36 // Internally, it can hold a pointer to a RSA, DSA or ECDSA structure,
40 // The RSA type has a 'method' field pointer to a vtable-like structure
42 // correspond to operations on RSA keys (e.g. decode/encode with public
48 // signing operation using the other fields in the RSA structure (which
54 // RSA operation using platform Android APIs.
57 // be stored in the RSA instance, or made accessible when the custom RSA
72 // KeyExData contains the data that is contained in the EX_DATA of the RSA, DSA
77 // legacy_rsa, if not NULL, points to an RSA* in the system's OpenSSL (which
81 // modulus (in bytes) for RSA, o
[all...]
/external/chromium_org/third_party/boringssl/src/include/openssl/
H A Drsa.h10 * apply to all code found in this distribution, be it the RC4, RSA,
70 /* rsa.h contains functions for handling encryption and signature using RSA. */
75 /* RSA_new returns a new, empty RSA object or NULL on error. */
76 OPENSSL_EXPORT RSA *RSA_new(void);
79 OPENSSL_EXPORT RSA *RSA_new_method(const ENGINE *engine);
83 OPENSSL_EXPORT void RSA_free(RSA *rsa);
86 OPENSSL_EXPORT int RSA_up_ref(RSA *rsa);
91 /* RSA_generate_key_ex generates a new RSA key where the modulus has size
99 OPENSSL_EXPORT int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
121 OPENSSL_EXPORT int RSA_encrypt(RSA *rs
[all...]
/external/openssl/include/openssl/
H A Drsa.h11 * apply to all code found in this distribution, be it the RC4, RSA,
74 #error RSA is disabled.
82 /* typedef struct rsa_st RSA; */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding);
99 RSA *rsa,int padding);
100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
104 int (*init)(RSA *rsa); /* called at new */
105 int (*finish)(RSA *rs
[all...]
/external/ipsec-tools/src/racoon/
H A Drsalist.h52 RSA *rsa;
55 int rsa_key_insert(struct genlist *list, struct netaddr *src, struct netaddr *dst, RSA *rsa);
59 RSA *rsa_try_check_rsasign(vchar_t *source, vchar_t *sig, struct genlist *list);
/external/chromium_org/third_party/boringssl/src/crypto/pem/
H A Dpem_all.c10 * apply to all code found in this distribution, be it the RC4, RSA,
121 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa);
134 /* We treat RSA or DSA private keys as a special case.
142 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa)
144 RSA *rtmp;
156 RSA *PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **rsa, pem_password_cb *cb,
166 RSA *PEM_read_RSAPrivateKe
[all...]
/external/chromium_org/third_party/tlslite/tlslite/utils/
H A Dpycrypto_rsakey.py4 """PyCrypto RSA implementation."""
13 from Crypto.PublicKey import RSA namespace
18 self.rsa = RSA.construct( (n, e) )
20 self.rsa = RSA.construct( (n, e, d, p, q) )
42 key.rsa = RSA.generate(bits, f)
/external/openssl/crypto/pem/
H A Dpem_all.c11 * apply to all code found in this distribution, be it the RC4, RSA,
130 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa);
154 /* We treat RSA or DSA private keys as a special case.
162 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa)
164 RSA *rtmp;
176 RSA *PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **rsa, pem_password_cb *cb,
186 RSA *PEM_read_RSAPrivateKe
[all...]
/external/chromium_org/net/ssl/
H A Dopenssl_platform_key_mac.cc93 // RSA and ECDSA objects that are created to wrap Mac system keys.
102 // ExDataDup is called when one of the RSA or EC_KEY objects is
114 // ExDataFree is called when one of the RSA or EC_KEY objects is freed.
124 // BoringSSLEngine is a BoringSSL ENGINE that implements RSA and ECDSA
177 OPENSSL_PUT_ERROR(RSA, sign_raw, ERR_R_INTERNAL_ERROR);
199 // Set RSA blinding.
231 const KeyExData* RsaGetExData(const RSA* rsa) {
236 size_t RsaMethodSize(const RSA *rsa) {
241 int RsaMethodEncrypt(RSA* rsa,
249 OPENSSL_PUT_ERROR(RSA, encryp
[all...]
/external/openssl/crypto/asn1/
H A Dn_pkey.c11 * apply to all code found in this distribution, be it the RC4, RSA,
109 static RSA *d2i_RSA_NET_2(RSA **a, ASN1_OCTET_STRING *os,
114 int i2d_Netscape_RSA(const RSA *a, unsigned char **pp,
121 int i2d_RSA_NET(const RSA *a, unsigned char **pp,
238 RSA *d2i_Netscape_RSA(RSA **a, const unsigned char **pp, long length,
245 RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length,
249 RSA *re
[all...]
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLSignature.java33 RSA, DSA, EC, enum constant in enum:OpenSSLSignature.EngineType
66 * @param algorithm OpenSSL name of the algorithm, e.g. "RSA-SHA1".
111 case RSA:
114 + " (not RSA)");
181 throw new SignatureException("Need DSA or RSA or EC private key");
209 throw new SignatureException("Need DSA or RSA public key");
228 private static final long EVP_MD = NativeCrypto.EVP_get_digestbyname("RSA-MD5");
230 super(EVP_MD, EngineType.RSA);
234 private static final long EVP_MD = NativeCrypto.EVP_get_digestbyname("RSA-SHA1");
236 super(EVP_MD, EngineType.RSA);
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/x509/
H A Dx_all.c10 * apply to all code found in this distribution, be it the RC4, RSA,
238 RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa)
243 int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa)
248 RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa)
253 RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa)
260 int i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa)
265 int i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rs
[all...]

Completed in 2150 milliseconds

12345