/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_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_pmeth.c | 1 /* crypto/rsa/rsa_pmeth.c */ 63 #include <openssl/rsa.h> 75 /* RSA pkey context structure */ 84 /* RSA padding mode */ 169 RSA *rsa = ctx->pkey->pkey.rsa; local 173 if (rsa->flags & RSA_FLAG_NON_FIPS_ALLOW) 175 if (!(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) && rv) 190 RSA *rsa = ctx->pkey->pkey.rsa local 344 RSA *rsa = ctx->pkey->pkey.rsa; local 658 RSA *rsa = NULL; local [all...] |
/external/openssl/crypto/rsa/ |
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_pmeth.c | 1 /* crypto/rsa/rsa_pmeth.c */ 63 #include <openssl/rsa.h> 75 /* RSA pkey context structure */ 84 /* RSA padding mode */ 169 RSA *rsa = ctx->pkey->pkey.rsa; local 173 if (rsa->flags & RSA_FLAG_NON_FIPS_ALLOW) 175 if (!(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) && rv) 190 RSA *rsa = ctx->pkey->pkey.rsa local 344 RSA *rsa = ctx->pkey->pkey.rsa; local 660 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);
|
prsa_par.h | 96 RSA *rsa; member in union:YYSTYPE
|
/bootable/recovery/ |
verifier.h | 21 #include "mincrypt/rsa.h" 30 RSA, 36 RSAPublicKey* rsa; member in struct:__anon1130
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
KeyFactorySpi.java | 1 package org.bouncycastle.jcajce.provider.asymmetric.rsa;
|
RSAUtil.java | 1 package org.bouncycastle.jcajce.provider.asymmetric.rsa; 14 * utility class for converting java.security RSA objects into their
|
KeyPairGeneratorSpi.java | 1 package org.bouncycastle.jcajce.provider.asymmetric.rsa; 33 super("RSA");
|
AlgorithmParametersSpi.java | 1 package org.bouncycastle.jcajce.provider.asymmetric.rsa;
|
BCRSAPrivateCrtKey.java | 1 package org.bouncycastle.jcajce.provider.asymmetric.rsa; 17 * A provider representation for a RSA private key, with CRT factors included. 87 * construct an RSA key from a private key info object. 97 * construct an RSA key from a ASN.1 RSA private key object. 229 buf.append("RSA Private CRT Key").append(nl);
|
BCRSAPrivateKey.java | 1 package org.bouncycastle.jcajce.provider.asymmetric.rsa; 70 return "RSA";
|
BCRSAPublicKey.java | 1 package org.bouncycastle.jcajce.provider.asymmetric.rsa; 71 throw new IllegalArgumentException("invalid info structure in RSA public key"); 97 return "RSA"; 138 buf.append("RSA Public Key").append(nl);
|
/external/chromium_org/crypto/ |
rsa_private_key_openssl.cc | 9 #include <openssl/rsa.h> 53 ScopedOpenSSL<RSA, RSA_free> rsa_key(RSA_new()); 109 RSA* rsa = EVP_PKEY_get1_RSA(key_); local 110 if (!rsa) 113 if (!EVP_PKEY_set1_RSA(copy->key_, rsa))
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
certificateutil.cc | 81 RSA* rsa = RSA_generate_key(1025, RSA_F4, NULL, NULL); local 82 EVP_PKEY_assign_RSA(pkey, rsa);
|
/external/google-tv-pairing-protocol/cpp/tests/polo/util/ |
certificateutiltest.cc | 56 std::string rsa_string = "-----BEGIN RSA PRIVATE KEY-----\n" 70 "-----END RSA PRIVATE KEY-----\n"; 73 RSA* rsa = PEM_read_bio_RSAPrivateKey(rsa_bio, NULL, NULL, NULL); local 76 EVP_PKEY_assign_RSA(pkey, rsa); 116 std::string pem = "-----BEGIN RSA PRIVATE KEY-----\n" 133 "-----END RSA PRIVATE KEY-----\n"; 139 RSA* rsa = EVP_PKEY_get1_RSA(pkey); local 140 ASSERT_TRUE(rsa); 148 RSA* rsa = RSA_generate_key(1025, RSA_F4, NULL, NULL); local [all...] |
/system/extras/verity/ |
generate_verity_key.c | 26 #include "mincrypt/rsa.h" 32 #include <openssl/rsa.h> 35 // Convert OpenSSL RSA private key to android pre-computed RSAPublicKey format. 37 static int convert_to_mincrypt_format(RSA *rsa, RSAPublicKey *pkey) 42 if (RSA_size(rsa) != RSANUMBYTES) 54 BN_copy(n, rsa->n); 68 pkey->exponent = BN_get_word(rsa->e); 84 static int write_public_keyfile(RSA *private_key, const char *private_key_path) 115 RSA* rsa = RSA_new() local [all...] |
/external/chromium_org/third_party/openssl/openssl/apps/ |
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...] |
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...] |
/external/openssl/apps/ |
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...] |
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...] |
/external/chromium_org/third_party/openssl/openssl/ssl/ |
s2_srvr.c | 11 * apply to all code found in this distribution, be it the RC4, RSA, 1121 RSA *rsa; local 1134 rsa=c->pkeys[SSL_PKEY_RSA_ENC].privatekey->pkey.rsa; 1137 i=RSA_private_decrypt(len,from,to,rsa,padding);
|
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...] |