/external/chromium_org/net/http/ |
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/ |
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, &utf8_result)) 81 std::string ciphertext; local 104 std::string ciphertext; local 131 std::string ciphertext; local [all...] |
os_crypt_win.cc | 15 std::string* ciphertext) { 16 return EncryptString(base::UTF16ToUTF8(plaintext), ciphertext); 19 bool OSCrypt::DecryptString16(const std::string& ciphertext, 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, 54 reinterpret_cast<const BYTE*>(ciphertext.data())); 55 input.cbData = static_cast<DWORD>(ciphertext.length());
|
/external/chromium_org/components/gcm_driver/ |
system_encryptor.cc | 14 std::string* ciphertext) { 15 return ::OSCrypt::EncryptString(plaintext, ciphertext); 18 bool SystemEncryptor::DecryptString(const std::string& ciphertext, 20 return ::OSCrypt::DecryptString(ciphertext, plaintext);
|
system_encryptor.h | 19 std::string* ciphertext) OVERRIDE; 21 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/components/sync_driver/ |
system_encryptor.cc | 14 std::string* ciphertext) { 15 return ::OSCrypt::EncryptString(plaintext, ciphertext); 18 bool SystemEncryptor::DecryptString(const std::string& ciphertext, 20 return ::OSCrypt::DecryptString(ciphertext, plaintext);
|
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));
|
system_encryptor.h | 19 std::string* ciphertext) OVERRIDE; 21 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/google_apis/gcm/base/ |
fake_encryptor.cc | 14 std::string* ciphertext) { 15 base::Base64Encode(plaintext, ciphertext); 19 bool FakeEncryptor::DecryptString(const std::string& ciphertext, 21 return base::Base64Decode(ciphertext, plaintext);
|
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,
|
encryptor.h | 17 std::string* ciphertext) = 0; 19 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/sync/test/ |
fake_encryptor.cc | 14 std::string* ciphertext) { 15 base::Base64Encode(plaintext, ciphertext); 19 bool FakeEncryptor::DecryptString(const std::string& ciphertext, 21 return base::Base64Decode(ciphertext, plaintext);
|
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/third_party/tlslite/tlslite/utils/ |
pycrypto_rc4.py | 26 def decrypt(self, ciphertext): 27 ciphertext = bytes(ciphertext) 28 return bytearray(self.context.decrypt(ciphertext)
|
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:]
|
pycrypto_aes.py | 27 def decrypt(self, ciphertext): 28 ciphertext = bytes(ciphertext) 29 return bytearray(self.context.decrypt(ciphertext))
|
pycrypto_tripledes.py | 27 def decrypt(self, ciphertext): 28 ciphertext = bytes(ciphertext) 29 return bytearray(self.context.decrypt(ciphertext)
|
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:]
|
tripledes.py | 19 #CBC-Mode encryption, returns ciphertext 26 def decrypt(self, ciphertext): 27 assert(len(ciphertext) % 8 == 0)
|
/external/chromium_org/content/test/data/webcrypto/ |
aes_kw.json | 7 "ciphertext": "1FA68B0A8112B447AEF34BD8FB5A7B829D3E862371D2CFE5" 13 "ciphertext": "64E8C3F9CE0F5BA263E9777905818A2A93C8191E7D6E8AE7" 19 "ciphertext": "A8F9BC1612C68B3FF6E6F4FBE30E71E4769C8B80A32CB8958CD5D17D6B254DA1" 25 "ciphertext": "28C9F404C4B810F4CBCCB35CFB87F8263F5786E2D80ED326CBC7F0E71A99F43BFB988B9B7A02DD21"
|
rsa_oaep.json | 9 // ciphertext / plaintext - hex encoded 16 "ciphertext": "443FA1354F1DBC5C007A019CACCF18A3E6F986D7513D787F13DED463239F1833D6E33BFA8AF034C198B0D903F202F543FEF38FAF54018EB7794B4FE638CA4D87C564B845C0695D7E70C5D4464BEFF05225E747A6CA096A5E5E634002836D3CCE35713F082B20DCE7BB51324E4C89E202E3568E9F403ED864DE751BBE63E09680", 24 "ciphertext": "4EBEBCA7297864FDEA44B3BF0E4D5AC26A8478E63642CED06182597DF247EC9883E72DFDC4507EE5058C52F6B929FBC34CE1FCF7C4A914D5B0C5C94638BDB0C70618E3F4FE79D291585DFD3197C4C16B57213337D12E59FC7A38617A1BE3DD2B09DA518E568712D2E6523F079C16EFCE540CAA829C5E39D62D64902A4E9D0BB3", 32 "ciphertext": "67B83119BA513947000F3D7F144408FCBD6B22F93C01671C1E40607972BB991716EAA79B96FF8DEF95D8E673697E279096D035BA9ED79B9FCAC933A26FB003941CC8E8749511CEDFFACA653769AB5209E414B80D30A0DC44BE72E49A7FE732819C0DA4142FA0810FFF19E56EFB14EAA5649398E4C7D920B254CAE54F8019B25A", 42 "ciphertext": "A27427C7CB3CD5B7D3C432B3F4BE98577B1FFBF302EDEFF0B219CABAB3E42DF7E8E24F9A89B387D314B199219F91B7F2CDE8E8D6F461A9495C3B5A398E0F670919EF62CCFF96CCF0FCAF178E5D898C332AAD342F4C42B3209B10CE04B0D004A3ED2514A707D617A321206C225084C1446BF17208C6D278B0EA3F5968D1D44590", 50 "ciphertext": "333777A27C14C6186D2E90024507D7BD01D2A23FD462E9DBA6E9E96759A7025F29ABAA40DF6B3355648AE8FD90CD08D9D92529CAD337A6BED806D19B998E472EC0704205A6B83BDB4D4F5DB03FFE8BC68B44CA7F723A032161BD5B6D4517D58FAD8F1859676BC15A3BE9D20D78B11D73F79B23372CF4793F6301F612E820D67A", 58 "ciphertext": "686D4B27EBD14F4745FB947459DE0D349E53C115F466245268E5C6B8C48FFFDAFB9C7737360D850A6865883ADD516E4AFE71AACE2A73083A4D991293D59199639CF27F6DC0799F785653C3B1E4213EC277A6FA121F6CD2F81E29F1A35A4604B473983CFEDACB00AA9786E92999DC9FA9AFDBDBB3F0EB3F49B301C5BFE14974BE", 68 "ciphertext": "5E35C080E4A0EBBB5AC8EE44888A6DB6B8C4D05A6427BE0ECBF245A23BCFC4A4A7D9E5466123511399F5D01A3CF910DD6FEBCA969B23C753A0574163D847E70E7EFBFBBF6CC01545560D620F00CFA33AE318AF6090B76E4ADC5FE1686165786F8B7E559156E8AF690D6EF050133AB5620FAF91B17CF52FED0B57FAC0924F2CC4",
|
/external/chromium_org/net/quic/crypto/ |
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,
|
aead_base_decrypter_nss.cc | 52 StringPiece ciphertext, 55 if (ciphertext.length() < auth_tag_size_ || 60 // the ciphertext (NSS bug 63 // |ciphertext| on entry. 64 size_t plaintext_size = ciphertext.length() - auth_tag_size_; 104 output, &output_len, ciphertext.length(), 105 reinterpret_cast<const unsigned char*>(ciphertext.data()), 106 ciphertext.length()) != SECSuccess) { 121 StringPiece ciphertext) { 122 if (ciphertext.length() < auth_tag_size_) [all...] |
/external/chromium_org/content/public/browser/ |
cookie_crypto_delegate.h | 15 std::string* ciphertext) = 0; 16 virtual bool DecryptString(const std::string& ciphertext,
|
/external/chromium_org/sync/util/ |
encryptor.h | 16 std::string* ciphertext) = 0; 18 virtual bool DecryptString(const std::string& ciphertext,
|