/external/chromium/chrome/browser/password_manager/ |
H A D | encryptor_unittest.cc | 34 std::string ciphertext; local 37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 38 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result)); 43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 44 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result)); 50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 51 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result)); 64 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 65 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result)); 67 EXPECT_TRUE(Encryptor::DecryptString(ciphertext, 80 std::string ciphertext; local 103 std::string ciphertext; local 130 std::string ciphertext; local [all...] |
H A D | encryptor_win.cc | 14 std::string* ciphertext) { 15 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 18 bool Encryptor::DecryptString16(const std::string& ciphertext, argument 21 if (!DecryptString(ciphertext, &utf8)) 29 std::string* ciphertext) { 42 ciphertext->assign(reinterpret_cast<std::string::value_type*>(output.pbData), 49 bool Encryptor::DecryptString(const std::string& ciphertext, argument 53 reinterpret_cast<const BYTE*>(ciphertext.data())); 54 input.cbData = static_cast<DWORD>(ciphertext.length()); 13 EncryptString16(const string16& plaintext, std::string* ciphertext) argument 28 EncryptString(const std::string& plaintext, std::string* ciphertext) argument
|
H A D | encryptor_linux.cc | 58 std::string* ciphertext) { 59 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 62 bool Encryptor::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 Encryptor::DecryptString(const std::string& ciphertext, argument 108 if (ciphertext 57 EncryptString16(const string16& plaintext, std::string* ciphertext) argument 72 EncryptString(const std::string& plaintext, std::string* ciphertext) argument [all...] |
/external/chromium/net/http/ |
H A D | des_unittest.cc | 20 // DES known ciphertext (64-bits). 25 uint8 ciphertext[8]; local 26 memset(ciphertext, 0xaf, sizeof(ciphertext)); 28 DESEncrypt(des_known_key, des_ecb_known_plaintext, ciphertext); 29 EXPECT_EQ(0, memcmp(ciphertext, des_ecb_known_ciphertext, 8)); 43 uint8 ciphertext[8]; local 44 memset(ciphertext, 0xaf, sizeof(ciphertext)); 46 DESEncrypt(key, plaintext, ciphertext); [all...] |
/external/chromium/crypto/ |
H A D | encryptor_nss.cc | 52 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { argument 82 ciphertext->assign(reinterpret_cast<char *>(&buffer[0]), 87 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { argument 88 if (ciphertext.empty()) 98 size_t plaintext_len = ciphertext.size(); 107 const_cast<char*>(ciphertext.data())), 108 ciphertext.size());
|
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, &decypted)); 102 std::string ciphertext; local 103 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); 105 EXPECT_EQ(sizeof(raw_ciphertext), ciphertext.size()); 106 EXPECT_EQ(0, memcmp(ciphertext.data(), raw_ciphertext, ciphertext.size())); 109 EXPECT_TRUE(encryptor.Decrypt(ciphertext, 132 std::string ciphertext; local 158 std::string ciphertext; local 211 std::string ciphertext; local [all...] |
H A D | encryptor_mac.cc | 68 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { argument 69 return Crypt(kCCEncrypt, plaintext, ciphertext); 72 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { argument 73 return Crypt(kCCDecrypt, ciphertext, plaintext);
|
H A D | encryptor_win.cc | 80 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { argument 93 ciphertext->assign(reinterpret_cast<char*>(&tmp[0]), data_len); 97 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { argument 98 DWORD data_len = ciphertext.size(); 103 memcpy(&tmp[0], ciphertext.data(), data_len);
|
H A D | encryptor_openssl.cc | 72 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { argument 73 return Crypt(true, plaintext, ciphertext); 76 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { argument 77 return Crypt(false, ciphertext, plaintext);
|
/external/chromium/chrome/browser/sync/util/ |
H A D | nigori_unittest.cc | 123 // Corrput the ciphertext by changing one of its bytes. 153 std::string ciphertext; local 155 EXPECT_TRUE(nigori1.Encrypt(original, &ciphertext)); 156 EXPECT_TRUE(nigori2.Decrypt(ciphertext, &plaintext)); 159 EXPECT_TRUE(nigori2.Encrypt(original, &ciphertext)); 160 EXPECT_TRUE(nigori1.Decrypt(ciphertext, &plaintext));
|
/external/dropbear/libtomcrypt/demos/ |
H A D | encrypt.c | 97 unsigned char plaintext[512],ciphertext[512]; local 223 if ((errno = ctr_encrypt(inbuf,ciphertext,y,&ctr)) != CRYPT_OK) { 228 if (fwrite(ciphertext,1,y,fdout) != y) {
|
/external/dropbear/libtomcrypt/src/ciphers/ |
H A D | khazad.c | 677 static void khazad_crypt(const unsigned char *plaintext, unsigned char *ciphertext, argument 727 * map cipher state to ciphertext block (mu^{-1}): 729 ciphertext[0] = (unsigned char)(state >> 56); 730 ciphertext[1] = (unsigned char)(state >> 48); 731 ciphertext[2] = (unsigned char)(state >> 40); 732 ciphertext[3] = (unsigned char)(state >> 32); 733 ciphertext[4] = (unsigned char)(state >> 24); 734 ciphertext[5] = (unsigned char)(state >> 16); 735 ciphertext[6] = (unsigned char)(state >> 8); 736 ciphertext[ [all...] |
H A D | anubis.c | 1039 static void anubis_crypt(const unsigned char *plaintext, unsigned char *ciphertext, argument 1121 * map cipher state to ciphertext block (mu^{-1}): 1125 ciphertext[pos ] = (unsigned char)(w >> 24); 1126 ciphertext[pos + 1] = (unsigned char)(w >> 16); 1127 ciphertext[pos + 2] = (unsigned char)(w >> 8); 1128 ciphertext[pos + 3] = (unsigned char)(w ); 1135 @param ct The output ciphertext (16 bytes) 1150 @param ct The input ciphertext (16 bytes)
|
/external/openssl/crypto/evp/ |
H A D | evp_test.c | 139 const unsigned char *ciphertext,int cn, 152 hexdump(stdout,"Ciphertext",ciphertext,cn); 191 if(memcmp(out,ciphertext,cn)) 195 hexdump(stderr,"Expected",ciphertext,cn); 210 if(!EVP_DecryptUpdate(&ctx,out,&outl,ciphertext,cn)) 247 const unsigned char *ciphertext,int cn, 256 test1(c,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec); 263 const unsigned char *ciphertext, unsigned int cn) 276 hexdump(stdout,"Digest",ciphertext,cn); 305 if(memcmp(md,ciphertext,c 136 test1(const EVP_CIPHER *c,const unsigned char *key,int kn, const unsigned char *iv,int in, const unsigned char *plaintext,int pn, const unsigned char *ciphertext,int cn, int encdec) argument 244 test_cipher(const char *cipher,const unsigned char *key,int kn, const unsigned char *iv,int in, const unsigned char *plaintext,int pn, const unsigned char *ciphertext,int cn, int encdec) argument 261 test_digest(const char *digest, const unsigned char *plaintext,int pn, const unsigned char *ciphertext, unsigned int cn) argument 369 unsigned char *iv,*key,*plaintext,*ciphertext; local [all...] |
/external/srtp/crypto/include/ |
H A D | cipher.h | 63 direction_encrypt, /**< encryption (convert plaintext to ciphertext) */ 64 direction_decrypt, /**< decryption (convert ciphertext to plaintext) */ 120 * plaintext, and ciphertext values that are known to be correct for a 133 uint8_t *ciphertext; /* ciphertext */ member in struct:cipher_test_case_t 196 * an array of values of key/xtd_seq_num_t/plaintext/ciphertext
|
/external/srtp/srtp/ |
H A D | ekt.c | 150 aes_decrypt_with_raw_key(void *ciphertext, const void *key) { argument 154 aes_decrypt(ciphertext, expanded_key);
|
/external/chromium/net/socket/ |
H A D | dns_cert_provenance_checker.cc | 314 std::string ciphertext; local 315 encryptor.Encrypt(plaintext, &ciphertext); 328 outer.WriteString(ciphertext);
|