Home
last modified time | relevance | path

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

/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
Doakley.c1788 iph1->rsa = ((struct rsa_key *)
/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_org/chrome/browser/devtools/device/usb/
Dandroid_usb_device.cc79 crypto::RSAPrivateKey* rsa_key, in ClaimInterface() argument
112 return new AndroidUsbDevice(rsa_key, usb_handle, base::UTF16ToASCII(serial), in ClaimInterface()
203 crypto::RSAPrivateKey* rsa_key, in OpenAndroidDeviceOnFileThread() argument
214 ClaimInterface(rsa_key, usb_handle, config->GetInterface(interface_id), in OpenAndroidDeviceOnFileThread()
247 crypto::RSAPrivateKey* rsa_key, in EnumerateOnFileThread() argument
281 devices, rsa_key, barrier, *it, j)); in EnumerateOnFileThread()
283 OpenAndroidDeviceOnFileThread(devices, rsa_key, barrier, *it, j, true); in EnumerateOnFileThread()
305 void AndroidUsbDevice::Enumerate(crypto::RSAPrivateKey* rsa_key, in Enumerate() argument
320 base::Bind(&EnumerateOnFileThread, rsa_key, callback, in Enumerate()
324 AndroidUsbDevice::AndroidUsbDevice(crypto::RSAPrivateKey* rsa_key, in AndroidUsbDevice() argument
[all …]
Dandroid_usb_device.h70 static void Enumerate(crypto::RSAPrivateKey* rsa_key,
75 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/chromium_org/chrome/browser/chromeos/platform_keys/
Dplatform_keys_nss.cc293 scoped_ptr<crypto::RSAPrivateKey> rsa_key( in GenerateRSAKeyOnWorkerThread() local
296 if (!rsa_key) { in GenerateRSAKeyOnWorkerThread()
303 if (!rsa_key->ExportPublicKey(&public_key_spki_der)) { in GenerateRSAKeyOnWorkerThread()
335 scoped_ptr<crypto::RSAPrivateKey> rsa_key( in RSASignOnWorkerThread() local
337 if (!rsa_key || rsa_key->key()->pkcs11Slot != state->slot_) { in RSASignOnWorkerThread()
362 rsa_key->key(), in RSASignOnWorkerThread()
/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 …]
/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/wpa_supplicant_8/src/crypto/
Dcrypto_libtomcrypt.c408 rsa_key rsa;
412 rsa_key rsa;
549 static int crypto_rsa_encrypt_pkcs1(int block_type, rsa_key *key, int key_type, in crypto_rsa_encrypt_pkcs1()