HomeSort by relevance Sort by last modified time
    Searched refs:key_pair (Results 1 - 25 of 40) sorted by null

1 2

  /external/chromium_org/crypto/
rsa_private_key_nss_unittest.cc 34 scoped_ptr<crypto::RSAPrivateKey> key_pair(RSAPrivateKey::Create(256));
37 RSAPrivateKey::CreateFromKey(key_pair->key()));
42 ASSERT_TRUE(key_pair->ExportPrivateKey(&privkey));
43 ASSERT_TRUE(key_pair->ExportPublicKey(&pubkey));
56 scoped_ptr<crypto::RSAPrivateKey> key_pair(RSAPrivateKey::Create(256));
59 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key));
64 EXPECT_EQ(key_pair->key_->pkcs11ID, key_pair_2->key_->pkcs11ID);
69 scoped_ptr<crypto::RSAPrivateKey> key_pair(RSAPrivateKey::Create(256));
72 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key));
75 if (key_pair->key_)
    [all...]
  /external/chromium/crypto/
rsa_private_key_nss_unittest.cc 33 scoped_ptr<crypto::RSAPrivateKey> key_pair(RSAPrivateKey::Create(256));
36 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key));
41 EXPECT_EQ(key_pair->key_->pkcs11ID, key_pair_2->key_->pkcs11ID);
46 scoped_ptr<crypto::RSAPrivateKey> key_pair(RSAPrivateKey::Create(256));
49 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key));
52 if (key_pair->key_) {
53 PK11_DestroyTokenObject(key_pair->key_->pkcs11Slot,
54 key_pair->key_->pkcs11ID);
56 if (key_pair->public_key_) {
57 PK11_DestroyTokenObject(key_pair->public_key_->pkcs11Slot
    [all...]
  /external/chromium_org/remoting/base/
rsa_key_pair_unittest.cc 69 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/
it2me_host_authenticator_factory.cc 16 scoped_refptr<RsaKeyPair> key_pair,
19 key_pair_(key_pair),
negotiating_host_authenticator.h 37 scoped_refptr<RsaKeyPair> key_pair,
45 scoped_refptr<RsaKeyPair> key_pair,
56 scoped_refptr<RsaKeyPair> key_pair);
negotiating_host_authenticator.cc 26 scoped_refptr<RsaKeyPair> key_pair)
29 local_key_pair_(key_pair) {
35 scoped_refptr<RsaKeyPair> key_pair,
40 new NegotiatingHostAuthenticator(local_cert, key_pair));
54 scoped_refptr<RsaKeyPair> key_pair,
57 new NegotiatingHostAuthenticator(local_cert, key_pair));
it2me_host_authenticator_factory.h 28 scoped_refptr<RsaKeyPair> key_pair,
me2me_host_authenticator_factory.cc 67 scoped_refptr<RsaKeyPair> key_pair,
75 result->key_pair_ = key_pair;
88 scoped_refptr<RsaKeyPair> key_pair,
96 result->key_pair_ = key_pair;
me2me_host_authenticator_factory.h 33 scoped_refptr<RsaKeyPair> key_pair,
42 scoped_refptr<RsaKeyPair> key_pair,
pairing_host_authenticator.h 25 scoped_refptr<RsaKeyPair> key_pair,
pairing_host_authenticator.cc 21 scoped_refptr<RsaKeyPair> key_pair,
25 key_pair_(key_pair),
third_party_host_authenticator.cc 21 scoped_refptr<RsaKeyPair> key_pair,
25 key_pair_(key_pair),
  /external/chromium/third_party/libjingle/source/talk/base/
