Home
last modified time | relevance | path

Searched refs:rsa_key (Results 1 – 25 of 32) sorted by relevance

12

/external/ipsec-tools/src/racoon/
Drsalist.c71 struct rsa_key *rsa_key; in rsa_key_insert() local
73 rsa_key = calloc(sizeof(struct rsa_key), 1); in rsa_key_insert()
74 rsa_key->rsa = rsa; in rsa_key_insert()
77 rsa_key->src = src; in rsa_key_insert()
79 rsa_key->src = calloc(sizeof(*rsa_key->src), 1); in rsa_key_insert()
82 rsa_key->dst = dst; in rsa_key_insert()
84 rsa_key->dst = calloc(sizeof(*rsa_key->dst), 1); in rsa_key_insert()
86 genlist_append(list, rsa_key); in rsa_key_insert()
94 struct rsa_key *key = entry; in rsa_key_dump_one()
138 struct rsa_key *key = entry; in rsa_lookup_key_one()
[all …]
Drsalist.h49 struct rsa_key { struct
/external/dropbear/
Drsa.h45 typedef struct RSA_key rsa_key; typedef
47 void buf_put_rsa_sign(buffer* buf, rsa_key *key, const unsigned char* data,
50 int buf_rsa_verify(buffer * buf, rsa_key *key, const unsigned char* data,
53 int buf_get_rsa_pub_key(buffer* buf, rsa_key *key);
54 int buf_get_rsa_priv_key(buffer* buf, rsa_key *key);
55 void buf_put_rsa_pub_key(buffer* buf, rsa_key *key);
56 void buf_put_rsa_priv_key(buffer* buf, rsa_key *key);
57 void rsa_key_free(rsa_key *key);
Drsa.c41 static void rsa_pad_em(rsa_key * key,
49 int buf_get_rsa_pub_key(buffer* buf, rsa_key *key) { in buf_get_rsa_pub_key()
87 int buf_get_rsa_priv_key(buffer* buf, rsa_key *key) { in buf_get_rsa_priv_key()
140 void rsa_key_free(rsa_key *key) { in rsa_key_free()
178 void buf_put_rsa_pub_key(buffer* buf, rsa_key *key) { in buf_put_rsa_pub_key()
192 void buf_put_rsa_priv_key(buffer* buf, rsa_key *key) { in buf_put_rsa_priv_key()
216 int buf_rsa_verify(buffer * buf, rsa_key *key, const unsigned char* data, in buf_rsa_verify()
273 void buf_put_rsa_sign(buffer* buf, rsa_key *key, const unsigned char* data, in buf_put_rsa_sign()
379 static void rsa_pad_em(rsa_key * key, in rsa_pad_em()
Dgenrsa.c40 rsa_key * gen_rsa_priv_key(unsigned int size) { in gen_rsa_priv_key()
42 rsa_key * key; in gen_rsa_priv_key()
47 key = (rsa_key*)m_malloc(sizeof(rsa_key)); in gen_rsa_priv_key()
Dsignkey.c125 key->rsakey = (rsa_key*)m_malloc(sizeof(rsa_key)); in buf_get_pub_key()
178 key->rsakey = (rsa_key*)m_malloc(sizeof(rsa_key)); in buf_get_priv_key()
Dgenrsa.h32 rsa_key * gen_rsa_priv_key(unsigned int size);
Dsignkey.h38 rsa_key * rsakey;
/external/chromium_org/crypto/
Dsignature_creator_openssl.cc33 RSA* rsa_key = EVP_PKEY_get1_RSA(key->key()); in Sign() local
34 if (!rsa_key) in Sign()
36 signature->resize(RSA_size(rsa_key)); in Sign()
40 &len, rsa_key); in Sign()
Drsa_private_key_openssl.cc53 ScopedOpenSSL<RSA, RSA_free> rsa_key(RSA_new()); in Create() local
55 if (!rsa_key.get() || !bn.get() || !BN_set_word(bn.get(), 65537L)) in Create()
58 if (!RSA_generate_key_ex(rsa_key.get(), num_bits, bn.get(), NULL)) in Create()
63 if (!result->key_ || !EVP_PKEY_set1_RSA(result->key_, rsa_key.get())) in Create()
/external/chromium/crypto/
Drsa_private_key_openssl.cc54 ScopedOpenSSL<RSA, RSA_free> rsa_key(RSA_new()); in Create() local
56 if (!rsa_key.get() || !bn.get() || !BN_set_word(bn.get(), 65537L)) in Create()
59 if (!RSA_generate_key_ex(rsa_key.get(), num_bits, bn.get(), NULL)) in Create()
64 if (!result->key_ || !EVP_PKEY_set1_RSA(result->key_, rsa_key.get())) in Create()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_pk.h37 } rsa_key; typedef
39 int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key);
43 rsa_key *key);
45 void rsa_free(rsa_key *key);
64 prng_state *prng, int prng_idx, int hash_idx, int padding, rsa_key *key);
70 int *stat, rsa_key *key);
77 rsa_key *key);
83 int *stat, rsa_key *key);
86 int rsa_export(unsigned char *out, unsigned long *outlen, int type, rsa_key *key);
87 int rsa_import(const unsigned char *in, unsigned long inlen, rsa_key *key);
Dtomcrypt_math.h17 typedef void rsa_key;
404 int (*rsa_keygen)(prng_state *prng, int wprng, int size, long e, rsa_key *key);
418 rsa_key *key);
/external/chromium_org/chrome/browser/devtools/adb/
Dandroid_usb_device.cc68 crypto::RSAPrivateKey* rsa_key, in ClaimInterface() argument
101 return new AndroidUsbDevice(rsa_key, usb_handle, UTF16ToASCII(serial), in ClaimInterface()
184 crypto::RSAPrivateKey* rsa_key, in OpenAndroidDevicesOnFileThread() argument
195 ClaimInterface(rsa_key, usb_handle, config->GetInterface(interface_id), in OpenAndroidDevicesOnFileThread()
228 static void EnumerateOnFileThread(crypto::RSAPrivateKey* rsa_key, in EnumerateOnFileThread() argument
284 rsa_key, barrier, *it, j)); in EnumerateOnFileThread()
286 OpenAndroidDevicesOnFileThread(rsa_key, barrier, *it, j, true); in EnumerateOnFileThread()
306 void AndroidUsbDevice::Enumerate(crypto::RSAPrivateKey* rsa_key, in Enumerate() argument
310 base::Bind(&EnumerateOnFileThread, rsa_key, in Enumerate()
314 AndroidUsbDevice::AndroidUsbDevice(crypto::RSAPrivateKey* rsa_key, in AndroidUsbDevice() argument
[all …]
Dandroid_usb_device.h69 static void Enumerate(crypto::RSAPrivateKey* rsa_key,
74 AndroidUsbDevice(crypto::RSAPrivateKey* rsa_key,
/external/chromium_org/net/android/
Dkeystore_unittest.cc567 ScopedJava rsa_key = GetRSATestKeyJava(); in TEST() local
568 ASSERT_FALSE(rsa_key.is_null()); in TEST()
570 GetPrivateKeyType(rsa_key.obj())); in TEST()
574 ScopedJava rsa_key = GetRSATestKeyJava(); in TEST() local
575 ASSERT_FALSE(rsa_key.is_null()); in TEST()
589 DoKeySigning(rsa_key.obj(), openssl_key.get(), message, &signature); in TEST()
598 ScopedJava rsa_key = GetRSATestKeyJava(); in TEST() local
599 ASSERT_FALSE(rsa_key.is_null()); in TEST()
601 ScopedEVP_PKEY wrapper_key(GetOpenSSLPrivateKeyWrapper(rsa_key.obj())); in TEST()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_free.c24 void rsa_free(rsa_key *key) in rsa_free()
Drsa_export.c28 int rsa_export(unsigned char *out, unsigned long *outlen, int type, rsa_key *key) in rsa_export()
Drsa_decrypt_key.c38 int *stat, rsa_key *key) in rsa_decrypt_key_ex()
Drsa_encrypt_key.c38 prng_state *prng, int prng_idx, int hash_idx, int padding, rsa_key *key) in rsa_encrypt_key_ex()
Drsa_sign_hash.c39 rsa_key *key) in rsa_sign_hash_ex()
Drsa_exptmod.c32 rsa_key *key) in rsa_exptmod()
Drsa_verify_hash.c37 int *stat, rsa_key *key) in rsa_verify_hash_ex()
/external/openssl/apps/
Dspeed.c529 RSA *rsa_key[RSA_NUM]; in MAIN() local
662 memset(rsa_key,0,sizeof(rsa_key)); in MAIN()
664 rsa_key[i]=NULL; in MAIN()
1193 rsa_key[i]=d2i_RSAPrivateKey(NULL,&p,rsa_data_length[i]); in MAIN()
1194 if (rsa_key[i] == NULL) in MAIN()
1204 BN_num_bits(rsa_key[i]->n)); in MAIN()
1205 BN_print(bio_err,rsa_key[i]->e); in MAIN()
2011 ret=RSA_sign(NID_md5_sha1, buf,36, buf2, &rsa_num, rsa_key[j]); in MAIN()
2028 &rsa_num, rsa_key[j]); in MAIN()
2047 ret=RSA_verify(NID_md5_sha1, buf,36, buf2, rsa_num, rsa_key[j]); in MAIN()
[all …]
/external/chromium_org/third_party/openssl/openssl/apps/
Dspeed.c529 RSA *rsa_key[RSA_NUM]; in MAIN() local
662 memset(rsa_key,0,sizeof(rsa_key)); in MAIN()
664 rsa_key[i]=NULL; in MAIN()
1193 rsa_key[i]=d2i_RSAPrivateKey(NULL,&p,rsa_data_length[i]); in MAIN()
1194 if (rsa_key[i] == NULL) in MAIN()
1204 BN_num_bits(rsa_key[i]->n)); in MAIN()
1205 BN_print(bio_err,rsa_key[i]->e); in MAIN()
2011 ret=RSA_sign(NID_md5_sha1, buf,36, buf2, &rsa_num, rsa_key[j]); in MAIN()
2028 &rsa_num, rsa_key[j]); in MAIN()
2047 ret=RSA_verify(NID_md5_sha1, buf,36, buf2, rsa_num, rsa_key[j]); in MAIN()
[all …]

12