/external/chromium_org/components/gcm_driver/ |
H A D | system_encryptor.cc | 14 std::string* ciphertext) { 15 return ::OSCrypt::EncryptString(plaintext, ciphertext); 18 bool SystemEncryptor::DecryptString(const std::string& ciphertext, argument 20 return ::OSCrypt::DecryptString(ciphertext, plaintext); 13 EncryptString(const std::string& plaintext, std::string* ciphertext) argument
|
H A D | system_encryptor.h | 19 std::string* ciphertext) OVERRIDE; 21 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/components/sync_driver/ |
H A D | system_encryptor.cc | 14 std::string* ciphertext) { 15 return ::OSCrypt::EncryptString(plaintext, ciphertext); 18 bool SystemEncryptor::DecryptString(const std::string& ciphertext, argument 20 return ::OSCrypt::DecryptString(ciphertext, plaintext); 13 EncryptString(const std::string& plaintext, std::string* ciphertext) argument
|
H A D | system_encryptor_unittest.cc | 27 std::string ciphertext; local 28 EXPECT_TRUE(encryptor_.EncryptString(kPlaintext, &ciphertext)); 29 EXPECT_NE(kPlaintext, ciphertext); 31 EXPECT_TRUE(encryptor_.DecryptString(ciphertext, &plaintext));
|
H A D | system_encryptor.h | 19 std::string* ciphertext) OVERRIDE; 21 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/google_apis/gcm/base/ |
H A D | fake_encryptor.cc | 14 std::string* ciphertext) { 15 base::Base64Encode(plaintext, ciphertext); 19 bool FakeEncryptor::DecryptString(const std::string& ciphertext, argument 21 return base::Base64Decode(ciphertext, plaintext); 13 EncryptString(const std::string& plaintext, std::string* ciphertext) argument
|
H A D | encryptor.h | 17 std::string* ciphertext) = 0; 19 virtual bool DecryptString(const std::string& ciphertext,
|
H A D | fake_encryptor.h | 14 // ciphertext. Obviously, this should be used only for testing. 20 std::string* ciphertext) OVERRIDE; 22 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/sync/test/ |
H A D | fake_encryptor.cc | 14 std::string* ciphertext) { 15 base::Base64Encode(plaintext, ciphertext); 19 bool FakeEncryptor::DecryptString(const std::string& ciphertext, argument 21 return base::Base64Decode(ciphertext, plaintext); 13 EncryptString(const std::string& plaintext, std::string* ciphertext) argument
|
H A D | fake_encryptor.h | 14 // ciphertext. Obviously, this should be used only for testing. 20 std::string* ciphertext) OVERRIDE; 22 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/net/http/ |
H A D | des_unittest.cc | 20 // DES known ciphertext (64-bits). 25 uint8 ciphertext[8]; local 26 memset(ciphertext, 0xaf, sizeof(ciphertext)); 28 DESEncrypt(des_known_key, des_ecb_known_plaintext, ciphertext); 29 EXPECT_EQ(0, memcmp(ciphertext, des_ecb_known_ciphertext, 8)); 43 uint8 ciphertext[8]; local 44 memset(ciphertext, 0xaf, sizeof(ciphertext)); 46 DESEncrypt(key, plaintext, ciphertext); [all...] |
/external/chromium_org/components/os_crypt/ |
H A D | os_crypt_unittest.cc | 35 std::string ciphertext; local 38 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext)); 39 EXPECT_TRUE(OSCrypt::DecryptString16(ciphertext, &result)); 44 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext)); 45 EXPECT_TRUE(OSCrypt::DecryptString16(ciphertext, &result)); 51 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext)); 52 EXPECT_TRUE(OSCrypt::DecryptString16(ciphertext, &result)); 65 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext)); 66 EXPECT_TRUE(OSCrypt::DecryptString16(ciphertext, &result)); 68 EXPECT_TRUE(OSCrypt::DecryptString(ciphertext, 81 std::string ciphertext; local 104 std::string ciphertext; local 131 std::string ciphertext; local [all...] |
H A D | os_crypt.h | 20 std::string* ciphertext); 25 static bool DecryptString16(const std::string& ciphertext, 30 std::string* ciphertext); 35 static bool DecryptString(const std::string& ciphertext,
|
H A D | os_crypt_posix.cc | 58 std::string* ciphertext) { 59 return EncryptString(base::UTF16ToUTF8(plaintext), ciphertext); 62 bool OSCrypt::DecryptString16(const std::string& ciphertext, argument 65 if (!DecryptString(ciphertext, &utf8)) 73 std::string* ciphertext) { 80 *ciphertext = std::string(); 93 if (!encryptor.Encrypt(plaintext, ciphertext)) 97 ciphertext->insert(0, kObfuscationPrefix); 101 bool OSCrypt::DecryptString(const std::string& ciphertext, argument 108 if (ciphertext 57 EncryptString16(const base::string16& plaintext, std::string* ciphertext) argument 72 EncryptString(const std::string& plaintext, std::string* ciphertext) argument [all...] |
H A D | os_crypt_win.cc | 15 std::string* ciphertext) { 16 return EncryptString(base::UTF16ToUTF8(plaintext), ciphertext); 19 bool OSCrypt::DecryptString16(const std::string& ciphertext, argument 22 if (!DecryptString(ciphertext, &utf8)) 30 std::string* ciphertext) { 43 ciphertext->assign(reinterpret_cast<std::string::value_type*>(output.pbData), 50 bool OSCrypt::DecryptString(const std::string& ciphertext, argument 54 reinterpret_cast<const BYTE*>(ciphertext.data())); 55 input.cbData = static_cast<DWORD>(ciphertext.length()); 14 EncryptString16(const base::string16& plaintext, std::string* ciphertext) argument 29 EncryptString(const std::string& plaintext, std::string* ciphertext) argument
|
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
H A D | pycrypto_rc4.py | 26 def decrypt(self, ciphertext): 27 ciphertext = bytes(ciphertext) 28 return bytearray(self.context.decrypt(ciphertext)
|
H A D | openssl_aes.py | 35 ciphertext = m2.cipher_update(context, plaintext) 37 self.IV = ciphertext[-self.block_size:] 38 return bytearray(ciphertext) 40 def decrypt(self, ciphertext): 41 AES.decrypt(self, ciphertext) 45 plaintext = m2.cipher_update(context, ciphertext+('\0'*16)) 49 plaintext = plaintext[:len(ciphertext)] 51 self.IV = ciphertext[-self.block_size:]
|
H A D | openssl_tripledes.py | 30 ciphertext = m2.cipher_update(context, plaintext) 32 self.IV = ciphertext[-self.block_size:] 33 return bytearray(ciphertext) 35 def decrypt(self, ciphertext): 36 TripleDES.decrypt(self, ciphertext) 40 plaintext = m2.cipher_update(context, ciphertext+('\0'*16)) 44 plaintext = plaintext[:len(ciphertext)] 46 self.IV = ciphertext[-self.block_size:]
|
H A D | pycrypto_aes.py | 27 def decrypt(self, ciphertext): 28 ciphertext = bytes(ciphertext) 29 return bytearray(self.context.decrypt(ciphertext))
|
H A D | pycrypto_tripledes.py | 27 def decrypt(self, ciphertext): 28 ciphertext = bytes(ciphertext) 29 return bytearray(self.context.decrypt(ciphertext)
|
H A D | tripledes.py | 19 #CBC-Mode encryption, returns ciphertext 26 def decrypt(self, ciphertext): 27 assert(len(ciphertext) % 8 == 0)
|
/external/chromium_org/content/public/browser/ |
H A D | cookie_crypto_delegate.h | 15 std::string* ciphertext) = 0; 16 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/sync/util/ |
H A D | encryptor.h | 16 std::string* ciphertext) = 0; 18 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/net/quic/crypto/ |
H A D | aead_base_decrypter_openssl.cc | 81 StringPiece ciphertext, 84 if (ciphertext.length() < auth_tag_size_ || 90 ctx_.get(), output, output_length, ciphertext.size(), 92 reinterpret_cast<const uint8_t*>(ciphertext.data()), ciphertext.size(), 107 StringPiece ciphertext) { 108 if (ciphertext.length() < auth_tag_size_) { 111 size_t plaintext_size = ciphertext.length(); 120 associated_data, ciphertext, 79 Decrypt(StringPiece nonce, StringPiece associated_data, StringPiece ciphertext, uint8* output, size_t* output_length) argument 104 DecryptPacket( QuicPacketSequenceNumber sequence_number, StringPiece associated_data, StringPiece ciphertext) argument
|
H A D | crypto_secret_boxer.cc | 70 bool CryptoSecretBoxer::Unbox(StringPiece ciphertext, argument 73 if (ciphertext.size() < kBoxNonceSize) { 78 memcpy(nonce, ciphertext.data(), kBoxNonceSize); 79 ciphertext.remove_prefix(kBoxNonceSize); 81 size_t len = ciphertext.size(); 91 ciphertext, reinterpret_cast<unsigned char*>(data),
|