/external/chromium/chrome/browser/password_manager/ |
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, &utf8_result)) 80 std::string ciphertext; local 103 std::string ciphertext; local 130 std::string ciphertext; local [all...] |
/external/chromium/net/http/ |
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/ |
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, &decypted)) 132 std::string ciphertext; local 158 std::string ciphertext; local 211 std::string ciphertext; local [all...] |
/external/chromium/chrome/browser/sync/util/ |
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/ |
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/openssl/crypto/evp/ |
evp_test.c | 139 const unsigned char *ciphertext,int cn, 152 hexdump(stdout,"Ciphertext",ciphertext,cn); 186 fprintf(stderr,"Ciphertext length mismatch got %d expected %d\n", 191 if(memcmp(out,ciphertext,cn)) 193 fprintf(stderr,"Ciphertext mismatch\n"); 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) 369 unsigned char *iv,*key,*plaintext,*ciphertext; local [all...] |
/external/chromium/net/socket/ |
dns_cert_provenance_checker.cc | 314 std::string ciphertext; local 315 encryptor.Encrypt(plaintext, &ciphertext); 328 outer.WriteString(ciphertext);
|
/external/srtp/crypto/include/ |
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
|