/external/webrtc/rtc_base/ |
D | openssl_identity.cc | 37 std::unique_ptr<OpenSSLKeyPair> key_pair, in OpenSSLIdentity() argument 39 : key_pair_(std::move(key_pair)) { in OpenSSLIdentity() 47 OpenSSLIdentity::OpenSSLIdentity(std::unique_ptr<OpenSSLKeyPair> key_pair, in OpenSSLIdentity() argument 49 : key_pair_(std::move(key_pair)), cert_chain_(std::move(cert_chain)) { in OpenSSLIdentity() 58 auto key_pair = OpenSSLKeyPair::Generate(params.key_params); in CreateInternal() local 59 if (key_pair) { in CreateInternal() 61 OpenSSLCertificate::Generate(key_pair.get(), params)); in CreateInternal() 64 new OpenSSLIdentity(std::move(key_pair), std::move(certificate))); in CreateInternal() 102 auto key_pair = OpenSSLKeyPair::FromPrivateKeyPEMString(private_key); in CreateFromPEMStrings() local 103 if (!key_pair) { in CreateFromPEMStrings() [all …]
|
D | boringssl_identity.cc | 35 std::unique_ptr<OpenSSLKeyPair> key_pair, in BoringSSLIdentity() argument 37 : key_pair_(std::move(key_pair)) { in BoringSSLIdentity() 45 BoringSSLIdentity::BoringSSLIdentity(std::unique_ptr<OpenSSLKeyPair> key_pair, in BoringSSLIdentity() argument 47 : key_pair_(std::move(key_pair)), cert_chain_(std::move(cert_chain)) { in BoringSSLIdentity() 56 auto key_pair = OpenSSLKeyPair::Generate(params.key_params); in CreateInternal() local 57 if (key_pair) { in CreateInternal() 59 BoringSSLCertificate::Generate(key_pair.get(), params)); in CreateInternal() 62 new BoringSSLIdentity(std::move(key_pair), std::move(certificate))); in CreateInternal() 101 auto key_pair = OpenSSLKeyPair::FromPrivateKeyPEMString(private_key); in CreateFromPEMStrings() local 102 if (!key_pair) { in CreateFromPEMStrings() [all …]
|
D | openssl_identity.h | 60 OpenSSLIdentity(std::unique_ptr<OpenSSLKeyPair> key_pair, 62 OpenSSLIdentity(std::unique_ptr<OpenSSLKeyPair> key_pair,
|
D | boringssl_identity.h | 62 BoringSSLIdentity(std::unique_ptr<OpenSSLKeyPair> key_pair, 64 BoringSSLIdentity(std::unique_ptr<OpenSSLKeyPair> key_pair,
|
D | openssl_certificate.cc | 126 OpenSSLKeyPair* key_pair, in Generate() argument 133 X509* x509 = MakeCertificate(key_pair->pkey(), actual_params); in Generate()
|
D | openssl_certificate.h | 37 OpenSSLKeyPair* key_pair,
|
D | boringssl_certificate.h | 39 OpenSSLKeyPair* key_pair,
|
D | boringssl_certificate.cc | 259 OpenSSLKeyPair* key_pair, in Generate() argument 267 MakeCertificate(key_pair->pkey(), actual_params); in Generate()
|
/external/rust/crates/ring/tests/ |
D | rsa_tests.rs | 76 let key_pair = signature::RsaKeyPair::from_der(&private_key); in test_signature_rsa_pkcs1_sign() localVariable 78 assert!(key_pair.is_err()); in test_signature_rsa_pkcs1_sign() 81 let key_pair = key_pair.unwrap(); in test_signature_rsa_pkcs1_sign() localVariable 85 let mut actual = vec![0u8; key_pair.public().n().len()]; in test_signature_rsa_pkcs1_sign() 86 key_pair in test_signature_rsa_pkcs1_sign() 113 let key_pair = signature::RsaKeyPair::from_der(&private_key); in test_signature_rsa_pss_sign() localVariable 114 if key_pair.is_err() && result == "Fail-Invalid-Key" { in test_signature_rsa_pss_sign() 117 let key_pair = key_pair.unwrap(); in test_signature_rsa_pss_sign() localVariable 124 let mut actual = vec![0u8; key_pair.public().n().len()]; in test_signature_rsa_pss_sign() 125 key_pair.sign(alg, &rng, &msg, actual.as_mut_slice())?; in test_signature_rsa_pss_sign() [all …]
|
D | ed25519_tests.rs | 43 let key_pair = Ed25519KeyPair::from_seed_and_public_key(&seed, &public_key).unwrap(); in test_signature_ed25519() localVariable 44 let actual_sig = key_pair.sign(&msg); in test_signature_ed25519() 51 let key_pair = Ed25519KeyPair::from_pkcs8(pkcs8.as_ref()).unwrap(); in test_signature_ed25519() localVariable 52 assert_eq!(public_key, key_pair.public_key().as_ref()); in test_signature_ed25519() 55 let actual_sig = key_pair.sign(&msg); in test_signature_ed25519() 172 let key_pair = signature::Ed25519KeyPair::from_pkcs8(PRIVATE_KEY).unwrap(); in ed25519_test_public_key_coverage() localVariable 175 assert_eq!(key_pair.public_key().as_ref(), PUBLIC_KEY); in ed25519_test_public_key_coverage() 179 let _: <Ed25519KeyPair as KeyPair>::PublicKey = key_pair.public_key().clone(); in ed25519_test_public_key_coverage() 182 let _: <Ed25519KeyPair as KeyPair>::PublicKey = *key_pair.public_key(); in ed25519_test_public_key_coverage() 185 assert_eq!(PUBLIC_KEY_DEBUG, format!("{:?}", key_pair.public_key())); in ed25519_test_public_key_coverage() [all …]
|
D | ecdsa_tests.rs | 184 let key_pair = signature::EcdsaKeyPair::from_pkcs8( in ecdsa_test_public_key_coverage() localVariable 191 assert_eq!(key_pair.public_key().as_ref(), PUBLIC_KEY); in ecdsa_test_public_key_coverage() 195 let _: <signature::EcdsaKeyPair as KeyPair>::PublicKey = key_pair.public_key().clone(); in ecdsa_test_public_key_coverage() 198 let _: <signature::EcdsaKeyPair as KeyPair>::PublicKey = *key_pair.public_key(); in ecdsa_test_public_key_coverage() 201 assert_eq!(PUBLIC_KEY_DEBUG, format!("{:?}", key_pair.public_key())); in ecdsa_test_public_key_coverage() 203 format!("EcdsaKeyPair {{ public_key: {:?} }}", key_pair.public_key()), in ecdsa_test_public_key_coverage() 204 format!("{:?}", key_pair) in ecdsa_test_public_key_coverage()
|
/external/rust/crates/openssl/examples/ |
D | mk_certs.rs | 19 let key_pair = PKey::from_rsa(rsa)?; in mk_ca_cert() localVariable 38 cert_builder.set_pubkey(&key_pair)?; in mk_ca_cert() 57 cert_builder.sign(&key_pair, MessageDigest::sha256())?; in mk_ca_cert() 60 Ok((cert, key_pair)) in mk_ca_cert() 64 fn mk_request(key_pair: &PKey<Private>) -> Result<X509Req, ErrorStack> { in mk_request() 66 req_builder.set_pubkey(key_pair)?; in mk_request() 76 req_builder.sign(key_pair, MessageDigest::sha256())?; in mk_request() 87 let key_pair = PKey::from_rsa(rsa)?; in mk_ca_signed_cert() localVariable 89 let req = mk_request(&key_pair)?; in mk_ca_signed_cert() 101 cert_builder.set_pubkey(&key_pair)?; in mk_ca_signed_cert() [all …]
|
/external/cronet/net/third_party/quiche/src/quiche/blind_sign_auth/anonymous_tokens/cpp/testing/ |
D | utils.cc | 356 ANON_TOKENS_ASSIGN_OR_RETURN(auto key_pair, ParseRsaKeysFromFile(path)); in GetStrongRsaKeys2048() 357 return std::make_pair(std::move(key_pair.first), std::move(key_pair.second)); in GetStrongRsaKeys2048() 364 ANON_TOKENS_ASSIGN_OR_RETURN(auto key_pair, ParseRsaKeysFromFile(path)); in GetAnotherStrongRsaKeys2048() 365 return std::make_pair(std::move(key_pair.first), std::move(key_pair.second)); in GetAnotherStrongRsaKeys2048() 371 ANON_TOKENS_ASSIGN_OR_RETURN(auto key_pair, ParseRsaKeysFromFile(path)); in GetStrongRsaKeys3072() 372 return std::make_pair(std::move(key_pair.first), std::move(key_pair.second)); in GetStrongRsaKeys3072() 378 ANON_TOKENS_ASSIGN_OR_RETURN(auto key_pair, ParseRsaKeysFromFile(path)); in GetStrongRsaKeys4096() 379 return std::make_pair(std::move(key_pair.first), std::move(key_pair.second)); in GetStrongRsaKeys4096()
|
/external/rust/crates/ring/src/rsa/keypair/ |
D | signing.rs | 298 let key_pair = signature::RsaKeyPair::from_der(PRIVATE_KEY_DER).unwrap(); in test_signature_rsa_pkcs1_sign_output_buffer_len() localVariable 301 let mut signature = vec![0; key_pair.public().n().len() - 1]; in test_signature_rsa_pkcs1_sign_output_buffer_len() 303 assert!(key_pair in test_signature_rsa_pkcs1_sign_output_buffer_len() 309 assert!(key_pair in test_signature_rsa_pkcs1_sign_output_buffer_len() 315 assert!(key_pair in test_signature_rsa_pkcs1_sign_output_buffer_len()
|
/external/openscreen/util/crypto/ |
D | certificate_utils.cc | 52 EVP_PKEY key_pair, in CreateCertificateInternal() argument 63 issuer_key = &key_pair; in CreateCertificateInternal() 125 (X509_set_pubkey(certificate.get(), &key_pair) != 1) || in CreateCertificateInternal() 161 const EVP_PKEY& key_pair, in CreateSelfSignedX509Certificate() argument 167 CreateCertificateInternal(name, duration, key_pair, time_since_unix_epoch, in CreateSelfSignedX509Certificate()
|
D | rsa_private_key_unittest.cc | 359 RSAPrivateKey key_pair = std::move(key_pair_or_error.value()); in TEST() local 361 ErrorOr<RSAPrivateKey> key_copy(RSAPrivateKey::CreateFromKey(key_pair.key())); in TEST() 364 ErrorOr<std::vector<uint8_t>> privkey = key_pair.ExportPrivateKey(); in TEST() 365 ErrorOr<std::vector<uint8_t>> pubkey = key_pair.ExportPublicKey(); in TEST()
|
D | certificate_utils.h | 34 const EVP_PKEY& key_pair,
|
/external/libchrome/crypto/ |
D | rsa_private_key_unittest.cc | 355 std::unique_ptr<crypto::RSAPrivateKey> key_pair( in TEST() local 357 ASSERT_TRUE(key_pair.get()); in TEST() 360 crypto::RSAPrivateKey::CreateFromKey(key_pair->key())); in TEST() 365 ASSERT_TRUE(key_pair->ExportPrivateKey(&privkey)); in TEST() 366 ASSERT_TRUE(key_pair->ExportPublicKey(&pubkey)); in TEST()
|
/external/cronet/crypto/ |
D | rsa_private_key_unittest.cc | 355 std::unique_ptr<crypto::RSAPrivateKey> key_pair( in TEST() local 357 ASSERT_TRUE(key_pair.get()); in TEST() 360 crypto::RSAPrivateKey::CreateFromKey(key_pair->key())); in TEST() 365 ASSERT_TRUE(key_pair->ExportPrivateKey(&privkey)); in TEST() 366 ASSERT_TRUE(key_pair->ExportPublicKey(&pubkey)); in TEST()
|
/external/rust/beto-rust/nearby/crypto/crypto_provider/src/ |
D | ed25519.rs | 147 let key_pair = test_group.key; in run_wycheproof_test_vectors() localVariable 148 let public_key = key_pair.pk; in run_wycheproof_test_vectors() 149 let secret_key = key_pair.sk; in run_wycheproof_test_vectors()
|
/external/rust/crates/ring/src/ec/suite_b/ecdsa/ |
D | signing.rs | 109 let key_pair = ec::suite_b::key_pair_from_pkcs8( in from_pkcs8() localVariable 116 Self::new(alg, key_pair, &rng) in from_pkcs8() 140 let key_pair = ec::suite_b::key_pair_from_bytes( in from_private_key_and_public_key() localVariable 147 Self::new(alg, key_pair, &rng) in from_private_key_and_public_key() 152 key_pair: ec::KeyPair, in new() 155 let (seed, public_key) = key_pair.split(); in new()
|
/external/cronet/net/third_party/quiche/src/quiche/blind_sign_auth/anonymous_tokens/cpp/client/ |
D | anonymous_tokens_rsa_bssa_client_test.cc | 48 ANON_TOKENS_ASSIGN_OR_RETURN(auto key_pair, GetStrongRsaKeys4096()); in CreateClientTestKey() 52 public_key.set_serialized_public_key(key_pair.first.SerializeAsString()); in CreateClientTestKey() 64 return std::make_pair(std::move(public_key), std::move(key_pair.second)); in CreateClientTestKey() 400 ANON_TOKENS_ASSERT_OK_AND_ASSIGN(auto key_pair, CreateClientTestKey()); in TEST_F() 403 AnonymousTokensRsaBssaClient::Create(key_pair.first)); in TEST_F()
|
/external/rust/beto-rust/nearby/connections/ukey2/ukey2/src/ |
D | ukey2_handshake.rs | 244 key_pair: ServerKeyPair<C>, field 264 key_pair: ServerKeyPair<C>, in from() 273 server_init.set_public_key(match &key_pair { in from() 284 key_pair, in from() 305 let shared_secret_bytes = match self.key_pair { in handle_client_finished_msg()
|
/external/cronet/net/third_party/quiche/src/quiche/blind_sign_auth/anonymous_tokens/cpp/crypto/ |
D | at_crypto_utils_test.cc | 162 ANON_TOKENS_ASSERT_OK_AND_ASSIGN(auto key_pair, GetStrongRsaKeys2048()); in TEST() 167 internal::PublicMetadataHashWithHKDF(input1, key_pair.first.n(), in TEST() 171 internal::PublicMetadataHashWithHKDF(input1, key_pair.first.n(), in TEST() 177 internal::PublicMetadataHashWithHKDF(input2, key_pair.first.n(), in TEST()
|
/external/rust/crates/ring/src/ec/curve25519/ed25519/ |
D | signing.rs | 54 let key_pair = Self::from_seed_(&seed); in generate_pkcs8() localVariable 58 key_pair.public_key().as_ref(), in generate_pkcs8()
|