Searched refs:key_pair (Results 1 - 25 of 38) sorted by relevance

12

/external/chromium_org/crypto/
H A Drsa_private_key_nss_unittest.cc29 scoped_ptr<crypto::RSAPrivateKey> key_pair(RSAPrivateKey::Create(256));
32 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key));
37 EXPECT_EQ(key_pair->key_->pkcs11ID, key_pair_2->key_->pkcs11ID);
42 scoped_ptr<crypto::RSAPrivateKey> key_pair(RSAPrivateKey::Create(256));
45 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key));
48 if (key_pair->key_) {
49 PK11_DestroyTokenObject(key_pair->key_->pkcs11Slot,
50 key_pair->key_->pkcs11ID);
52 if (key_pair->public_key_) {
53 PK11_DestroyTokenObject(key_pair
[all...]
/external/chromium_org/remoting/base/
H A Drsa_key_pair_unittest.cc69 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); local
71 std::string signature_base64 = key_pair->SignMessage(kTestMessage);
77 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::Generate(); local
78 ASSERT_TRUE(key_pair.get());
79 ASSERT_NE(key_pair->ToString(), "");
80 ASSERT_NE(key_pair->GetPublicKey(), "");
81 ASSERT_NE(key_pair->SignMessage(kTestMessage), "");
/external/chromium_org/remoting/protocol/
H A Dit2me_host_authenticator_factory.cc16 scoped_refptr<RsaKeyPair> key_pair,
19 key_pair_(key_pair),
14 It2MeHostAuthenticatorFactory( const std::string& local_cert, scoped_refptr<RsaKeyPair> key_pair, const std::string& shared_secret) argument
H A Dnegotiating_host_authenticator.h37 scoped_refptr<RsaKeyPair> key_pair,
45 scoped_refptr<RsaKeyPair> key_pair,
56 scoped_refptr<RsaKeyPair> key_pair);
H A Dnegotiating_host_authenticator.cc27 scoped_refptr<RsaKeyPair> key_pair)
30 local_key_pair_(key_pair) {
36 scoped_refptr<RsaKeyPair> key_pair,
41 new NegotiatingHostAuthenticator(local_cert, key_pair));
55 scoped_refptr<RsaKeyPair> key_pair,
58 new NegotiatingHostAuthenticator(local_cert, key_pair));
25 NegotiatingHostAuthenticator( const std::string& local_cert, scoped_refptr<RsaKeyPair> key_pair) argument
34 CreateWithSharedSecret( const std::string& local_cert, scoped_refptr<RsaKeyPair> key_pair, const std::string& shared_secret_hash, AuthenticationMethod::HashFunction hash_function, scoped_refptr<PairingRegistry> pairing_registry) argument
53 CreateWithThirdPartyAuth( const std::string& local_cert, scoped_refptr<RsaKeyPair> key_pair, scoped_ptr<TokenValidator> token_validator) argument
H A Dit2me_host_authenticator_factory.h28 scoped_refptr<RsaKeyPair> key_pair,
H A Dme2me_host_authenticator_factory.cc72 scoped_refptr<RsaKeyPair> key_pair,
80 result->key_pair_ = key_pair;
93 scoped_refptr<RsaKeyPair> key_pair,
101 result->key_pair_ = key_pair;
68 CreateWithSharedSecret( bool use_service_account, const std::string& host_owner, const std::string& local_cert, scoped_refptr<RsaKeyPair> key_pair, const SharedSecretHash& shared_secret_hash, scoped_refptr<PairingRegistry> pairing_registry) argument
89 CreateWithThirdPartyAuth( bool use_service_account, const std::string& host_owner, const std::string& local_cert, scoped_refptr<RsaKeyPair> key_pair, scoped_ptr<TokenValidatorFactory> token_validator_factory) argument
H A Dme2me_host_authenticator_factory.h34 scoped_refptr<RsaKeyPair> key_pair,
43 scoped_refptr<RsaKeyPair> key_pair,
H A Dthird_party_host_authenticator.h31 // Creates a third-party host authenticator. |local_cert| and |key_pair| are
36 scoped_refptr<RsaKeyPair> key_pair,
H A Dpairing_host_authenticator.cc21 scoped_refptr<RsaKeyPair> key_pair,
25 key_pair_(key_pair),
18 PairingHostAuthenticator( scoped_refptr<PairingRegistry> pairing_registry, const std::string& local_cert, scoped_refptr<RsaKeyPair> key_pair, const std::string& pin) argument
H A Dthird_party_host_authenticator.cc22 scoped_refptr<RsaKeyPair> key_pair,
26 key_pair_(key_pair),
20 ThirdPartyHostAuthenticator( const std::string& local_cert, scoped_refptr<RsaKeyPair> key_pair, scoped_ptr<TokenValidator> token_validator) argument
H A Dpairing_host_authenticator.h25 scoped_refptr<RsaKeyPair> key_pair,
H A Dv2_authenticator.h33 scoped_refptr<RsaKeyPair> key_pair,
/external/chromium_org/remoting/host/
H A Dtoken_validator_factory_impl.cc42 scoped_refptr<RsaKeyPair> key_pair,
62 scoped_refptr<RsaKeyPair> key_pair,
69 key_pair_(key_pair) {
110 scoped_refptr<RsaKeyPair> key_pair,
113 key_pair_(key_pair),
60 TokenValidatorImpl( const ThirdPartyAuthConfig& third_party_auth_config, scoped_refptr<RsaKeyPair> key_pair, const std::string& local_jid, const std::string& remote_jid, scoped_refptr<net::URLRequestContextGetter> request_context_getter) argument
108 TokenValidatorFactoryImpl( const ThirdPartyAuthConfig& third_party_auth_config, scoped_refptr<RsaKeyPair> key_pair, scoped_refptr<net::URLRequestContextGetter> request_context_getter) argument
H A Dtoken_validator_factory_impl.h28 scoped_refptr<RsaKeyPair> key_pair,
H A Dhost_status_sender_unittest.cc188 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); local
189 ASSERT_TRUE(key_pair.get());
192 key_pair->SignMessage(message);
H A Dregister_support_host_request_unittest.cc122 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); local
123 ASSERT_TRUE(key_pair.get());
126 key_pair->SignMessage(std::string(kTestJid) + ' ' + time_str);
H A Dhost_status_sender.h60 scoped_refptr<RsaKeyPair> key_pair,
H A Dregister_support_host_request.h42 // |signal_strategy| and |key_pair| must outlive this
50 scoped_refptr<RsaKeyPair> key_pair,
/external/chromium_org/net/quic/crypto/
H A Dp256_key_exchange_nss.cc31 P256KeyExchange::P256KeyExchange(crypto::ECPrivateKey* key_pair, argument
33 : key_pair_(key_pair) {
65 scoped_ptr<crypto::ECPrivateKey> key_pair(
72 if (!key_pair.get()) {
78 SECKEYPublicKey* public_key = key_pair->public_key();
103 return new P256KeyExchange(key_pair.release(),
109 scoped_ptr<crypto::ECPrivateKey> key_pair(crypto::ECPrivateKey::Create());
111 if (!key_pair.get()) {
117 if (!key_pair->ExportEncryptedPrivateKey(kExportPassword,
128 if (!key_pair
[all...]
H A Dp256_key_exchange.h66 // P256KeyExchange takes ownership of |key_pair|, and expects
68 P256KeyExchange(crypto::ECPrivateKey* key_pair, const uint8* public_key);
/external/chromium_org/chrome/browser/extensions/
H A Dextension_creator.cc89 crypto::RSAPrivateKey* key_pair,
92 if (!key_pair->ExportPublicKey(&public_key_bytes)) {
149 scoped_ptr<crypto::RSAPrivateKey> key_pair(
151 if (!key_pair) {
158 if (!key_pair->ExportPrivateKey(&private_key_vector)) {
190 return key_pair.release();
300 scoped_ptr<crypto::RSAPrivateKey> key_pair; local
302 key_pair.reset(ReadInputKey(private_key_path));
304 key_pair.reset(GenerateKey(output_private_key_path));
305 if (!key_pair)
88 ValidateManifest(const base::FilePath& extension_dir, crypto::RSAPrivateKey* key_pair, int run_flags) argument
[all...]
H A Dextension_creator.h69 crypto::RSAPrivateKey* key_pair,
/external/chromium_org/third_party/webrtc/base/
H A Dopensslidentity.h63 static OpenSSLCertificate* Generate(OpenSSLKeyPair* key_pair,
132 OpenSSLIdentity(OpenSSLKeyPair* key_pair, argument
134 : key_pair_(key_pair), certificate_(certificate) {
135 ASSERT(key_pair != NULL);
H A Dopensslidentity.cc176 OpenSSLKeyPair* key_pair, const SSLIdentityParams& params) {
182 X509* x509 = MakeCertificate(key_pair->pkey(), actual_params);
296 OpenSSLKeyPair *key_pair = OpenSSLKeyPair::Generate(); local
297 if (key_pair) {
299 key_pair, params);
301 return new OpenSSLIdentity(key_pair, certificate);
302 delete key_pair;
175 Generate( OpenSSLKeyPair* key_pair, const SSLIdentityParams& params) argument

Completed in 241 milliseconds

12