HomeSort by relevance Sort by last modified time
    Searched refs:rsa (Results 1 - 25 of 119) sorted by null

1 2 3 4 5

  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
CipherRSATest.java 34 CipherRSAThread rsa = new CipherRSAThread("RSA", new int[] {512}, local
39 rsa.launcher();
41 assertEquals(rsa.getFailureMessages(), 0, rsa.getTotalFailuresNumber());
46 CipherRSAThread rsa = new CipherRSAThread("RSA", new int[] {1024}, local
51 rsa.launcher();
53 assertEquals(rsa.getFailureMessages(), 0, rsa.getTotalFailuresNumber())
58 CipherRSAThread rsa = new CipherRSAThread("RSA", new int[] {2048}, local
75 CipherRSAThread rsa = new CipherRSAThread("RSA", new int[] {1024}, local
    [all...]
  /external/openssl/crypto/rsa/
rsa_null.c 62 #include <openssl/rsa.h>
65 /* 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)
    [all...]
rsa_gen.c 1 /* crypto/rsa/rsa_gen.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
69 #include <openssl/rsa.h>
71 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb);
78 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb)
80 if(rsa->meth->rsa_keygen)
81 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb)
    [all...]
rsa_depr.c 1 /* crypto/rsa/rsa_depr.c */
63 #include <openssl/rsa.h>
71 RSA *RSA_generate_key(int bits, unsigned long e_value,
76 RSA *rsa = RSA_new(); local
79 if(!rsa || !e) goto err;
92 if(RSA_generate_key_ex(rsa, bits, e, &cb)) {
94 return rsa;
98 if(rsa) RSA_free(rsa);
    [all...]
rsa_eay.c 1 /* crypto/rsa/rsa_eay.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
115 #include <openssl/rsa.h>
121 unsigned char *to, RSA *rsa,int padding);
123 unsigned char *to, RSA *rsa,int padding);
125 unsigned char *to, RSA *rsa,int padding);
127 unsigned char *to, RSA *rsa,int padding)
    [all...]
rsa_locl.h 4 RSA *rsa);
rsa_lib.c 1 /* crypto/rsa/rsa_lib.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
64 #include <openssl/rsa.h>
70 const char RSA_version[]="RSA" OPENSSL_VERSION_PTEXT;
74 RSA *RSA_new(void)
76 RSA *r=RSA_new_method(NULL);
104 const RSA_METHOD *RSA_get_method(const RSA *rsa)
106 return rsa->meth;
109 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth
    [all...]
rsa.h 1 /* crypto/rsa/rsa.h */
11 * 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)
    [all...]
rsa_saos.c 1 /* crypto/rsa/rsa_saos.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
62 #include <openssl/rsa.h>
68 unsigned char *sigret, unsigned int *siglen, RSA *rsa)
79 j=RSA_size(rsa);
93 i=RSA_private_encrypt(i,s,sigret,rsa,RSA_PKCS1_PADDING);
107 RSA *rsa)
114 if (siglen != (unsigned int)RSA_size(rsa))
    [all...]
rsa_asn1.c 62 #include <openssl/rsa.h>
74 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)
    [all...]
rsa_ameth.c 1 /* crypto/rsa/rsa_ameth.c */
63 #include <openssl/rsa.h>
74 penclen = i2d_RSAPublicKey(pkey->pkey.rsa, &penc);
89 RSA *rsa = NULL; local
92 if (!(rsa = d2i_RSAPublicKey(NULL, &p, pklen)))
97 EVP_PKEY_assign_RSA (pkey, rsa);
103 if (BN_cmp(b->pkey.rsa->n,a->pkey.rsa->n) != 0
104 || BN_cmp(b->pkey.rsa->e,a->pkey.rsa->e) != 0
112 RSA *rsa; local
    [all...]
rsa_sign.c 1 /* crypto/rsa/rsa_sign.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
62 #include <openssl/rsa.h>
71 unsigned char *sigret, unsigned int *siglen, RSA *rsa)
80 if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign)
82 return rsa->meth->rsa_sign(type, m, m_len,
83 sigret, siglen, rsa);
116 j=RSA_size(rsa);
    [all...]
rsa_pmeth.c 1 /* crypto/rsa/rsa_pmeth.c */
63 #include <openssl/rsa.h>
69 /* RSA pkey context structure */
78 /* RSA padding mode */
156 RSA *rsa = ctx->pkey->pkey.rsa; local
174 sig, rsa, RSA_X931_PADDING);
180 tbs, tbslen, sig, &sltmp, rsa);
189 if (!RSA_padding_add_PKCS1_PSS(rsa, rctx->tbuf, tbs
270 RSA *rsa = ctx->pkey->pkey.rsa; local
522 RSA *rsa = NULL; local
    [all...]
  /external/ipsec-tools/src/racoon/
rsalist.h 38 #include <openssl/rsa.h>
52 RSA *rsa; member in struct:rsa_key
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);
rsalist.c 46 #include <openssl/rsa.h>
69 struct netaddr *dst, RSA *rsa)
74 rsa_key->rsa = rsa;
100 RSA_print_fp(stdout, key->rsa, 4);
168 plog(LLV_DEBUG, LOCATION, NULL, "Looking up RSA key for %s\n",
200 RSA *
209 if (eay_check_rsasign(source, sig, key->rsa) == 0) {
211 return key->rsa;
    [all...]
  /external/openssl/include/openssl/
rsa.h 1 /* crypto/rsa/rsa.h */
11 * 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)
    [all...]
  /external/openssl/crypto/asn1/
i2d_pu.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
65 #include <openssl/rsa.h>
80 return(i2d_RSAPublicKey(a->pkey.rsa,pp));
  /external/openssl/crypto/evp/
p_dec.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
63 #include <openssl/rsa.h>
83 ret=RSA_private_decrypt(ekl,ek,key,priv->pkey.rsa,RSA_PKCS1_PADDING);
p_enc.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
63 #include <openssl/rsa.h>
82 ret=RSA_public_encrypt(key_len,key,ek,pubk->pkey.rsa,RSA_PKCS1_PADDING);
  /system/core/libmincrypt/
Android.mk 7 LOCAL_SRC_FILES := rsa.c sha.c
13 LOCAL_SRC_FILES := rsa.c sha.c
  /external/openssl/crypto/pem/
pem_all.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
120 #include <openssl/rsa.h>
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
    [all...]
pvkfmt.c 68 #include <openssl/rsa.h>
114 /* Convert private key blob to EVP_PKEY: RSA and DSA keys supported */
375 RSA *rsa = NULL; local
379 rsa = RSA_new();
381 if (!rsa || !ret)
383 rsa->e = BN_new();
384 if (!rsa->e)
386 if (!BN_set_word(rsa->e, read_ledword(&p)))
388 if (!read_lebn(&p, nbyte, &rsa->n)
    [all...]
  /external/openssl/apps/
rsa.c 1 /* apps/rsa.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
68 #include <openssl/rsa.h>
92 * -modulus - print the RSA key modulus
104 RSA *rsa=NULL; local
240 BIO_printf(bio_err," -modulus print the RSA key modulus\n");
296 rsa = EVP_PKEY_get1_RSA(pkey);
300 if (rsa == NULL)
326 if (!RSA_print(out,rsa,0)
    [all...]
genrsa.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
75 #include <openssl/rsa.h>
108 RSA *rsa = NULL; local
266 BIO_printf(bio_err,"Generating RSA private key, %d bit long modulus\n",
269 rsa = RSA_new();
271 rsa = RSA_new_method(e);
273 if (!rsa)
276 if(!BN_set_word(bn, f4) || !RSA_generate_key_ex(rsa, num, bn, &cb))
284 for (i=0; i<rsa->e->top; i++
    [all...]
  /external/openssl/ssl/
ssl_rsa.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
152 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa)
157 if (rsa == NULL)
173 RSA_up_ref(rsa);
174 EVP_PKEY_assign_RSA(pkey,rsa);
205 (RSA_flags(pkey->pkey.rsa) & RSA_METHOD_FLAG_NO_CHECK))
233 RSA *rsa=NULL; local
250 rsa=d2i_RSAPrivateKey_bio(in,NULL)
280 RSA *rsa; local
555 RSA *rsa=NULL; local
602 RSA *rsa; local
    [all...]

Completed in 430 milliseconds

1 2 3 4 5