HomeSort by relevance Sort by last modified time
    Searched refs:ciphertext (Results 1 - 25 of 84) sorted by null

1 2 3 4

  /external/chromium_org/chrome/browser/sync/glue/
chrome_encryptor.cc 14 std::string* ciphertext) {
15 return ::Encryptor::EncryptString(plaintext, ciphertext);
18 bool ChromeEncryptor::DecryptString(const std::string& ciphertext,
20 return ::Encryptor::DecryptString(ciphertext, plaintext);
chrome_encryptor_unittest.cc 26 std::string ciphertext; local
27 EXPECT_TRUE(encryptor_.EncryptString(kPlaintext, &ciphertext));
28 EXPECT_NE(kPlaintext, ciphertext);
30 EXPECT_TRUE(encryptor_.DecryptString(ciphertext, &plaintext));
chrome_encryptor.h 19 std::string* ciphertext) OVERRIDE;
21 virtual bool DecryptString(const std::string& ciphertext,
  /external/chromium_org/sync/test/
fake_encryptor.cc 14 std::string* ciphertext) {
15 return base::Base64Encode(plaintext, ciphertext);
18 bool FakeEncryptor::DecryptString(const std::string& ciphertext,
20 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/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/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/chrome/browser/password_manager/
encryptor_unittest.cc 34 std::string ciphertext; local
37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
38 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
44 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
51 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
64 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
65 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
67 EXPECT_TRUE(Encryptor::DecryptString(ciphertext, &utf8_result))
80 std::string ciphertext; local
103 std::string ciphertext; local
130 std::string ciphertext; local
    [all...]
encryptor.h 22 std::string* ciphertext);
28 static bool DecryptString16(const std::string& ciphertext,
33 std::string* ciphertext);
39 static bool DecryptString(const std::string& ciphertext,
encryptor_linux.cc 58 std::string* ciphertext) {
59 return EncryptString(UTF16ToUTF8(plaintext), ciphertext);
62 bool Encryptor::DecryptString16(const std::string& ciphertext,
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 Encryptor::DecryptString(const std::string& ciphertext,
108 if (ciphertext.empty())
    [all...]
encryptor_win.cc 14 std::string* ciphertext) {
15 return EncryptString(UTF16ToUTF8(plaintext), ciphertext);
18 bool Encryptor::DecryptString16(const std::string& ciphertext,
21 if (!DecryptString(ciphertext, &utf8))
29 std::string* ciphertext) {
42 ciphertext->assign(reinterpret_cast<std::string::value_type*>(output.pbData),
49 bool Encryptor::DecryptString(const std::string& ciphertext,
53 reinterpret_cast<const BYTE*>(ciphertext.data()));
54 input.cbData = static_cast<DWORD>(ciphertext.length());
  /external/chromium_org/components/webdata/encryptor/
encryptor_unittest.cc 34 std::string ciphertext; local
37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
38 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
44 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
51 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
64 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
65 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
67 EXPECT_TRUE(Encryptor::DecryptString(ciphertext, &utf8_result))
80 std::string ciphertext; local
103 std::string ciphertext; local
130 std::string ciphertext; local
    [all...]
encryptor.h 21 std::string* ciphertext);
27 static bool DecryptString16(const std::string& ciphertext,
32 std::string* ciphertext);
38 static bool DecryptString(const std::string& ciphertext,
encryptor_posix.cc 58 std::string* ciphertext) {
59 return EncryptString(UTF16ToUTF8(plaintext), ciphertext);
62 bool Encryptor::DecryptString16(const std::string& ciphertext,
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 Encryptor::DecryptString(const std::string& ciphertext,
108 if (ciphertext.empty())
    [all...]
encryptor_win.cc 14 std::string* ciphertext) {
15 return EncryptString(UTF16ToUTF8(plaintext), ciphertext);
18 bool Encryptor::DecryptString16(const std::string& ciphertext,
21 if (!DecryptString(ciphertext, &utf8))
29 std::string* ciphertext) {
42 ciphertext->assign(reinterpret_cast<std::string::value_type*>(output.pbData),
49 bool Encryptor::DecryptString(const std::string& ciphertext,
53 reinterpret_cast<const BYTE*>(ciphertext.data()));
54 input.cbData = static_cast<DWORD>(ciphertext.length());
  /external/chromium_org/sync/util/
encryptor.h 16 std::string* ciphertext) = 0;
18 virtual bool DecryptString(const std::string& ciphertext,
  /external/chromium_org/third_party/tlslite/tlslite/utils/
OpenSSL_AES.py 32 ciphertext = m2.cipher_update(context, plaintext)
34 self.IV = ciphertext[-self.block_size:]
35 return ciphertext
37 def decrypt(self, ciphertext):
38 AES.decrypt(self, ciphertext)
42 plaintext = m2.cipher_update(context, ciphertext+('\0'*16))
46 plaintext = plaintext[:len(ciphertext)]
48 self.IV = ciphertext[-self.block_size:]
OpenSSL_TripleDES.py 27 ciphertext = m2.cipher_update(context, plaintext)
29 self.IV = ciphertext[-self.block_size:]
30 return ciphertext
32 def decrypt(self, ciphertext):
33 TripleDES.decrypt(self, ciphertext)
37 plaintext = m2.cipher_update(context, ciphertext+('\0'*16))
41 plaintext = plaintext[:len(ciphertext)]
43 self.IV = ciphertext[-self.block_size:]
OpenSSL_RC4.py 24 def decrypt(self, ciphertext):
25 return self.encrypt(ciphertext)
PyCrypto_RC4.py 21 def decrypt(self, ciphertext):
22 return self.context.decrypt(ciphertext
  /external/chromium_org/net/quic/crypto/
crypto_secret_boxer.cc 56 bool CryptoSecretBoxer::Unbox(StringPiece ciphertext,
59 if (ciphertext.size() < kBoxNonceSize + crypto::kSHA256Length) {
64 ciphertext.size() - kBoxNonceSize - crypto::kSHA256Length;
68 // Copy plaintext from ciphertext.
70 memcpy(data, ciphertext.data() + kBoxNonceSize, plaintext_len);
76 sha256->Update(ciphertext.data(), ciphertext.size() - crypto::kSHA256Length);
81 if (0 != memcmp(ciphertext.data() + ciphertext.size() - crypto::kSHA256Length,
null_decrypter.cc 22 StringPiece ciphertext,
25 QuicDataReader reader(ciphertext.data(), ciphertext.length());
48 StringPiece ciphertext) {
51 QuicDataReader reader(ciphertext.data(), ciphertext.length());
aes_128_gcm_12_decrypter_openssl.cc 64 StringPiece ciphertext,
67 if (ciphertext.length() < kAuthTagSize ||
71 const size_t plaintext_size = ciphertext.length() - kAuthTagSize;
83 const_cast<char*>(ciphertext.data()) + plaintext_size) == 0) {
104 reinterpret_cast<const uint8*>(ciphertext.data()),
123 StringPiece ciphertext) {
124 if (ciphertext.length() < kAuthTagSize) {
128 scoped_ptr<char[]> plaintext(new char[ciphertext.length()]);
135 associated_data, ciphertext,
null_decrypter.h 26 base::StringPiece ciphertext,
31 base::StringPiece ciphertext) OVERRIDE;
quic_decrypter.h 43 // Decrypt authenticates |associated_data| and |ciphertext| and then decrypts
44 // |ciphertext| into |output|, using |nonce|. |nonce| must be 8 bytes longer
46 // encrypter). |output| must be as long as |ciphertext| on entry and, on
51 base::StringPiece ciphertext,
56 // |ciphertext| or NULL if there is an error. |sequence_number| is
63 base::StringPiece ciphertext) = 0;

Completed in 329 milliseconds

1 2 3 4