/external/chromium_org/chrome/browser/sync/glue/ |
chrome_encryptor.cc | 13 bool ChromeEncryptor::EncryptString(const std::string& plaintext, 15 return ::Encryptor::EncryptString(plaintext, ciphertext); 19 std::string* plaintext) { 20 return ::Encryptor::DecryptString(ciphertext, plaintext);
|
chrome_encryptor_unittest.cc | 29 std::string plaintext; local 30 EXPECT_TRUE(encryptor_.DecryptString(ciphertext, &plaintext)); 31 EXPECT_EQ(kPlaintext, plaintext);
|
chrome_encryptor.h | 18 virtual bool EncryptString(const std::string& plaintext, 22 std::string* plaintext) OVERRIDE;
|
/external/chromium_org/sync/test/ |
fake_encryptor.cc | 13 bool FakeEncryptor::EncryptString(const std::string& plaintext, 15 return base::Base64Encode(plaintext, ciphertext); 19 std::string* plaintext) { 20 return base::Base64Decode(ciphertext, plaintext);
|
fake_encryptor.h | 13 // Encryptor which simply base64-encodes the plaintext to get the 19 virtual bool EncryptString(const std::string& plaintext, 23 std::string* plaintext) OVERRIDE;
|
/external/chromium/chrome/browser/password_manager/ |
encryptor_unittest.cc | 30 string16 plaintext; local 37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 39 EXPECT_EQ(plaintext, result); 42 plaintext = ASCIIToUTF16("hello"); 43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 45 EXPECT_EQ(plaintext, result); 49 plaintext = ASCIIToUTF16("1234567890123456"); 50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 52 EXPECT_EQ(plaintext, result); 61 plaintext = wchars 78 std::string plaintext; local 101 std::string plaintext; local 128 std::string plaintext; local [all...] |
encryptor.h | 21 static bool EncryptString16(const string16& plaintext, 29 string16* plaintext); 32 static bool EncryptString(const std::string& plaintext, 40 std::string* plaintext);
|
encryptor_win.cc | 13 bool Encryptor::EncryptString16(const string16& plaintext, 15 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 19 string16* plaintext) { 24 *plaintext = UTF8ToUTF16(utf8); 28 bool Encryptor::EncryptString(const std::string& plaintext, 32 reinterpret_cast<const BYTE*>(plaintext.data())); 33 input.cbData = static_cast<DWORD>(plaintext.length()); 50 std::string* plaintext) { 62 plaintext->assign(reinterpret_cast<char*>(output.pbData), output.cbData);
|
encryptor_linux.cc | 57 bool Encryptor::EncryptString16(const string16& plaintext, 59 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 63 string16* plaintext) { 68 *plaintext = UTF8ToUTF16(utf8); 72 bool Encryptor::EncryptString(const std::string& plaintext, 79 if (plaintext.empty()) { 93 if (!encryptor.Encrypt(plaintext, ciphertext)) 102 std::string* plaintext) { 109 *plaintext = std::string(); 119 *plaintext = ciphertext [all...] |
/external/chromium_org/components/webdata/encryptor/ |
encryptor_unittest.cc | 30 base::string16 plaintext; local 37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 39 EXPECT_EQ(plaintext, result); 42 plaintext = ASCIIToUTF16("hello"); 43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 45 EXPECT_EQ(plaintext, result); 49 plaintext = ASCIIToUTF16("1234567890123456"); 50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 52 EXPECT_EQ(plaintext, result); 61 plaintext = wchars 78 std::string plaintext; local 101 std::string plaintext; local 128 std::string plaintext; local [all...] |
encryptor.h | 20 static bool EncryptString16(const base::string16& plaintext, 28 base::string16* plaintext); 31 static bool EncryptString(const std::string& plaintext, 39 std::string* plaintext);
|
encryptor_posix.cc | 57 bool Encryptor::EncryptString16(const base::string16& plaintext, 59 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 63 base::string16* plaintext) { 68 *plaintext = UTF8ToUTF16(utf8); 72 bool Encryptor::EncryptString(const std::string& plaintext, 79 if (plaintext.empty()) { 93 if (!encryptor.Encrypt(plaintext, ciphertext)) 102 std::string* plaintext) { 109 *plaintext = std::string(); 119 *plaintext = ciphertext [all...] |
encryptor_win.cc | 13 bool Encryptor::EncryptString16(const base::string16& plaintext, 15 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 19 base::string16* plaintext) { 24 *plaintext = UTF8ToUTF16(utf8); 28 bool Encryptor::EncryptString(const std::string& plaintext, 32 reinterpret_cast<const BYTE*>(plaintext.data())); 33 input.cbData = static_cast<DWORD>(plaintext.length()); 50 std::string* plaintext) { 62 plaintext->assign(reinterpret_cast<char*>(output.pbData), output.cbData);
|
/external/chromium_org/sync/util/ |
encryptor.h | 15 virtual bool EncryptString(const std::string& plaintext, 19 std::string* plaintext) = 0;
|
nigori_unittest.cc | 55 std::string plaintext("value"); 58 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted1)); 61 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted2)); 74 std::string plaintext; local 75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext)); 78 EXPECT_EQ(expected, plaintext); 85 std::string plaintext("value"); 88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); 93 EXPECT_EQ(plaintext, decrypted); 100 std::string plaintext("test") 152 std::string plaintext; local [all...] |
/external/chromium_org/net/quic/crypto/ |
null_decrypter.cc | 32 StringPiece plaintext = reader.ReadRemainingPayload(); local 36 plaintext.AppendToString(&buffer); 41 memcpy(output, plaintext.data(), plaintext.length()); 42 *output_length = plaintext.length(); 58 StringPiece plaintext = reader.ReadRemainingPayload(); local 62 plaintext.AppendToString(&buffer); 67 return new QuicData(plaintext.data(), plaintext.length());
|
null_encrypter.cc | 25 StringPiece plaintext, 28 plaintext.AppendToString(&buffer); 31 memcpy(output + sizeof(hash), plaintext.data(), plaintext.size()); 38 StringPiece plaintext) { 39 const size_t len = plaintext.size() + sizeof(uint128); 41 Encrypt(StringPiece(), associated_data, plaintext, buffer); local
|
crypto_secret_boxer.cc | 33 // plaintext. This is temporary solution for tests to pass. 34 string CryptoSecretBoxer::Box(QuicRandom* rand, StringPiece plaintext) const { 36 const size_t len = kBoxNonceSize + plaintext.size() + crypto::kSHA256Length; 42 memcpy(data + kBoxNonceSize, plaintext.data(), plaintext.size()); 44 // Compute sha256 for nonce + plaintext. 47 sha256->Update(data, kBoxNonceSize + plaintext.size()); 48 sha256->Finish(data + kBoxNonceSize + plaintext.size(), 55 // the plaintext. This is temporary solution for tests to pass. 68 // Copy plaintext from ciphertext [all...] |
source_address_token.cc | 27 bool SourceAddressToken::ParseFromArray(const char* plaintext, 29 string data(plaintext, plaintext_length);
|
/external/srtp/crypto/include/ |
aes.h | 67 aes_encrypt(v128_t *plaintext, const aes_expanded_key_t exp_key); 70 aes_decrypt(v128_t *plaintext, const aes_expanded_key_t exp_key);
|
/external/chromium/chrome/browser/sync/util/ |
nigori_unittest.cc | 55 std::string plaintext("value"); 58 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted1)); 61 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted2)); 74 std::string plaintext; local 75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext)); 78 EXPECT_EQ(expected, plaintext); 85 std::string plaintext("value"); 88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); 93 EXPECT_EQ(plaintext, decrypted); 100 std::string plaintext("test") 152 std::string plaintext; local [all...] |
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
OpenSSL_AES.py | 29 def encrypt(self, plaintext): 30 AES.encrypt(self, plaintext) 32 ciphertext = m2.cipher_update(context, plaintext) 42 plaintext = m2.cipher_update(context, ciphertext+('\0'*16)) 44 #If this bug is ever fixed, then plaintext will end up having a garbage 45 #plaintext block on the end. That's okay - the below code will discard it. 46 plaintext = plaintext[:len(ciphertext)] 49 return plaintext
|
OpenSSL_TripleDES.py | 24 def encrypt(self, plaintext): 25 TripleDES.encrypt(self, plaintext) 27 ciphertext = m2.cipher_update(context, plaintext) 37 plaintext = m2.cipher_update(context, ciphertext+('\0'*16)) 39 #If this bug is ever fixed, then plaintext will end up having a garbage 40 #plaintext block on the end. That's okay - the below code will ignore it. 41 plaintext = plaintext[:len(ciphertext)] 44 return plaintext
|
OpenSSL_RC4.py | 21 def encrypt(self, plaintext): 22 return m2.rc4_update(self.rc4, plaintext)
|
/external/google-diff-match-patch/ |
Android.mk | 5 LOCAL_SRC_FILES := name/fraser/neil/plaintext/diff_match_patch.java
|