Searched defs:public_key (Results 1 - 25 of 84) sorted by path

1234

/external/chromium_org/chrome/app/
H A Dsignature_validator_win_unittest.cc79 uint8* public_key = blob.pbData; local
83 base::StringPiece key_bytes(reinterpret_cast<char*>(public_key),
/external/chromium_org/chrome/browser/chromeos/login/easy_unlock/
H A Deasy_unlock_key_manager.cc114 dict->SetString(kKeyPermitId, data.public_key);
115 dict->SetString(kKeyPermitData, data.public_key);
127 std::string public_key; local
131 !dict.GetString(kKeyPermitId, &public_key) ||
137 data->public_key.swap(public_key);
H A Deasy_unlock_types.h27 std::string public_key; member in struct:chromeos::EasyUnlockDeviceKeyData
/external/chromium_org/chrome/browser/chromeos/ownership/
H A Downer_settings_service_chromeos.cc62 scoped_refptr<PublicKey> public_key,
64 const base::Callback<void(const scoped_refptr<PublicKey>& public_key,
71 owner_key_util->FindPrivateKeyInSlot(public_key->data(), slot.get())));
74 base::Bind(callback, public_key, private_key));
80 const base::Callback<void(const scoped_refptr<PublicKey>& public_key,
84 scoped_refptr<PublicKey> public_key; local
89 base::Bind(callback, public_key, private_key));
92 public_key = new PublicKey();
93 public_key->data().swap(public_key_data);
98 public_key,
60 LoadPrivateKeyByPublicKey( const scoped_refptr<OwnerKeyUtil>& owner_key_util, scoped_refptr<PublicKey> public_key, const std::string& username_hash, const base::Callback<void(const scoped_refptr<PublicKey>& public_key, const scoped_refptr<PrivateKey>& private_key)>& callback) argument
77 LoadPrivateKey( const scoped_refptr<OwnerKeyUtil>& owner_key_util, const std::string username_hash, const base::Callback<void(const scoped_refptr<PublicKey>& public_key, const scoped_refptr<PrivateKey>& private_key)>& callback) argument
111 std::vector<uint8> public_key; local
268 ReloadKeypairImpl(const base::Callback< void(const scoped_refptr<PublicKey>& public_key, const scoped_refptr<PrivateKey>& private_key)>& callback) argument
[all...]
/external/chromium_org/chrome/browser/chromeos/platform_keys/
H A Dplatform_keys_nss.cc164 SignState(const std::string& public_key,
297 SignState::SignState(const std::string& public_key, argument
301 : public_key_(public_key),
579 const std::string& public_key,
586 new SignState(public_key, hash_algorithm, data, callback));
578 Sign(const std::string& token_id, const std::string& public_key, HashAlgorithm hash_algorithm, const std::string& data, const SignCallback& callback, BrowserContext* browser_context) argument
/external/chromium_org/chrome/browser/chromeos/policy/
H A Duser_cloud_policy_store_chromeos_unittest.cc77 std::vector<uint8> public_key; variable
78 ASSERT_TRUE(policy_.GetSigningKey()->ExportPublicKey(&public_key));
79 StoreUserPolicyKey(public_key); variable
127 void StoreUserPolicyKey(const std::vector<uint8>& public_key) { argument
131 reinterpret_cast<const char*>(public_key.data()),
132 public_key.size()));
/external/chromium_org/chrome/browser/chromeos/settings/
H A Dsession_manager_operation.cc42 scoped_refptr<PublicKey> public_key) {
45 public_key_ = public_key;
100 scoped_refptr<PublicKey> public_key(new PublicKey());
104 public_key->data() = current_key->data();
106 if (!public_key->is_loaded() && util->IsPublicKeyPresent()) {
107 if (!util->ImportPublicKey(&public_key->data()))
111 return public_key;
39 Start( SessionManagerClient* session_manager_client, scoped_refptr<OwnerKeyUtil> owner_key_util, scoped_refptr<PublicKey> public_key) argument
H A Dsession_manager_operation.h47 scoped_refptr<ownership::PublicKey> public_key);
62 scoped_refptr<ownership::PublicKey> public_key() { return public_key_; } function in class:chromeos::SessionManagerOperation
H A Dsession_manager_operation_unittest.cc73 ASSERT_TRUE(op->public_key().get());
74 ASSERT_TRUE(op->public_key()->is_loaded());
75 std::vector<uint8> public_key; local
76 ASSERT_TRUE(policy_.GetSigningKey()->ExportPublicKey(&public_key));
77 EXPECT_EQ(public_key, op->public_key()->data());
112 ASSERT_TRUE(op.public_key().get());
113 EXPECT_FALSE(op.public_key()->is_loaded());
165 EXPECT_TRUE(op.public_key().get());
166 EXPECT_TRUE(op.public_key()
255 std::vector<uint8> public_key; local
[all...]
/external/chromium_org/chrome/browser/devtools/device/usb/
H A Dandroid_rsa.cc207 std::vector<uint8> public_key; local
211 key->ExportPublicKey(&public_key);
212 std::string asn1(public_key.begin(), public_key.end());
/external/chromium_org/chrome/browser/extensions/api/easy_unlock_private/
H A Deasy_unlock_private_api.cc333 const std::string& public_key) {
335 if (!public_key.empty() && !private_key.empty()) {
337 public_key, private_key);
331 OnData( const std::string& private_key, const std::string& public_key) argument
H A Deasy_unlock_private_api_chromeos_unittest.cc116 const base::BinaryValue* public_key; local
117 ASSERT_TRUE(result_list->GetBinary(0, &public_key));
118 ASSERT_TRUE(public_key);
126 std::string(public_key->GetBuffer(), public_key->GetSize())));
/external/chromium_org/chrome/browser/extensions/api/networking_private/
H A Dnetworking_private_credentials_getter_mac.cc27 const std::string& public_key,
45 const std::string& public_key,
59 std::vector<uint8> public_key_data(public_key.begin(), public_key.end());
43 Start( const std::string& network_guid, const std::string& public_key, const extensions::NetworkingPrivateServiceClient::CryptoVerify:: VerifyAndEncryptCredentialsCallback& callback) argument
H A Dnetworking_private_credentials_getter_win.cc24 explicit CredentialsGetterHostClient(const std::string& public_key);
54 const std::string& public_key)
55 : public_key_(public_key.begin(), public_key.end()) {
120 const std::string& public_key,
135 const std::string& public_key,
142 new CredentialsGetterHostClient(public_key),
53 CredentialsGetterHostClient( const std::string& public_key) argument
133 Start( const std::string& network_guid, const std::string& public_key, const extensions::NetworkingPrivateServiceClient::CryptoVerify:: VerifyAndEncryptCredentialsCallback& callback) argument
H A Dnetworking_private_service_client.h64 std::string public_key; member in struct:extensions::NetworkingPrivateServiceClient::CryptoVerify::Credentials
/external/chromium_org/chrome/browser/extensions/
H A Dextension_creator.cc98 std::string public_key; local
99 public_key.insert(public_key.begin(),
102 std::string extension_id = crx_file::id_util::GenerateId(public_key);
250 std::vector<uint8> public_key; local
251 CHECK(private_key->ExportPublicKey(&public_key));
255 crx_file::CrxFile::Create(public_key.size(), signature.size(), &error));
264 if (fwrite(&public_key.front(), sizeof(uint8), public_key.size(),
265 crx_handle.get()) != public_key
[all...]
H A Dinstall_signer.cc251 std::string public_key; local
252 if (!Extension::ParsePEMKeyBytes(kPublicKeyPEM, &public_key))
261 reinterpret_cast<const uint8*>(public_key.data()),
262 public_key.size()))
H A Dsandboxed_unpacker.cc578 std::string public_key = local
580 base::Base64Encode(public_key, &public_key_);
582 extension_id_ = crx_file::id_util::GenerateId(public_key);
/external/chromium_org/chrome/browser/sync/test/integration/
H A Dsync_extension_helper.cc278 std::string public_key; local
281 Extension::FormatPEMForFileOutput(pem, &public_key,
283 return public_key;
293 const std::string& public_key = NameToPublicKey(name); local
294 source.SetString(extensions::manifest_keys::kPublicKey, public_key);
/external/chromium_org/chromeos/cryptohome/
H A Dcryptohome_parameters.cc27 const std::string& public_key,
32 public_key(public_key),
41 public_key == other.public_key &&
55 std::string() /* public_key */,
23 Secret( bool encrypt, bool sign, const std::string& symmetric_key, const std::string& public_key, bool wrapped) argument
H A Dcryptohome_parameters.h54 const std::string& public_key,
62 std::string public_key; member in struct:cryptohome::KeyDefinition::AuthorizationData::Secret
/external/chromium_org/chromeos/dbus/
H A Deasy_unlock_client.cc48 const std::string& public_key,
57 AppendStringAsByteArray(public_key, &writer);
147 std::string public_key = PopResponseData(&reader); local
149 if (public_key.empty() || private_key.empty()) {
154 callback.Run(private_key, public_key);
H A Dfake_easy_unlock_client.cc44 const std::string& public_key) {
48 ExtractKeyPairIndexFromKey(public_key, kEc256PublicKeyKey);
74 const std::string& public_key,
79 ExtractKeyPairIndexFromKey(public_key, kEc256PublicKeyKey);
86 // used keys belong, i.e. (key_pair[1].private_key, key_pair[2].public_key)
87 // and (key_pair[2].private_key, key_pair[1].public_key) should produce the
43 IsEcP256KeyPair(const std::string& private_key, const std::string& public_key) argument
72 PerformECDHKeyAgreement( const std::string& private_key, const std::string& public_key, const DataCallback& callback) argument
H A Dfake_easy_unlock_client_unittest.cc154 const std::string public_key = "{\"ec_p256_public_key\": 345}"; local
157 client.PerformECDHKeyAgreement(public_key,
167 const std::string public_key = "{\"ec_p256_public_key_invalid\": 345}"; local
171 public_key,
180 const std::string public_key = "{\"ec_p256_public_key\": \"345__\"}"; local
184 public_key,
193 const std::string public_key = "{\"ec_p256_public_key\": 345}"; local
197 public_key,
H A Dshill_manager_client.h109 std::string public_key; member in struct:chromeos::ShillManagerClient::VerificationProperties
206 // by the given |service_path|, encrypted using the |public_key| for the
215 // the |data| encrypted using the |public_key| for the trusted device. If the

Completed in 3735 milliseconds

1234