/external/chromium/chrome/browser/password_manager/ |
D | encryptor_unittest.cc | 30 string16 plaintext; in TEST_F() local 37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); in TEST_F() 39 EXPECT_EQ(plaintext, result); in TEST_F() 42 plaintext = ASCIIToUTF16("hello"); in TEST_F() 43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); in TEST_F() 45 EXPECT_EQ(plaintext, result); in TEST_F() 49 plaintext = ASCIIToUTF16("1234567890123456"); in TEST_F() 50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); in TEST_F() 52 EXPECT_EQ(plaintext, result); in TEST_F() 61 plaintext = wchars; in TEST_F() [all …]
|
D | encryptor_linux.cc | 57 bool Encryptor::EncryptString16(const string16& plaintext, in EncryptString16() argument 59 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); in EncryptString16() 63 string16* plaintext) { in DecryptString16() argument 68 *plaintext = UTF8ToUTF16(utf8); in DecryptString16() 72 bool Encryptor::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 | encryptor_win.cc | 13 bool Encryptor::EncryptString16(const string16& plaintext, in EncryptString16() argument 15 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); in EncryptString16() 19 string16* plaintext) { in DecryptString16() argument 24 *plaintext = UTF8ToUTF16(utf8); in DecryptString16() 28 bool Encryptor::EncryptString(const std::string& plaintext, in EncryptString() argument 32 reinterpret_cast<const BYTE*>(plaintext.data())); in EncryptString() 33 input.cbData = static_cast<DWORD>(plaintext.length()); in EncryptString() 50 std::string* plaintext) { in DecryptString() argument 62 plaintext->assign(reinterpret_cast<char*>(output.pbData), output.cbData); in DecryptString()
|
D | encryptor_mac.mm | 70 bool Encryptor::EncryptString16(const string16& plaintext, 72 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 76 string16* plaintext) { 81 *plaintext = UTF8ToUTF16(utf8); 85 bool Encryptor::EncryptString(const std::string& plaintext, 87 if (plaintext.empty()) { 101 if (!encryptor.Encrypt(plaintext, ciphertext)) 110 std::string* plaintext) { 112 *plaintext = std::string(); 122 *plaintext = ciphertext; [all …]
|
D | encryptor.h | 21 static bool EncryptString16(const string16& plaintext, 29 string16* plaintext); 32 static bool EncryptString(const std::string& plaintext, 40 std::string* plaintext);
|
/external/chromium/chrome/browser/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 …]
|
D | cryptographer.cc | 67 std::string plaintext = DecryptToString(encrypted); in Decrypt() local 68 return message->ParseFromString(plaintext); in Decrypt() 79 std::string plaintext; in DecryptToString() local 80 if (!it->second->Decrypt(encrypted.blob(), &plaintext)) { in DecryptToString() 84 return plaintext; in DecryptToString() 158 std::string plaintext; in DecryptPendingKeys() local 159 if (!nigori.Decrypt(pending_keys_->blob(), &plaintext)) in DecryptPendingKeys() 163 if (!bag.ParseFromString(plaintext)) { in DecryptPendingKeys()
|
D | nigori.cc | 130 NigoriStream plaintext; in Permute() local 131 plaintext << type << name; in Permute() 139 if (!encryptor.Encrypt(plaintext.str(), &ciphertext)) in Permute() 241 std::string plaintext; in Decrypt() local
|
/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/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, decypted); in TEST() 100 std::string plaintext(reinterpret_cast<const char*>(raw_plaintext), in TEST() 103 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST() 111 EXPECT_EQ(plaintext, decypted); in TEST() 118 std::string plaintext = "Plain text with a g-clef U+1D11E \360\235\204\236"; in TEST() local 133 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST() 139 EXPECT_EQ(plaintext, decypted); in TEST() 146 std::string plaintext = "Small text"; in TEST() local [all …]
|
D | encryptor_nss.cc | 52 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { in Encrypt() argument 60 size_t ciphertext_len = plaintext.size() + AES_BLOCK_SIZE; in Encrypt() 69 const_cast<char*>(plaintext.data())), in Encrypt() 70 plaintext.size()); in Encrypt() 87 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { in Decrypt() argument 120 plaintext->assign(reinterpret_cast<char *>(&buffer[0]), in Decrypt()
|
D | encryptor_win.cc | 80 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { in Encrypt() argument 81 DWORD data_len = plaintext.size(); in Encrypt() 86 memcpy(&tmp[0], plaintext.data(), data_len); in Encrypt() 97 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { in Decrypt() argument 111 plaintext->assign(reinterpret_cast<char*>(&tmp[0]), data_len); in Decrypt()
|
D | encryptor_mac.cc | 68 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { in Encrypt() argument 69 return Crypt(kCCEncrypt, plaintext, ciphertext); in Encrypt() 72 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { in Decrypt() argument 73 return Crypt(kCCDecrypt, ciphertext, plaintext); in Decrypt()
|
D | encryptor_openssl.cc | 72 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { in Encrypt() argument 73 return Crypt(true, plaintext, ciphertext); in Encrypt() 76 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { in Decrypt() argument 77 return Crypt(false, ciphertext, plaintext); in Decrypt()
|
D | encryptor.h | 36 bool Encrypt(const std::string& plaintext, std::string* ciphertext); 39 bool Decrypt(const std::string& ciphertext, std::string* plaintext);
|
/external/dropbear/libtomcrypt/demos/ |
D | tv_gen.c | 398 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; in eax_gen() local 424 plaintext[z] = (unsigned char)(z & 255); in eax_gen() 429 …_encrypt_authenticate_memory(x, key, kl, nonce, y1, header, y1, plaintext, y1, plaintext, tag, &le… in eax_gen() 435 fprintf(out, "%02X", plaintext[z]); in eax_gen() 458 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; in ocb_gen() local 489 plaintext[z] = (unsigned char)(z & 255); in ocb_gen() 492 …if ((err = ocb_encrypt_authenticate_memory(x, key, kl, nonce, plaintext, y1, plaintext, tag, &len)… in ocb_gen() 498 fprintf(out, "%02X", plaintext[z]); in ocb_gen() 522 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; in ccm_gen() local 553 plaintext[z] = (unsigned char)(z & 255); in ccm_gen() [all …]
|
/external/srtp/crypto/cipher/ |
D | aes.c | 1913 aes_encrypt(v128_t *plaintext, const aes_expanded_key_t exp_key) { in aes_encrypt() argument 1916 v128_xor_eq(plaintext, exp_key + 0); in aes_encrypt() 1919 aes_round(plaintext, exp_key + 1); in aes_encrypt() 1920 aes_round(plaintext, exp_key + 2); in aes_encrypt() 1921 aes_round(plaintext, exp_key + 3); in aes_encrypt() 1922 aes_round(plaintext, exp_key + 4); in aes_encrypt() 1923 aes_round(plaintext, exp_key + 5); in aes_encrypt() 1924 aes_round(plaintext, exp_key + 6); in aes_encrypt() 1925 aes_round(plaintext, exp_key + 7); in aes_encrypt() 1926 aes_round(plaintext, exp_key + 8); in aes_encrypt() [all …]
|
/external/dbus/dbus/ |
D | dbus-auth.c | 1150 DBusString plaintext; in handle_client_initial_response_external_mech() local 1152 if (!_dbus_string_init (&plaintext)) in handle_client_initial_response_external_mech() 1155 if (!_dbus_append_user_from_current_process (&plaintext)) in handle_client_initial_response_external_mech() 1158 if (!_dbus_string_hex_encode (&plaintext, 0, in handle_client_initial_response_external_mech() 1163 _dbus_string_free (&plaintext); in handle_client_initial_response_external_mech() 1168 _dbus_string_free (&plaintext); in handle_client_initial_response_external_mech() 1207 DBusString plaintext; in handle_server_data_anonymous_mech() local 1209 _dbus_string_init_const (&plaintext, "D-Bus " DBUS_VERSION_STRING); in handle_server_data_anonymous_mech() 1211 _dbus_string_hex_encode (&plaintext, 0, in handle_server_data_anonymous_mech() 1261 DBusString plaintext; in handle_client_initial_response_anonymous_mech() local [all …]
|
D | dbus-auth.h | 65 const DBusString *plaintext, 70 DBusString *plaintext);
|
/external/srtp/crypto/include/ |
D | aes.h | 67 aes_encrypt(v128_t *plaintext, const aes_expanded_key_t exp_key); 70 aes_decrypt(v128_t *plaintext, const aes_expanded_key_t exp_key);
|
/external/dropbear/libtomcrypt/src/encauth/eax/ |
D | eax_test.c | 38 plaintext[MAXBLOCKSIZE], in eax_test() 231 tests[x].plaintext, tests[x].msglen, outct, outtag, &len)) != CRYPT_OK) { in eax_test() 259 if ((res != 1) || XMEMCMP(outct, tests[x].plaintext, tests[x].msglen)) { in eax_test()
|
/external/chromium/net/http/ |
D | des_unittest.cc | 39 static const uint8 plaintext[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; in TEST() local 46 DESEncrypt(key, plaintext, ciphertext); in TEST()
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
D | crypto-aes.js | 164 function AESEncryptCtr(plaintext, password, nBits) { argument 188 var blockCount = Math.ceil(plaintext.length/blockSize); 200 var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1; 204 var plaintextByte = plaintext.charCodeAt(b*blockSize+i); 250 var plaintext = new Array(ciphertext.length-1); 270 plaintext[b-1] = pt; // b-1 'cos no initial nonce block in plaintext 273 return plaintext.join('');
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
D | crypto-aes.js | 164 function AESEncryptCtr(plaintext, password, nBits) { argument 188 var blockCount = Math.ceil(plaintext.length/blockSize); 200 var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1; 204 var plaintextByte = plaintext.charCodeAt(b*blockSize+i); 250 var plaintext = new Array(ciphertext.length-1); 270 plaintext[b-1] = pt; // b-1 'cos no initial nonce block in plaintext 273 return plaintext.join('');
|
/external/dropbear/libtomcrypt/src/ciphers/ |
D | anubis.c | 1039 static void anubis_crypt(const unsigned char *plaintext, unsigned char *ciphertext, in anubis_crypt() argument 1051 (plaintext[pos ] << 24) ^ in anubis_crypt() 1052 (plaintext[pos + 1] << 16) ^ in anubis_crypt() 1053 (plaintext[pos + 2] << 8) ^ in anubis_crypt() 1054 (plaintext[pos + 3] ) ^ in anubis_crypt()
|