/external/chromium_org/components/os_crypt/ |
D | os_crypt_unittest.cc | 31 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 …]
|
D | os_crypt_posix.cc | 57 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 …]
|
D | os_crypt_win.cc | 14 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()
|
D | os_crypt.h | 19 static bool EncryptString16(const base::string16& plaintext, 26 base::string16* plaintext); 29 static bool EncryptString(const std::string& plaintext, 36 std::string* plaintext);
|
D | os_crypt_mac.mm | 91 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/ |
D | nigori_unittest.cc | 55 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/ |
D | null_decrypter.cc | 34 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()
|
D | null_encrypter.cc | 27 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()
|
D | source_address_token.cc | 41 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()
|
D | aead_base_encrypter_openssl.cc | 78 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()
|
D | aead_base_encrypter_nss.cc | 52 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/ |
D | openssl_tripledes.py | 27 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)
|
D | openssl_aes.py | 32 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)
|
D | pycrypto_rc4.py | 22 def encrypt(self, plaintext): argument 23 plaintext = bytes(plaintext) 24 return bytearray(self.context.encrypt(plaintext))
|
/external/chromium_org/crypto/ |
D | encryptor_unittest.cc | 26 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 …]
|
D | encryptor_nss.cc | 74 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()
|
D | encryptor_openssl.cc | 73 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/ |
D | evp_test.c | 138 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/ |
D | aes.c | 2002 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/ |
D | gcm_test.c | 61 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/ |
D | fake_encryptor.cc | 13 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/ |
D | system_encryptor.cc | 13 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/ |
D | system_encryptor.cc | 13 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/ |
D | fake_encryptor.cc | 13 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/ |
D | pageheap.dot | 17 sep1 [shape=plaintext, label="..."] 18 sep2 [shape=plaintext, label="..."] 19 sep3 [shape=plaintext, label="..."] 20 sep4 [shape=plaintext, label="..."] 21 sep5 [shape=plaintext, label="..."]
|