Searched refs:ciphertext (Results 1 - 25 of 82) sorted by path

1234

/external/chromium_org/chrome/browser/extensions/api/networking_private/
H A Dcrypto_verify_impl.cc73 std::vector<uint8> ciphertext; local
75 public_key_data, data, &ciphertext)) {
80 base::Base64Encode(std::string(ciphertext.begin(), ciphertext.end()),
H A Dnetworking_private_credentials_getter_mac.cc60 std::vector<uint8> ciphertext; local
62 public_key_data, key_data, &ciphertext)) {
68 base::Base64Encode(std::string(ciphertext.begin(), ciphertext.end()),
H A Dnetworking_private_credentials_getter_win.cc81 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 Dcookie_store_util.cc133 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 Donc_utils.cc70 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 Dsystem_encryptor.cc14 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 Dsystem_encryptor.h19 std::string* ciphertext) OVERRIDE;
21 virtual bool DecryptString(const std::string& ciphertext,
/external/chromium_org/components/os_crypt/
H A Dos_crypt.h20 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 Dos_crypt_posix.cc58 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 Dos_crypt_unittest.cc35 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 Dos_crypt_win.cc15 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 Dsystem_encryptor.cc14 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 Dsystem_encryptor.h19 std::string* ciphertext) OVERRIDE;
21 virtual bool DecryptString(const std::string& ciphertext,
H A Dsystem_encryptor_unittest.cc27 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 Dsqlite_persistent_cookie_store_unittest.cc44 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 Drsa_oaep_unittest.cc207 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 Dcookie_crypto_delegate.h15 std::string* ciphertext) = 0;
16 virtual bool DecryptString(const std::string& ciphertext,
/external/chromium_org/crypto/
H A Dencryptor.cc87 void* ciphertext) const {
91 uint8* ciphertext_ptr = reinterpret_cast<uint8*>(ciphertext);
H A Dencryptor.h66 // 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 Dencryptor_nss.cc75 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 Dencryptor_openssl.cc74 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 Dencryptor_unittest.cc27 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 Dghash_unittest.cc54 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 Dencryptor.h17 std::string* ciphertext) = 0;
19 virtual bool DecryptString(const std::string& ciphertext,
H A Dfake_encryptor.cc14 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

Completed in 1672 milliseconds

1234