opensslidentity.h 74 static OpenSSLCertificate* Generate(OpenSSLKeyPair* key_pair,
122 OpenSSLIdentity(OpenSSLKeyPair* key_pair,
124 : key_pair_(key_pair), certificate_(certificate) {
125 ASSERT(key_pair != NULL);
opensslidentity.cc 191 OpenSSLKeyPair* key_pair, const std::string& common_name) {
196 X509* x509 = MakeCertificate(key_pair->pkey(), actual_common_name.c_str());
252 OpenSSLKeyPair *key_pair = OpenSSLKeyPair::Generate(); local
253 if (key_pair) {
255 OpenSSLCertificate::Generate(key_pair, common_name);
257 return new OpenSSLIdentity(key_pair, certificate);
258 delete key_pair;
  /external/chromium_org/third_party/libjingle/source/talk/base/
opensslidentity.h 80 static OpenSSLCertificate* Generate(OpenSSLKeyPair* key_pair,
147 OpenSSLIdentity(OpenSSLKeyPair* key_pair,
149 : key_pair_(key_pair), certificate_(certificate) {
150 ASSERT(key_pair != NULL);
opensslidentity.cc 202 OpenSSLKeyPair* key_pair, const std::string& common_name) {
207 X509* x509 = MakeCertificate(key_pair->pkey(), actual_common_name.c_str());
324 OpenSSLKeyPair *key_pair = OpenSSLKeyPair::Generate(); local
325 if (key_pair) {
327 OpenSSLCertificate::Generate(key_pair, common_name);
329 return new OpenSSLIdentity(key_pair, certificate);
330 delete key_pair;
  /external/chromium/chrome/browser/extensions/
extension_creator.cc 107 scoped_ptr<crypto::RSAPrivateKey> key_pair(
109 if (!key_pair.get()) {
116 if (!key_pair->ExportPrivateKey(&private_key_vector)) {
148 return key_pair.release();
249 scoped_ptr<crypto::RSAPrivateKey> key_pair; local
251 key_pair.reset(ReadInputKey(private_key_path));
253 key_pair.reset(GenerateKey(output_private_key_path));
254 if (!key_pair.get())
266 SignZip(zip_path, key_pair.get(), &signature) &&
267 WriteCRX(zip_path, key_pair.get(), signature, crx_path))
    [all...]
  /external/chromium_org/net/quic/crypto/
p256_key_exchange_nss.cc 31 P256KeyExchange::P256KeyExchange(crypto::ECPrivateKey* key_pair,
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->ExportPublicKey(&public_key))
    [all...]
p256_key_exchange.h 68 // P256KeyExchange takes ownership of |key_pair|, and expects
70 P256KeyExchange(crypto::ECPrivateKey* key_pair, const uint8* public_key);
  /external/chromium_org/chrome/browser/extensions/
extension_creator.cc 89 crypto::RSAPrivateKey* key_pair,
92 if (!key_pair->ExportPublicKey(&public_key_bytes)) {
150 scoped_ptr<crypto::RSAPrivateKey> key_pair(
152 if (!key_pair) {
159 if (!key_pair->ExportPrivateKey(&private_key_vector)) {
191 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)
    [all...]
  /external/chromium_org/remoting/host/
token_validator_factory_impl.h 29 scoped_refptr<RsaKeyPair> key_pair,
token_validator_factory_impl.cc 42 scoped_refptr<RsaKeyPair> key_pair,
48 key_pair_(key_pair),
169 scoped_refptr<RsaKeyPair> key_pair,
173 key_pair_(key_pair),
host_status_sender_unittest.cc 188 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); local
189 ASSERT_TRUE(key_pair.get());
192 key_pair->SignMessage(message);
register_support_host_request_unittest.cc 121 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); local
122 ASSERT_TRUE(key_pair.get());
125 key_pair->SignMessage(std::string(kTestJid) + ' ' + time_str);
  /external/chromium_org/media/cdm/
json_web_key.cc 150 KeyIdAndKeyPair key_pair; local
151 if (!ConvertJwkToKeyPair(*jwk, &key_pair)) {
155 local_keys.push_back(key_pair);

Completed in 147 milliseconds

1 2