Home
last modified time | relevance | path

Searched refs:plaintext (Results 1 – 25 of 127) sorted by relevance

123456

/external/chromium_org/components/os_crypt/
Dos_crypt_unittest.cc31 base::string16 plaintext; in TEST_F() local
38 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext)); in TEST_F()
40 EXPECT_EQ(plaintext, result); in TEST_F()
43 plaintext = base::ASCIIToUTF16("hello"); in TEST_F()
44 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext)); in TEST_F()
46 EXPECT_EQ(plaintext, result); in TEST_F()
50 plaintext = base::ASCIIToUTF16("1234567890123456"); in TEST_F()
51 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext)); in TEST_F()
53 EXPECT_EQ(plaintext, result); in TEST_F()
62 plaintext = wchars; in TEST_F()
[all …]
Dos_crypt_posix.cc57 bool OSCrypt::EncryptString16(const base::string16& plaintext, in EncryptString16() argument
59 return EncryptString(base::UTF16ToUTF8(plaintext), ciphertext); in EncryptString16()
63 base::string16* plaintext) { in DecryptString16() argument
68 *plaintext = base::UTF8ToUTF16(utf8); in DecryptString16()
72 bool OSCrypt::EncryptString(const std::string& plaintext, in EncryptString() argument
79 if (plaintext.empty()) { in EncryptString()
93 if (!encryptor.Encrypt(plaintext, ciphertext)) in EncryptString()
102 std::string* plaintext) { in DecryptString() argument
109 *plaintext = std::string(); in DecryptString()
119 *plaintext = ciphertext; in DecryptString()
[all …]
Dos_crypt_win.cc14 bool OSCrypt::EncryptString16(const base::string16& plaintext, in EncryptString16() argument
16 return EncryptString(base::UTF16ToUTF8(plaintext), ciphertext); in EncryptString16()
20 base::string16* plaintext) { in DecryptString16() argument
25 *plaintext = base::UTF8ToUTF16(utf8); in DecryptString16()
29 bool OSCrypt::EncryptString(const std::string& plaintext, in EncryptString() argument
33 reinterpret_cast<const BYTE*>(plaintext.data())); in EncryptString()
34 input.cbData = static_cast<DWORD>(plaintext.length()); in EncryptString()
51 std::string* plaintext) { in DecryptString() argument
63 plaintext->assign(reinterpret_cast<char*>(output.pbData), output.cbData); in DecryptString()
Dos_crypt.h19 static bool EncryptString16(const base::string16& plaintext,
26 base::string16* plaintext);
29 static bool EncryptString(const std::string& plaintext,
36 std::string* plaintext);
Dos_crypt_mac.mm91 bool OSCrypt::EncryptString16(const base::string16& plaintext,
93 return EncryptString(base::UTF16ToUTF8(plaintext), ciphertext);
97 base::string16* plaintext) {
102 *plaintext = base::UTF8ToUTF16(utf8);
106 bool OSCrypt::EncryptString(const std::string& plaintext,
108 if (plaintext.empty()) {
122 if (!encryptor.Encrypt(plaintext, ciphertext))
131 std::string* plaintext) {
133 *plaintext = std::string();
143 *plaintext = ciphertext;
[all …]
/external/chromium_org/sync/util/
Dnigori_unittest.cc55 std::string plaintext("value"); in TEST() local
58 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted1)); in TEST()
61 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted2)); in TEST()
74 std::string plaintext; in TEST() local
75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext)); in TEST()
78 EXPECT_EQ(expected, plaintext); in TEST()
85 std::string plaintext("value"); in TEST() local
88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); in TEST()
93 EXPECT_EQ(plaintext, decrypted); in TEST()
100 std::string plaintext("test"); in TEST() local
[all …]
/external/chromium_org/net/quic/crypto/
Dnull_decrypter.cc34 StringPiece plaintext = reader.ReadRemainingPayload(); in Decrypt() local
38 plaintext.AppendToString(&buffer); in Decrypt()
42 memcpy(output, plaintext.data(), plaintext.length()); in Decrypt()
43 *output_length = plaintext.length(); in Decrypt()
59 StringPiece plaintext = reader.ReadRemainingPayload(); in DecryptPacket() local
63 plaintext.AppendToString(&buffer); in DecryptPacket()
68 return new QuicData(plaintext.data(), plaintext.length()); in DecryptPacket()
Dnull_encrypter.cc27 StringPiece plaintext, in Encrypt() argument
30 plaintext.AppendToString(&buffer); in Encrypt()
33 memcpy(output + GetHashLength(), plaintext.data(), plaintext.size()); in Encrypt()
40 StringPiece plaintext) { in EncryptPacket() argument
41 const size_t len = plaintext.size() + GetHashLength(); in EncryptPacket()
43 Encrypt(StringPiece(), associated_data, plaintext, buffer); in EncryptPacket()
Dsource_address_token.cc41 bool SourceAddressToken::ParseFromArray(const char* plaintext, in ParseFromArray() argument
46 size_t ip_len = plaintext[0]; in ParseFromArray()
50 size_t time_len = plaintext[1 + ip_len]; in ParseFromArray()
55 string time_str(&plaintext[1 + ip_len + 1], time_len); in ParseFromArray()
61 ip_.assign(&plaintext[1], ip_len); in ParseFromArray()
Daead_base_encrypter_openssl.cc78 StringPiece plaintext, in Encrypt() argument
89 plaintext.size() + auth_tag_size_, in Encrypt()
92 reinterpret_cast<const uint8_t*>(plaintext.data()), in Encrypt()
93 plaintext.size(), in Encrypt()
106 StringPiece plaintext) { in EncryptPacket() argument
107 size_t ciphertext_size = GetCiphertextSize(plaintext.length()); in EncryptPacket()
118 associated_data, plaintext, in EncryptPacket()
Daead_base_encrypter_nss.cc52 StringPiece plaintext, in Encrypt() argument
58 size_t ciphertext_size = GetCiphertextSize(plaintext.length()); in Encrypt()
99 reinterpret_cast<const unsigned char*>(plaintext.data()), in Encrypt()
100 plaintext.size()) != SECSuccess) { in Encrypt()
116 StringPiece plaintext) { in EncryptPacket() argument
117 size_t ciphertext_size = GetCiphertextSize(plaintext.length()); in EncryptPacket()
128 associated_data, plaintext, in EncryptPacket()
/external/chromium_org/third_party/tlslite/tlslite/utils/
Dopenssl_tripledes.py27 def encrypt(self, plaintext): argument
28 TripleDES.encrypt(self, plaintext)
30 ciphertext = m2.cipher_update(context, plaintext)
40 plaintext = m2.cipher_update(context, ciphertext+('\0'*16))
44 plaintext = plaintext[:len(ciphertext)]
47 return bytearray(plaintext)
Dopenssl_aes.py32 def encrypt(self, plaintext): argument
33 AES.encrypt(self, plaintext)
35 ciphertext = m2.cipher_update(context, plaintext)
45 plaintext = m2.cipher_update(context, ciphertext+('\0'*16))
49 plaintext = plaintext[:len(ciphertext)]
52 return bytearray(plaintext)
Dpycrypto_rc4.py22 def encrypt(self, plaintext): argument
23 plaintext = bytes(plaintext)
24 return bytearray(self.context.encrypt(plaintext))
/external/chromium_org/crypto/
Dencryptor_unittest.cc26 std::string plaintext("this is the plaintext"); in TEST() local
28 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST()
35 EXPECT_EQ(plaintext, decrypted); in TEST()
70 std::string plaintext("this is the plaintext"); in TEST() local
72 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST()
186 const unsigned char* plaintext, size_t plaintext_size, in TestAESCTREncrypt() argument
199 reinterpret_cast<const char*>(plaintext), plaintext_size); in TestAESCTREncrypt()
218 const unsigned char* plaintext, size_t plaintext_size, in TestAESCTRMultipleDecrypt() argument
244 EXPECT_EQ(0, memcmp(decrypted.data(), plaintext + offset, len)); in TestAESCTRMultipleDecrypt()
294 std::string plaintext("normal plaintext of random length"); in TEST() local
[all …]
Dencryptor_nss.cc74 bool Encryptor::Encrypt(const base::StringPiece& plaintext, in Encrypt() argument
76 CHECK(!plaintext.empty() || (mode_ == CBC)); in Encrypt()
85 CryptCTR(context.get(), plaintext, ciphertext) : in Encrypt()
86 Crypt(context.get(), plaintext, ciphertext); in Encrypt()
90 std::string* plaintext) { in Decrypt() argument
99 return CryptCTR(context.get(), ciphertext, plaintext); in Decrypt()
105 plaintext->clear(); in Decrypt()
109 return Crypt(context.get(), ciphertext, plaintext); in Decrypt()
Dencryptor_openssl.cc73 bool Encryptor::Encrypt(const base::StringPiece& plaintext, in Encrypt() argument
75 CHECK(!plaintext.empty() || (mode_ == CBC)); in Encrypt()
77 CryptCTR(true, plaintext, ciphertext) : in Encrypt()
78 Crypt(true, plaintext, ciphertext); in Encrypt()
82 std::string* plaintext) { in Decrypt() argument
85 CryptCTR(false, ciphertext, plaintext) : in Decrypt()
86 Crypt(false, ciphertext, plaintext); in Decrypt()
/external/openssl/crypto/evp/
Devp_test.c138 const unsigned char *plaintext,int pn, in test1() argument
151 hexdump(stdout,"Plaintext",plaintext,pn); in test1()
171 if(!EVP_EncryptUpdate(&ctx,out,&outl,plaintext,pn)) in test1()
230 if(memcmp(out,plaintext,pn)) in test1()
234 hexdump(stderr,"Expected",plaintext,pn); in test1()
246 const unsigned char *plaintext,int pn, in test_cipher() argument
256 test1(c,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec); in test_cipher()
262 const unsigned char *plaintext,int pn, in test_digest() argument
275 hexdump(stdout,"Plaintext",plaintext,pn); in test_digest()
285 if(!EVP_DigestUpdate(&ctx,plaintext,pn)) in test_digest()
[all …]
/external/chromium_org/third_party/libsrtp/srtp/crypto/cipher/
Daes.c2002 aes_encrypt(v128_t *plaintext, const aes_expanded_key_t *exp_key) { in aes_encrypt() argument
2005 v128_xor_eq(plaintext, &exp_key->round[0]); in aes_encrypt()
2008 aes_round(plaintext, &exp_key->round[1]); in aes_encrypt()
2009 aes_round(plaintext, &exp_key->round[2]); in aes_encrypt()
2010 aes_round(plaintext, &exp_key->round[3]); in aes_encrypt()
2011 aes_round(plaintext, &exp_key->round[4]); in aes_encrypt()
2012 aes_round(plaintext, &exp_key->round[5]); in aes_encrypt()
2013 aes_round(plaintext, &exp_key->round[6]); in aes_encrypt()
2014 aes_round(plaintext, &exp_key->round[7]); in aes_encrypt()
2015 aes_round(plaintext, &exp_key->round[8]); in aes_encrypt()
[all …]
/external/chromium_org/third_party/boringssl/src/crypto/modes/
Dgcm_test.c61 const char *plaintext; member
316 uint8_t *key = NULL, *plaintext = NULL, *additional_data = NULL, in run_test_case() local
323 !decode_hex(&plaintext, &plaintext_len, test->plaintext, test_num, in run_test_case()
362 if (plaintext) { in run_test_case()
363 CRYPTO_gcm128_encrypt(&ctx, plaintext, out, plaintext_len); in run_test_case()
385 if (plaintext && memcmp(out, plaintext, plaintext_len)) { in run_test_case()
396 if (plaintext) { in run_test_case()
397 OPENSSL_free(plaintext); in run_test_case()
/external/chromium_org/sync/test/
Dfake_encryptor.cc13 bool FakeEncryptor::EncryptString(const std::string& plaintext, in EncryptString() argument
15 base::Base64Encode(plaintext, ciphertext); in EncryptString()
20 std::string* plaintext) { in DecryptString() argument
21 return base::Base64Decode(ciphertext, plaintext); in DecryptString()
/external/chromium_org/components/gcm_driver/
Dsystem_encryptor.cc13 bool SystemEncryptor::EncryptString(const std::string& plaintext, in EncryptString() argument
15 return ::OSCrypt::EncryptString(plaintext, ciphertext); in EncryptString()
19 std::string* plaintext) { in DecryptString() argument
20 return ::OSCrypt::DecryptString(ciphertext, plaintext); in DecryptString()
/external/chromium_org/components/sync_driver/
Dsystem_encryptor.cc13 bool SystemEncryptor::EncryptString(const std::string& plaintext, in EncryptString() argument
15 return ::OSCrypt::EncryptString(plaintext, ciphertext); in EncryptString()
19 std::string* plaintext) { in DecryptString() argument
20 return ::OSCrypt::DecryptString(ciphertext, plaintext); in DecryptString()
/external/chromium_org/google_apis/gcm/base/
Dfake_encryptor.cc13 bool FakeEncryptor::EncryptString(const std::string& plaintext, in EncryptString() argument
15 base::Base64Encode(plaintext, ciphertext); in EncryptString()
20 std::string* plaintext) { in DecryptString() argument
21 return base::Base64Decode(ciphertext, plaintext); in DecryptString()
/external/chromium_org/third_party/tcmalloc/vendor/doc/
Dpageheap.dot17 sep1 [shape=plaintext, label="..."]
18 sep2 [shape=plaintext, label="..."]
19 sep3 [shape=plaintext, label="..."]
20 sep4 [shape=plaintext, label="..."]
21 sep5 [shape=plaintext, label="..."]

123456