Home
last modified time | relevance | path

Searched refs:rsa_key (Results 1 – 23 of 23) 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.c1792 iph1->rsa = ((struct rsa_key *)
/external/vboot_reference/futility/
Dcmd_create.c81 RSA *rsa_key = 0; in vb1_make_keypair() local
95 rsa_key = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL); in vb1_make_keypair()
98 if (!rsa_key) { in vb1_make_keypair()
103 sig_alg = vb2_rsa_sig_alg(rsa_key); in vb1_make_keypair()
118 privkey->rsa_private_key = rsa_key; in vb1_make_keypair()
130 ret = vb_keyb_from_rsa(rsa_key, &keyb_data, &keyb_size); in vb1_make_keypair()
155 RSA_free(rsa_key); in vb1_make_keypair()
163 RSA *rsa_key = 0; in vb2_make_keypair() local
178 rsa_key = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL); in vb2_make_keypair()
181 if (!rsa_key) { in vb2_make_keypair()
[all …]
/external/tpm2-tss/test/integration/
Dfapi-ext-public-key.int.c50 RSA *rsa_key = NULL; in test_fapi_ext_public_key() local
187 rsa_key = EVP_PKEY_get1_RSA(evp_key); in test_fapi_ext_public_key()
190 if (!bufio || !evp_key || !rsa_key) { in test_fapi_ext_public_key()
202 if (!RSA_sign(NID_sha1, digest, 20, signature, &signatureLength, rsa_key)) { in test_fapi_ext_public_key()
243 if (rsa_key) { in test_fapi_ext_public_key()
244 RSA_free(rsa_key); in test_fapi_ext_public_key()
258 if (rsa_key) { in test_fapi_ext_public_key()
259 RSA_free(rsa_key); in test_fapi_ext_public_key()
/external/vboot_reference/host/lib/
Dhost_key.c26 RSA* rsa_key; in PrivateKeyReadPem() local
40 rsa_key = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL); in PrivateKeyReadPem()
42 if (!rsa_key) { in PrivateKeyReadPem()
51 RSA_free(rsa_key); in PrivateKeyReadPem()
54 key->rsa_private_key = rsa_key; in PrivateKeyReadPem()
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/
Dtest_fips.c178 RSA *rsa_key = RSA_new(); in main() local
180 if (!RSA_generate_key_fips(rsa_key, 2048, NULL)) { in main()
190 &sig_len, rsa_key)) { in main()
201 output, sig_len, rsa_key)) { in main()
206 RSA_free(rsa_key); in main()
/external/boringssl/src/util/fipstools/cavp/
Dtest_fips.c178 RSA *rsa_key = RSA_new(); in main() local
180 if (!RSA_generate_key_fips(rsa_key, 2048, NULL)) { in main()
190 &sig_len, rsa_key)) { in main()
201 output, sig_len, rsa_key)) { in main()
206 RSA_free(rsa_key); in main()
/external/libchrome/crypto/
Drsa_private_key.cc26 bssl::UniquePtr<RSA> rsa_key(RSA_new()); in Create() local
28 if (!rsa_key.get() || !bn.get() || !BN_set_word(bn.get(), 65537L)) in Create()
31 if (!RSA_generate_key_ex(rsa_key.get(), num_bits, bn.get(), nullptr)) in Create()
36 if (!result->key_ || !EVP_PKEY_set1_RSA(result->key_.get(), rsa_key.get())) in Create()
/external/openscreen/util/crypto/
Drsa_private_key.cc28 bssl::UniquePtr<RSA> rsa_key(RSA_new()); in Create() local
30 if (!rsa_key.get() || !exponent.get() || in Create()
32 !RSA_generate_key_ex(rsa_key.get(), num_bits, exponent.get(), nullptr)) { in Create()
38 if (!result.key_ || !EVP_PKEY_set1_RSA(result.key_.get(), rsa_key.get())) { in Create()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c466 RSA *rsa_key = NULL; in boringssl_fips_self_test() local
580 rsa_key = self_test_rsa_key(); in boringssl_fips_self_test()
581 if (rsa_key == NULL) { in boringssl_fips_self_test()
591 rsa_key->flags |= RSA_FLAG_NO_BLINDING; in boringssl_fips_self_test()
594 &sig_len, rsa_key) || in boringssl_fips_self_test()
603 kRSASignature, sizeof(kRSASignature), rsa_key)) { in boringssl_fips_self_test()
701 RSA_free(rsa_key); in boringssl_fips_self_test()
/external/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c614 RSA *rsa_key = NULL; in boringssl_fips_self_test() local
728 rsa_key = self_test_rsa_key(); in boringssl_fips_self_test()
729 if (rsa_key == NULL) { in boringssl_fips_self_test()
739 rsa_key->flags |= RSA_FLAG_NO_BLINDING; in boringssl_fips_self_test()
742 &sig_len, rsa_key) || in boringssl_fips_self_test()
751 kRSASignature, sizeof(kRSASignature), rsa_key)) { in boringssl_fips_self_test()
889 RSA_free(rsa_key); in boringssl_fips_self_test()
/external/tpm2-tss/src/tss2-esys/
Desys_crypto_bssl.c548 RSA * rsa_key = NULL; in iesys_cryptbssl_pk_encrypt() local
591 if (!(rsa_key = RSA_new())) { in iesys_cryptbssl_pk_encrypt()
596 if (1 != RSA_generate_key_ex(rsa_key, in iesys_cryptbssl_pk_encrypt()
610 rsa_key->n)) { in iesys_cryptbssl_pk_encrypt()
623 if (1 != RSA_set0_key(rsa_key, n, NULL, NULL)) { in iesys_cryptbssl_pk_encrypt()
629 if (1 != EVP_PKEY_set1_RSA(evp_rsa_key, rsa_key)) { in iesys_cryptbssl_pk_encrypt()
688 OSSL_FREE(rsa_key, RSA); in iesys_cryptbssl_pk_encrypt()
Desys_crypto_ossl.c559 RSA * rsa_key = NULL; in iesys_cryptossl_pk_encrypt() local
602 if (!(rsa_key = RSA_new())) { in iesys_cryptossl_pk_encrypt()
607 if (1 != RSA_generate_key_ex(rsa_key, in iesys_cryptossl_pk_encrypt()
621 rsa_key->n)) { in iesys_cryptossl_pk_encrypt()
634 if (1 != RSA_set0_key(rsa_key, n, NULL, NULL)) { in iesys_cryptossl_pk_encrypt()
640 if (1 != EVP_PKEY_set1_RSA(evp_rsa_key, rsa_key)) { in iesys_cryptossl_pk_encrypt()
699 OSSL_FREE(rsa_key, RSA); in iesys_cryptossl_pk_encrypt()
/external/openscreen/cast/receiver/channel/
Dstatic_credentials.cc89 RSA* rsa_key = EVP_PKEY_get0_RSA(tls_key.get()); in GenerateCredentials() local
92 OSP_CHECK(RSA_private_key_to_bytes(&pkey_bytes, &pkey_len, rsa_key)); in GenerateCredentials()
100 OSP_CHECK(RSA_public_key_to_bytes(&pkey_bytes, &pkey_len, rsa_key)); in GenerateCredentials()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_libtomcrypt.c412 rsa_key rsa;
416 rsa_key rsa;
553 static int crypto_rsa_encrypt_pkcs1(int block_type, rsa_key *key, int key_type, in crypto_rsa_encrypt_pkcs1()
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Djson_token_test.cc283 static void check_jwt_signature(const char* b64_signature, RSA* rsa_key, in check_jwt_signature() argument
297 EVP_PKEY_set1_RSA(key, rsa_key); in check_jwt_signature()
/external/grpc-grpc/test/core/security/
Djson_token_test.cc327 static void check_jwt_signature(const char* b64_signature, RSA* rsa_key, in check_jwt_signature() argument
341 EVP_PKEY_set1_RSA(key, rsa_key); in check_jwt_signature()
/external/avb/
Davbtool.py3210 rsa_key = RSAPublicKey(key_path)
3212 binary_signature = rsa_key.sign(algorithm_name, data_to_sign,
3842 rsa_key = RSAPublicKey(authority_key_path)
3844 signature = rsa_key.sign(algorithm_name, signed_data, signing_helper,
3949 rsa_key = RSAPublicKey(unlock_key_path)
3951 signature = rsa_key.sign(algorithm_name, challenge, signing_helper,
Davbtool3210 rsa_key = RSAPublicKey(key_path)
3212 binary_signature = rsa_key.sign(algorithm_name, data_to_sign,
3842 rsa_key = RSAPublicKey(authority_key_path)
3844 signature = rsa_key.sign(algorithm_name, signed_data, signing_helper,
3949 rsa_key = RSAPublicKey(unlock_key_path)
3951 signature = rsa_key.sign(algorithm_name, challenge, signing_helper,
Daftltool1011 rsa_key = avbtool.RSAPublicKey(manufacturer_key_path)
1012 raw_signature = rsa_key.sign(algorithm_name, encoded_leaf.getvalue(),
Daftltool.py1011 rsa_key = avbtool.RSAPublicKey(manufacturer_key_path)
1012 raw_signature = rsa_key.sign(algorithm_name, encoded_leaf.getvalue(),
/external/scapy/test/
Dsslv2.uts89 rsa_key = PrivKeyRSA(basedir + '/test/tls/pki/srv_key.pem')
90 t.tls_session.server_rsa_key = rsa_key
208 t.tls_session.server_rsa_key = rsa_key