/external/chromium_org/chrome/browser/extensions/api/networking_private/ |
H A D | crypto_verify_impl.cc | 73 std::vector<uint8> ciphertext; local 75 public_key_data, data, &ciphertext)) { 80 base::Base64Encode(std::string(ciphertext.begin(), ciphertext.end()),
|
H A D | networking_private_credentials_getter_mac.cc | 60 std::vector<uint8> ciphertext; local 62 public_key_data, key_data, &ciphertext)) { 68 base::Base64Encode(std::string(ciphertext.begin(), ciphertext.end()),
|
H A D | networking_private_credentials_getter_win.cc | 81 std::vector<uint8> ciphertext; local 83 public_key_, key_data, &ciphertext)) { 89 base::Base64Encode(std::string(ciphertext.begin(), ciphertext.end()),
|
/external/chromium_org/chrome/browser/net/ |
H A D | cookie_store_util.cc | 133 std::string* ciphertext) OVERRIDE; 134 virtual bool DecryptString(const std::string& ciphertext, 139 std::string* ciphertext) { 140 return OSCrypt::EncryptString(plaintext, ciphertext); 143 bool CookieOSCryptoDelegate::DecryptString(const std::string& ciphertext, argument 145 return OSCrypt::DecryptString(ciphertext, plaintext); 138 EncryptString(const std::string& plaintext, std::string* ciphertext) argument
|
/external/chromium_org/chromeos/network/onc/ |
H A D | onc_utils.cc | 70 std::string ciphertext; local 72 if (!root.GetString(encrypted::kCiphertext, &ciphertext) || 123 if (!base::Base64Decode(ciphertext, &ciphertext)) { 134 !hmac_verifier.Verify(ciphertext, hmac)) { 146 if (!decryptor.Decrypt(ciphertext, &plaintext)) {
|
/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/os_crypt/ |
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_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_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/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.h | 19 std::string* ciphertext) OVERRIDE; 21 virtual bool DecryptString(const std::string& ciphertext,
|
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));
|
/external/chromium_org/content/browser/net/ |
H A D | sqlite_persistent_cookie_store_unittest.cc | 44 std::string* ciphertext) OVERRIDE; 45 virtual bool DecryptString(const std::string& ciphertext, 61 std::string* ciphertext) { 62 return encryptor_.Encrypt(plaintext, ciphertext); 65 bool CookieCryptor::DecryptString(const std::string& ciphertext, argument 67 return encryptor_.Decrypt(ciphertext, plaintext); 60 EncryptString(const std::string& plaintext, std::string* ciphertext) argument
|
/external/chromium_org/content/child/webcrypto/test/ |
H A D | rsa_oaep_unittest.cc | 207 std::vector<uint8_t> ciphertext = GetBytesFromHexString(test, "ciphertext"); local 230 CryptoData(ciphertext), 285 std::vector<uint8_t> ciphertext; local 289 op_algorithm, public_key, CryptoData(large_message), &ciphertext)); 293 ciphertext.clear(); 298 op_algorithm, public_key, CryptoData(large_message), &ciphertext)); 302 ciphertext.clear(); 307 op_algorithm, public_key, CryptoData(large_message), &ciphertext)); 341 std::vector<uint8_t> ciphertext; local [all...] |
/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/crypto/ |
H A D | encryptor.cc | 87 void* ciphertext) const { 91 uint8* ciphertext_ptr = reinterpret_cast<uint8*>(ciphertext);
|
H A D | encryptor.h | 66 // Encrypts |plaintext| into |ciphertext|. |plaintext| may only be empty if 68 bool Encrypt(const base::StringPiece& plaintext, std::string* ciphertext); 70 // Decrypts |ciphertext| into |plaintext|. |ciphertext| must not be empty. 74 // tampered ciphertext or a wrong decryption key. But successful decryption 76 // must either authenticate the ciphertext before decrypting it, or take 79 bool Decrypt(const base::StringPiece& ciphertext, std::string* plaintext); 107 // |ciphertext|. |ciphertext| must have at least |plaintext_len| bytes. 111 void* ciphertext) cons [all...] |
H A D | encryptor_nss.cc | 75 std::string* ciphertext) { 85 CryptCTR(context.get(), plaintext, ciphertext) : 86 Crypt(context.get(), plaintext, ciphertext); 89 bool Encryptor::Decrypt(const base::StringPiece& ciphertext, argument 91 CHECK(!ciphertext.empty()); 99 return CryptCTR(context.get(), ciphertext, plaintext); 101 if (ciphertext.size() % AES_BLOCK_SIZE != 0) { 109 return Crypt(context.get(), ciphertext, plaintext); 74 Encrypt(const base::StringPiece& plaintext, std::string* ciphertext) argument
|
H A D | encryptor_openssl.cc | 74 std::string* ciphertext) { 77 CryptCTR(true, plaintext, ciphertext) : 78 Crypt(true, plaintext, ciphertext); 81 bool Encryptor::Decrypt(const base::StringPiece& ciphertext, argument 83 CHECK(!ciphertext.empty()); 85 CryptCTR(false, ciphertext, plaintext) : 86 Crypt(false, ciphertext, plaintext); 73 Encrypt(const base::StringPiece& plaintext, std::string* ciphertext) argument
|
H A D | encryptor_unittest.cc | 27 std::string ciphertext; local 28 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); 30 EXPECT_LT(0U, ciphertext.size()); 33 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decrypted)); 71 std::string ciphertext; local 72 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); 81 ASSERT_EQ(arraysize(expected_ciphertext), ciphertext.size()); 82 for (size_t i = 0; i < ciphertext.size(); ++i) { 84 static_cast<unsigned char>(ciphertext[i])); 98 EXPECT_FALSE(decryptor.Decrypt(ciphertext, 183 TestAESCTREncrypt( const unsigned char* key, size_t key_size, const unsigned char* init_counter, size_t init_counter_size, const unsigned char* plaintext, size_t plaintext_size, const unsigned char* ciphertext, size_t ciphertext_size) argument 215 TestAESCTRMultipleDecrypt( const unsigned char* key, size_t key_size, const unsigned char* init_counter, size_t init_counter_size, const unsigned char* plaintext, size_t plaintext_size, const unsigned char* ciphertext, size_t ciphertext_size) argument 295 std::string ciphertext; local 419 std::string ciphertext; local 449 std::string ciphertext; local 501 std::string ciphertext; local [all...] |
H A D | ghash_unittest.cc | 54 const uint8* ciphertext; member in struct:crypto::__anon7939::TestCase 116 hash.UpdateCiphertext(test.ciphertext, test.ciphertext_length); 137 hash.UpdateCiphertext(test.ciphertext + i, n);
|
/external/chromium_org/google_apis/gcm/base/ |
H A D | encryptor.h | 17 std::string* ciphertext) = 0; 19 virtual bool DecryptString(const std::string& ciphertext,
|
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
|