Searched refs:encryptor (Results 1 - 25 of 47) sorted by relevance

12

/external/chromium_org/components/os_crypt/
H A Dos_crypt_posix.cc10 #include "crypto/encryptor.h"
89 crypto::Encryptor encryptor; local
90 if (!encryptor.Init(encryption_key.get(), crypto::Encryptor::CBC, iv))
93 if (!encryptor.Encrypt(plaintext, ciphertext))
131 crypto::Encryptor encryptor; local
132 if (!encryptor.Init(encryption_key.get(), crypto::Encryptor::CBC, iv))
135 if (!encryptor.Decrypt(raw_ciphertext, plaintext))
/external/chromium_org/chrome/browser/chromeos/settings/
H A Dtoken_encryptor.cc14 #include "crypto/encryptor.h"
78 crypto::Encryptor encryptor; local
79 if (!encryptor.Init(key, crypto::Encryptor::CTR, std::string())) {
85 CHECK(encryptor.SetCounter(nonce));
86 if (!encryptor.Encrypt(token, &encoded_token)) {
109 crypto::Encryptor encryptor; local
110 if (!encryptor.Init(key, crypto::Encryptor::CTR, std::string())) {
117 CHECK(encryptor.SetCounter(nonce));
118 if (!encryptor.Decrypt(encrypted_token, &token)) {
H A Ddevice_oauth2_token_service.cc238 CryptohomeTokenEncryptor encryptor(system_salt_);
239 refresh_token_ = encryptor.DecryptWithSystemSalt(encrypted_refresh_token);
301 CryptohomeTokenEncryptor encryptor(system_salt_);
303 encryptor.EncryptWithSystemSalt(refresh_token_);
/external/chromium_org/crypto/
H A Dencryptor_unittest.cc5 #include "crypto/encryptor.h"
20 crypto::Encryptor encryptor; local
24 EXPECT_TRUE(encryptor.Init(key.get(), crypto::Encryptor::CBC, iv));
28 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext));
33 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decrypted));
64 crypto::Encryptor encryptor; local
68 EXPECT_TRUE(encryptor.Init(key.get(), crypto::Encryptor::CBC, iv));
72 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext));
193 crypto::Encryptor encryptor; local
194 EXPECT_TRUE(encryptor
225 crypto::Encryptor encryptor; local
290 crypto::Encryptor encryptor; local
411 crypto::Encryptor encryptor; local
444 crypto::Encryptor encryptor; local
470 crypto::Encryptor encryptor; local
495 crypto::Encryptor encryptor; local
509 crypto::Encryptor encryptor; local
523 crypto::Encryptor encryptor; local
542 crypto::Encryptor encryptor; local
[all...]
/external/chromium_org/sync/util/
H A Dnigori.cc14 #include "crypto/encryptor.h"
128 Encryptor encryptor; local
129 if (!encryptor.Init(encryption_key_.get(), Encryptor::CBC,
134 if (!encryptor.Encrypt(plaintext.str(), &ciphertext))
165 Encryptor encryptor; local
166 if (!encryptor.Init(encryption_key_.get(), Encryptor::CBC, iv))
170 if (!encryptor.Encrypt(value, &ciphertext))
228 Encryptor encryptor;
229 if (!encryptor.Init(encryption_key_.get(), Encryptor::CBC, iv))
232 if (!encryptor
[all...]
H A Dcryptographer.h52 // Does not take ownership of |encryptor|.
53 explicit Cryptographer(Encryptor* encryptor);
173 Encryptor* encryptor() const { return encryptor_; } function in class:syncer::Cryptographer
H A Dcryptographer.cc13 #include "sync/util/encryptor.h"
25 Cryptographer::Cryptographer(Encryptor* encryptor) argument
26 : encryptor_(encryptor) {
27 DCHECK(encryptor);
145 // Create the new Nigori and make it the default encryptor.
171 // Create the new Nigori and make it the default encryptor.
/external/chromium_org/sync/internal_api/
H A Djs_sync_encryption_handler_observer_unittest.cc149 FakeEncryptor encryptor; local
150 Cryptographer cryptographer(&encryptor);
H A Dsync_backup_manager.h38 Encryptor* encryptor,
H A Dsync_rollback_manager.h38 Encryptor* encryptor,
H A Dsync_encryption_handler_impl.h51 Encryptor* encryptor,
129 Vault(Encryptor* encryptor, ModelTypeSet encrypted_types);
H A Dsync_encryption_handler_impl_unittest.cc197 Cryptographer other_cryptographer(GetCryptographer()->encryptor());
304 Cryptographer other_cryptographer(GetCryptographer()->encryptor());
528 Cryptographer other_cryptographer(GetCryptographer()->encryptor());
662 GetCryptographer()->encryptor()->DecryptString(decoded_bootstrap,
698 Cryptographer other_cryptographer(GetCryptographer()->encryptor());
734 Cryptographer other_cryptographer(GetCryptographer()->encryptor());
791 Cryptographer other_cryptographer(GetCryptographer()->encryptor());
1020 Cryptographer other_cryptographer(GetCryptographer()->encryptor());
1078 Cryptographer keystore_cryptographer(GetCryptographer()->encryptor());
1092 Cryptographer other_cryptographer(GetCryptographer()->encryptor());
[all...]
H A Dsync_encryption_handler_impl.cc32 #include "sync/util/encryptor.h"
137 Encryptor* encryptor) {
153 encryptor->EncryptString(serialized_keystores,
162 Encryptor* encryptor,
173 if (!encryptor->DecryptString(base64_decoded_keystore_bootstrap,
199 Encryptor* encryptor,
201 : cryptographer(encryptor),
210 Encryptor* encryptor,
214 vault_unsafe_(encryptor, SensitiveTypes()),
227 encryptor,
134 PackKeystoreBootstrapToken( const std::vector<std::string>& old_keystore_keys, const std::string& current_keystore_key, Encryptor* encryptor) argument
160 UnpackKeystoreBootstrapToken( const std::string& keystore_bootstrap_token, Encryptor* encryptor, std::vector<std::string>* old_keystore_keys, std::string* current_keystore_key) argument
198 Vault( Encryptor* encryptor, ModelTypeSet encrypted_types) argument
208 SyncEncryptionHandlerImpl( UserShare* user_share, Encryptor* encryptor, const std::string& restored_key_for_bootstrapping, const std::string& restored_keystore_key_for_bootstrapping) argument
[all...]
H A Dsync_rollback_manager_base_unittest.cc38 Encryptor* encryptor,
/external/chromium_org/sync/syncable/
H A Ddirectory_unittest.h90 Encryptor* encryptor();
H A Dsyncable_unittest.cc88 Encryptor *encryptor,
100 TestDirectory(Encryptor* encryptor,
108 Encryptor *encryptor,
114 return new TestDirectory(encryptor, handler, backing_store);
117 TestDirectory::TestDirectory(Encryptor* encryptor, argument
127 FakeEncryptor encryptor; local
137 TestDirectory::Create(&encryptor, &handler, name, file_path));
169 encryptor(), unrecoverable_error_handler(), kDirectoryName, file_path_);
107 Create( Encryptor *encryptor, UnrecoverableErrorHandler *handler, const std::string& dir_name, const base::FilePath& backing_filepath) argument
/external/chromium_org/media/cast/transport/
H A Dcast_transport_sender_impl.cc129 TransportEncryptionHandler* encryptor,
131 if (encryptor->initialized()) {
134 if (encryptor->Encrypt(frame.frame_id, frame.data, &encrypted_frame.data)) {
128 EncryptAndSendFrame(const EncodedFrame& frame, TransportEncryptionHandler* encryptor, RtpSender* sender) argument
/external/chromium_org/media/cdm/
H A Daes_decryptor.cc13 #include "crypto/encryptor.h"
135 crypto::Encryptor encryptor; local
136 if (!encryptor.Init(key, crypto::Encryptor::CTR, "")) {
143 if (!encryptor.SetCounter(input.decrypt_config()->iv())) {
158 if (!encryptor.Decrypt(encrypted_text, &decrypted_text)) {
208 if (!encryptor.Decrypt(encrypted_text, &decrypted_text)) {
/external/pdfium/core/src/fpdfapi/fpdf_edit/
H A Dfpdf_edit_create.cpp519 CPDF_Encryptor encryptor; local
520 encryptor.Initialize(pHandler, m_dwObjNum, encoder.m_pData, encoder.m_dwSize);
521 if ((len = pFile->AppendDWord(encryptor.m_dwSize)) < 0) {
534 if (pFile->AppendBlock(encryptor.m_pData, encryptor.m_dwSize) < 0) {
537 offset += len + encryptor.m_dwSize;
1006 CPDF_Encryptor encryptor; local
1007 if(!encryptor.Initialize(pCrypto, objnum, encoder.m_pData, encoder.m_dwSize)) {
1010 if ((FX_DWORD)encoder.m_pDict->GetInteger(FX_BSTRC("Length")) != encryptor.m_dwSize) {
1012 encoder.m_pDict->SetAtInteger(FX_BSTRC("Length"), encryptor
1109 CPDF_Encryptor encryptor; local
1121 CPDF_Encryptor encryptor; local
[all...]
/external/chromium_org/components/gcm_driver/
H A Dfake_gcm_client.h45 scoped_ptr<Encryptor> encryptor,
H A Dgcm_client.h221 scoped_ptr<Encryptor> encryptor,
/external/chromium_org/google_apis/gcm/engine/
H A Dgcm_store_impl.h30 scoped_ptr<Encryptor> encryptor);
/external/chromium_org/sync/engine/
H A Dapply_control_data_updates_unittest.cc79 Cryptographer other_cryptographer(cryptographer->encryptor());
263 Cryptographer other_cryptographer(cryptographer->encryptor());
322 Cryptographer other_cryptographer(cryptographer->encryptor());
400 Cryptographer other_cryptographer(cryptographer->encryptor());
548 Cryptographer other_cryptographer(cryptographer->encryptor());
630 Cryptographer other_cryptographer(cryptographer->encryptor());
713 Cryptographer other_cryptographer(cryptographer->encryptor());
792 Cryptographer other_cryptographer(cryptographer->encryptor());
/external/chromium_org/sync/internal_api/public/
H A Dsync_manager.h257 Encryptor* encryptor,
/external/chromium_org/sync/internal_api/public/test/
H A Dfake_sync_manager.h95 Encryptor* encryptor,

Completed in 1439 milliseconds

12