/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
CipherRSATest.java | 23 CipherRSAThread rsa = new CipherRSAThread("RSA", new int[] {512}, local 28 rsa.launcher(); 30 assertEquals(rsa.getFailureMessages(), 0, rsa.getTotalFailuresNumber()); 35 CipherRSAThread rsa = new CipherRSAThread("RSA", new int[] {1024}, local 40 rsa.launcher(); 42 assertEquals(rsa.getFailureMessages(), 0, rsa.getTotalFailuresNumber()) 47 CipherRSAThread rsa = new CipherRSAThread("RSA", new int[] {2048}, local 57 CipherRSAThread rsa = new CipherRSAThread("RSA", new int[] {1024}, local [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/rsa/ |
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> 74 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); 81 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) 84 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 85 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 91 if(rsa->meth->rsa_keygen [all...] |
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_crpt.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 int RSA_size(const RSA *r) 76 RSA *rsa, int padding) 79 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 80 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 86 return(rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding)) [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_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) 81 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 82 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 88 if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign) 90 return rsa->meth->rsa_sign(type, m, m_len [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...] |
/external/openssl/crypto/rsa/ |
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> 74 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); 81 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) 84 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 85 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 91 if(rsa->meth->rsa_keygen [all...] |
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_crpt.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 int RSA_size(const RSA *r) 76 RSA *rsa, int padding) 79 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 80 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 86 return(rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding)) [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_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) 81 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 82 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 88 if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign) 90 return rsa->meth->rsa_sign(type, m, m_len [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...] |
/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);
|
/external/openssh/regress/ |
ssh2putty.sh | 14 if grep "BEGIN RSA PRIVATE KEY" $KEYFILE >/dev/null 2>&1 ; then 22 openssl rsa -noout -text -in $KEYFILE | grep ^publicExponent | 28 openssl rsa -noout -modulus -in $KEYFILE | grep ^Modulus= |
|
/external/openssh/ |
rsa.h | 1 /* $OpenBSD: rsa.h,v 1.16 2006/03/25 22:22:43 djm Exp $ */ 7 * RSA key generation, encryption and decryption. 20 #include <openssl/rsa.h> 22 void rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *); 23 int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *); 24 void rsa_generate_additional_parameters(RSA *);
|
rsa.c | 1 /* $OpenBSD: rsa.c,v 1.29 2006/11/06 21:25:28 markus Exp $ */ 37 * Description of the RSA algorithm can be found e.g. from the following 54 * The RSA Frequently Asked Questions document by RSA Data Security, 57 * RSA in 3 lines of perl by Adam Back <aba@atlax.ex.ac.uk>, 1995, as 71 #include "rsa.h" 75 rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *key) 104 rsa_private_decrypt(BIGNUM *out, BIGNUM *in, RSA *key) 132 rsa_generate_additional_parameters(RSA *rsa) [all...] |
/system/core/libmincrypt/ |
Android.mk | 7 LOCAL_SRC_FILES := rsa.c sha.c sha256.c 13 LOCAL_SRC_FILES := rsa.c sha.c sha256.c
|
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
PyCrypto_RSAKey.py | 1 """PyCrypto RSA implementation.""" 10 from Crypto.PublicKey import RSA 15 self.rsa = RSA.construct( (n, e) ) 17 self.rsa = RSA.construct( (n, e, d, p, q) ) 20 return getattr(self.rsa, name) 23 return self.rsa.has_private() 37 c = stringToNumber(self.rsa.decrypt((s,))) 49 m = stringToNumber(self.rsa.encrypt(s, None)[0] [all...] |
OpenSSL_RSAKey.py | 1 """OpenSSL/M2Crypto RSA implementation.""" 30 self.rsa = None 35 self.rsa = m2.rsa_new() 36 m2.rsa_set_n(self.rsa, numberToMPI(n)) 37 m2.rsa_set_e(self.rsa, numberToMPI(e)) 40 if self.rsa: 41 m2.rsa_free(self.rsa) 45 if not self.rsa: 47 return mpiToNumber(m2.rsa_get_e(self.rsa)) 49 if not self.rsa [all...] |
/external/chromium_org/third_party/openssl/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));
|