/external/chromium_org/net/ssl/ |
D | openssl_client_key_store.cc | 55 private_key = CopyEVP_PKEY(priv_key); in KeyPair() 60 EVP_PKEY_free(private_key); in ~KeyPair() 65 private_key = CopyEVP_PKEY(other.private_key); in KeyPair() 70 EVP_PKEY* old_private_key = private_key; in operator =() 72 private_key = CopyEVP_PKEY(other.private_key); in operator =() 88 EVP_PKEY* private_key) { in AddKeyPair() argument 91 pairs_.push_back(KeyPair(pub_key, private_key)); in AddKeyPair() 98 EVP_PKEY* private_key) { in RecordClientCertPrivateKey() argument 100 if (!client_cert || !private_key) in RecordClientCertPrivateKey() 108 AddKeyPair(pub_key.get(), private_key); in RecordClientCertPrivateKey() [all …]
|
D | server_bound_cert_service.cc | 146 std::string* private_key, in ServerBoundCertServiceRequest() argument 150 private_key_(private_key), in ServerBoundCertServiceRequest() 165 const std::string& private_key, in Post() argument 196 *private_key_ = private_key; in Post() 295 const std::string& private_key, in HandleResult() argument 297 PostAll(error, private_key, cert); in HandleResult() 304 const std::string& private_key, in PostAll() argument 311 (*i)->Post(error, private_key, cert); in PostAll() 399 std::string* private_key, in GetOrCreateDomainBoundCert() argument 407 if (callback.is_null() || !private_key || !cert || host.empty()) { in GetOrCreateDomainBoundCert() [all …]
|
D | default_server_bound_cert_store_unittest.cc | 163 std::string private_key, cert; in TEST() local 168 &private_key, in TEST() 171 EXPECT_TRUE(private_key.empty()); in TEST() 181 &private_key, in TEST() 185 EXPECT_EQ("i", private_key); in TEST() 194 std::string private_key, cert; in TEST() local 213 &private_key, in TEST() 217 EXPECT_EQ("c", private_key); in TEST() 232 std::string private_key; in TEST() local 238 &private_key, in TEST() [all …]
|
D | openssl_client_key_store.h | 54 EVP_PKEY* private_key); 63 ScopedEVP_PKEY* private_key); 77 void AddKeyPair(EVP_PKEY* pub_key, EVP_PKEY* private_key); 90 EVP_PKEY* private_key; variable
|
D | server_bound_cert_service.h | 111 std::string* private_key, in NON_EXPORTED_BASE() 136 std::string* private_key, in NON_EXPORTED_BASE() 168 const std::string& private_key, in NON_EXPORTED_BASE() 176 std::string* private_key, in NON_EXPORTED_BASE() 188 std::string* private_key, in NON_EXPORTED_BASE()
|
D | server_bound_cert_store.cc | 16 const std::string& private_key, in ServerBoundCert() argument 21 private_key_(private_key), in ServerBoundCert() 30 i->expiration_time(), i->private_key(), i->cert()); in InitializeFrom()
|
/external/chromium_org/net/quic/crypto/ |
D | curve25519_key_exchange.cc | 23 const StringPiece& private_key) { in New() argument 34 if (private_key.size() != crypto::curve25519::kScalarBytes) { in New() 39 memcpy(ka->private_key_, private_key.data(), in New() 47 uint8 private_key[crypto::curve25519::kScalarBytes]; in NewPrivateKey() local 48 rand->RandBytes(private_key, sizeof(private_key)); in NewPrivateKey() 52 private_key[0] &= 248; in NewPrivateKey() 53 private_key[31] &= 127; in NewPrivateKey() 54 private_key[31] |= 64; in NewPrivateKey() 55 return string(reinterpret_cast<char*>(private_key), sizeof(private_key)); in NewPrivateKey()
|
D | p256_key_exchange_openssl.cc | 18 P256KeyExchange::P256KeyExchange(EC_KEY* private_key, const uint8* public_key) in P256KeyExchange() argument 19 : private_key_(private_key) { in P256KeyExchange() 33 crypto::ScopedOpenSSL<EC_KEY, EC_KEY_free> private_key( in New() local 35 if (!private_key.get() || !EC_KEY_check_key(private_key.get())) { in New() 41 if (EC_POINT_point2oct(EC_KEY_get0_group(private_key.get()), in New() 42 EC_KEY_get0_public_key(private_key.get()), in New() 49 return new P256KeyExchange(private_key.release(), public_key); in New() 66 scoped_ptr<uint8[]> private_key(new uint8[key_len]); in NewPrivateKey() local 67 uint8* keyp = private_key.get(); in NewPrivateKey() 72 return string(reinterpret_cast<char*>(private_key.get()), key_len); in NewPrivateKey()
|
D | p256_key_exchange_nss.cc | 116 vector<uint8> private_key; in NewPrivateKey() local 119 &private_key)) { in NewPrivateKey() 134 uint16 private_key_size = private_key.size(); in NewPrivateKey() 145 memcpy(resultp, &private_key[0], private_key.size()); in NewPrivateKey() 146 resultp += private_key.size(); in NewPrivateKey()
|
/external/chromium_org/net/android/ |
D | keystore_openssl.cc | 157 jobject private_key = reinterpret_cast<jobject>(RSA_get_app_data(rsa)); in RsaMethodPrivEnc() local 158 if (!private_key) { in RsaMethodPrivEnc() 168 if (!RawSignDigestWithPrivateKey(private_key, from_piece, &result)) { in RsaMethodPrivEnc() 285 bool GetRsaPkeyWrapper(jobject private_key, EVP_PKEY* pkey) { in GetRsaPkeyWrapper() argument 293 if (!GetRSAKeyModulus(private_key, &modulus)) { in GetRsaPkeyWrapper() 303 global_key.Reset(NULL, private_key); in GetRsaPkeyWrapper() 356 EVP_PKEY* GetRsaLegacyKey(jobject private_key) { in GetRsaLegacyKey() argument 358 GetOpenSSLSystemHandleForPrivateKey(private_key); in GetRsaLegacyKey() 368 if (!GetPrivateKeyEncodedBytes(private_key, &encoded)) { in GetRsaLegacyKey() 398 jobject private_key = reinterpret_cast<jobject>(DSA_get_ex_data(dsa, 0)); in DsaMethodDoSign() local [all …]
|
D | keystore.h | 43 NET_EXPORT bool GetRSAKeyModulus(jobject private_key, 53 NET_EXPORT bool GetDSAKeyParamQ(jobject private_key, 63 bool GetECKeyOrder(jobject private_key, 72 bool GetPrivateKeyEncodedBytes(jobject private_key, 85 jobject private_key, 94 NET_EXPORT PrivateKeyType GetPrivateKeyType(jobject private_key); 109 EVP_PKEY* GetOpenSSLSystemHandleForPrivateKey(jobject private_key); 111 NET_EXPORT void ReleaseKey(jobject private_key);
|
/external/chromium_org/crypto/ |
D | curve25519.cc | 19 void ScalarMult(const uint8* private_key, in ScalarMult() argument 22 curve25519_donna(shared_key, private_key, peer_public_key); in ScalarMult() 30 void ScalarBaseMult(const uint8* private_key, uint8* public_key) { in ScalarBaseMult() argument 31 curve25519_donna(public_key, private_key, kBasePoint); in ScalarBaseMult()
|
/external/chromium_org/net/base/ |
D | keygen_handler_mac.cc | 100 SecKeyRef private_key, 108 SecKeyRef private_key = NULL; in GenKeyAndSignChallenge() local 130 &public_key, &private_key); in GenKeyAndSignChallenge() 172 err = SignData(encoded, private_key, &signature); in GenKeyAndSignChallenge() 204 if (private_key) in GenKeyAndSignChallenge() 205 SecKeychainItemDelete(reinterpret_cast<SecKeychainItemRef>(private_key)); in GenKeyAndSignChallenge() 216 if (private_key) in GenKeyAndSignChallenge() 217 CFRelease(private_key); in GenKeyAndSignChallenge() 308 SecKeyRef private_key, in SignData() argument 311 OSStatus err = CreateSignatureContext(private_key, in SignData()
|
D | openssl_private_key_store_android.cc | 30 unsigned char* private_key = NULL; in StoreKeyPair() local 36 private_len = i2d_PKCS8_PRIV_KEY_INFO(pkcs8.get(), &private_key); in StoreKeyPair() 42 static_cast<const uint8*>(private_key), private_len); in StoreKeyPair() 47 OPENSSL_free(private_key); in StoreKeyPair()
|
/external/chromium_org/content/browser/media/ |
D | webrtc_identity_store.cc | 26 const std::string& private_key) in WebRTCIdentityRequestResult() 27 : error(error), certificate(certificate), private_key(private_key) {} in WebRTCIdentityRequestResult() 31 std::string private_key; member 65 result->private_key = in GenerateIdentityWorker() 110 it->second.Run(result.error, result.certificate, result.private_key); in Post() 159 const std::string& private_key) { in OnRequestComplete() argument 163 base::ResetAndReturn(&callback_).Run(error, certificate, private_key); in OnRequestComplete() 243 const std::string& private_key) { in BackendFindCallback() argument 247 WebRTCIdentityRequestResult result(error, certificate, private_key); in BackendFindCallback() 280 result->private_key); in GenerateIdentityCallback()
|
D | webrtc_identity_store_backend.cc | 68 const std::string& private_key) in Identity() 71 private_key(private_key), in Identity() 76 const std::string& private_key, in Identity() 80 private_key(private_key), in Identity() 85 std::string private_key; member 236 iter->second.private_key)); in FindIdentity() 253 const std::string& private_key) { in AddIdentity() argument 261 Identity identity(common_name, certificate, private_key); in AddIdentity() 411 std::string cert, private_key; in Load() local 413 stmt.ColumnBlobAsString(4, &private_key); in Load() [all …]
|
/external/chromium_org/net/cert/ |
D | x509_util_unittest.cc | 58 scoped_ptr<crypto::RSAPrivateKey> private_key; in TEST() local 66 &private_key, in TEST() 69 ASSERT_TRUE(private_key.get()); in TEST() 169 scoped_ptr<crypto::RSAPrivateKey> private_key( in TEST() local 171 ASSERT_TRUE(private_key.get()); in TEST() 175 private_key.get(), in TEST()
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | sslidentity.cc | 122 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, in FromPEMStrings() argument 141 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, in FromPEMStrings() argument 143 return OpenSSLIdentity::FromPEMStrings(private_key, certificate); in FromPEMStrings() 160 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, in FromPEMStrings() argument 162 return NSSIdentity::FromPEMStrings(private_key, certificate); in FromPEMStrings()
|
/external/chromium_org/third_party/webrtc/base/ |
D | sslidentity.cc | 105 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, in FromPEMStrings() argument 124 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, in FromPEMStrings() argument 126 return OpenSSLIdentity::FromPEMStrings(private_key, certificate); in FromPEMStrings() 143 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, in FromPEMStrings() argument 145 return NSSIdentity::FromPEMStrings(private_key, certificate); in FromPEMStrings()
|
/external/chromium_org/chromeos/network/onc/ |
D | onc_certificate_importer_impl.cc | 110 SECKEYPrivateKey* private_key = PK11_FindPrivateKeyFromCert( in ListCertsWithNickname() local 114 if (private_key) { in ListCertsWithNickname() 115 char* private_key_nickname = PK11_GetPrivateKeyNickname(private_key); in ListCertsWithNickname() 119 SECKEY_DestroyPrivateKey(private_key); in ListCertsWithNickname() 352 SECKEYPrivateKey* private_key = PK11_FindPrivateKeyFromCert( in ParseClientCertificate() local 356 if (private_key) { in ParseClientCertificate() 357 PK11_SetPrivateKeyNickname(private_key, const_cast<char*>(guid.c_str())); in ParseClientCertificate() 358 SECKEY_DestroyPrivateKey(private_key); in ParseClientCertificate()
|
/external/chromium_org/content/child/webcrypto/ |
D | shared_crypto_unittest.cc | 483 blink::WebCryptoKey* private_key) { in ImportRsaKeyPair() argument 504 private_key)); in ImportRsaKeyPair() 505 EXPECT_FALSE(private_key->isNull()); in ImportRsaKeyPair() 506 EXPECT_TRUE(private_key->handle()); in ImportRsaKeyPair() 507 EXPECT_EQ(blink::WebCryptoKeyTypePrivate, private_key->type()); in ImportRsaKeyPair() 508 EXPECT_EQ(algorithm.id(), private_key->algorithm().id()); in ImportRsaKeyPair() 509 EXPECT_EQ(extractable, private_key->extractable()); in ImportRsaKeyPair() 510 EXPECT_EQ(private_key_usage_mask, private_key->usages()); in ImportRsaKeyPair() 2251 blink::WebCryptoKey private_key = blink::WebCryptoKey::createNull(); in TEST_F() local 2262 &private_key)); in TEST_F() [all …]
|
/external/chromium_org/crypto/third_party/nss/ |
D | pk11akey.cc | 56 SECKEYPrivateKey** private_key, in ImportEncryptedECPrivateKeyInfoAndReturnKey() argument 82 *private_key = PK11_UnwrapPrivKey(slot, key, crypto_mech_type, crypto_param, in ImportEncryptedECPrivateKeyInfoAndReturnKey() 92 if (!*private_key) { in ImportEncryptedECPrivateKeyInfoAndReturnKey()
|
/external/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
D | n_pkey.c | 76 ASN1_OCTET_STRING *private_key; member 102 ASN1_SIMPLE(NETSCAPE_PKEY, private_key, ASN1_OCTET_STRING) 150 pkey->private_key->length=rsalen; in i2d_RSA_NET() 178 pkey->private_key->data = zz; in i2d_RSA_NET() 197 OPENSSL_cleanse(pkey->private_key->data, rsalen); in i2d_RSA_NET() 333 zz=pkey->private_key->data; in d2i_RSA_NET_2() 334 if ((ret=d2i_RSAPrivateKey(a,&zz,pkey->private_key->length)) == NULL) in d2i_RSA_NET_2()
|
/external/openssl/crypto/asn1/ |
D | n_pkey.c | 76 ASN1_OCTET_STRING *private_key; member 102 ASN1_SIMPLE(NETSCAPE_PKEY, private_key, ASN1_OCTET_STRING) 150 pkey->private_key->length=rsalen; in i2d_RSA_NET() 178 pkey->private_key->data = zz; in i2d_RSA_NET() 197 OPENSSL_cleanse(pkey->private_key->data, rsalen); in i2d_RSA_NET() 333 zz=pkey->private_key->data; in d2i_RSA_NET_2() 334 if ((ret=d2i_RSAPrivateKey(a,&zz,pkey->private_key->length)) == NULL) in d2i_RSA_NET_2()
|
/external/chromium_org/chrome/browser/ui/android/ |
D | ssl_client_certificate_request.cc | 39 ScopedEVP_PKEY private_key) { in RecordClientCertificateKey() argument 42 client_cert.get(), private_key.get()); in RecordClientCertificateKey() 187 ScopedEVP_PKEY private_key( in OnSystemRequestCompletion() local 189 if (!private_key.get()) { in OnSystemRequestCompletion() 204 base::Passed(&private_key)), in OnSystemRequestCompletion()
|