/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/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...] |
encryptor.h | 22 std::string* ciphertext); 28 static bool DecryptString16(const std::string& ciphertext, 33 std::string* ciphertext); 39 static bool DecryptString(const std::string& ciphertext,
|
encryptor_linux.cc | 58 std::string* ciphertext) { 59 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 62 bool Encryptor::DecryptString16(const std::string& ciphertext, 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, 108 if (ciphertext.empty()) [all...] |
encryptor_win.cc | 14 std::string* ciphertext) { 15 return EncryptString(UTF16ToUTF8(plaintext), ciphertext); 18 bool Encryptor::DecryptString16(const std::string& ciphertext, 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, 53 reinterpret_cast<const BYTE*>(ciphertext.data())); 54 input.cbData = static_cast<DWORD>(ciphertext.length());
|
/external/chromium/crypto/ |
encryptor_mac.cc | 68 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { 69 return Crypt(kCCEncrypt, plaintext, ciphertext); 72 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { 73 return Crypt(kCCDecrypt, ciphertext, plaintext);
|
encryptor_nss.cc | 52 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { 82 ciphertext->assign(reinterpret_cast<char *>(&buffer[0]), 87 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { 88 if (ciphertext.empty()) 98 size_t plaintext_len = ciphertext.size(); 107 const_cast<char*>(ciphertext.data())), 108 ciphertext.size());
|
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...] |
encryptor.h | 35 // Encrypts |plaintext| into |ciphertext|. 36 bool Encrypt(const std::string& plaintext, std::string* ciphertext); 38 // Decrypts |ciphertext| into |plaintext|. 39 bool Decrypt(const std::string& ciphertext, std::string* plaintext);
|
encryptor_win.cc | 80 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { 93 ciphertext->assign(reinterpret_cast<char*>(&tmp[0]), data_len); 97 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { 98 DWORD data_len = ciphertext.size(); 103 memcpy(&tmp[0], ciphertext.data(), data_len);
|
encryptor_openssl.cc | 72 bool Encryptor::Encrypt(const std::string& plaintext, std::string* ciphertext) { 73 return Crypt(true, plaintext, ciphertext); 76 bool Encryptor::Decrypt(const std::string& ciphertext, std::string* plaintext) { 77 return Crypt(false, ciphertext, plaintext);
|
/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/chrome/browser/sync/util/ |
nigori.cc | 138 std::string ciphertext; 139 if (!encryptor.Encrypt(plaintext.str(), &ciphertext)) 151 if (!hmac.Sign(ciphertext, &hash[0], hash.size())) 155 output.assign(ciphertext); 179 std::string ciphertext; 180 if (!encryptor.Encrypt(value, &ciphertext)) 192 if (!hmac.Sign(ciphertext, &hash[0], hash.size())) 197 output.append(ciphertext); 213 // * ciphertext (multiple of 16 bytes) 216 std::string ciphertext(input.substr(kIvSize [all...] |
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/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
crypto-aes.js | 189 var ciphertext = new Array(blockCount); // ciphertext as array of strings 208 // ct is now ciphertext for this block 210 ciphertext[b] = escCtrlChars(ct); // escape troublesome characters in ciphertext 213 // convert the nonce to a string to go on the front of the ciphertext 219 return ctrTxt + '-' + ciphertext.join('-'); 224 * Use AES to decrypt 'ciphertext' with 'password' using 'nBits' key, in Counter mode of operation 230 function AESDecryptCtr(ciphertext, password, nBits) { 242 ciphertext = ciphertext.split('-'); // split ciphertext into array of block-length strings [all...] |
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
crypto-aes.js | 189 var ciphertext = new Array(blockCount); // ciphertext as array of strings 208 // ct is now ciphertext for this block 210 ciphertext[b] = escCtrlChars(ct); // escape troublesome characters in ciphertext 213 // convert the nonce to a string to go on the front of the ciphertext 219 return ctrTxt + '-' + ciphertext.join('-'); 224 * Use AES to decrypt 'ciphertext' with 'password' using 'nBits' key, in Counter mode of operation 230 function AESDecryptCtr(ciphertext, password, nBits) { 242 ciphertext = ciphertext.split('-'); // split ciphertext into array of block-length strings [all...] |
/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/dropbear/ |
keyimport.c | 1264 char *ciphertext; [all...] |
/external/srtp/srtp/ |
ekt.c | 150 aes_decrypt_with_raw_key(void *ciphertext, const void *key) { 154 aes_decrypt(ciphertext, expanded_key);
|
/external/srtp/crypto/cipher/ |
cipher.c | 76 * plaintext, and ciphertext that is known to be good 153 debug_print(mod_cipher, "ciphertext: %s", 157 /* compare the resulting ciphertext with that in the test case */ 162 if (buffer[i] != test_case->ciphertext[i]) { 174 octet_string_hex_string(test_case->ciphertext, 193 /* copy ciphertext into test buffer */ 199 buffer[i] = test_case->ciphertext[i]; 201 debug_print(mod_cipher, "ciphertext: %s", 320 debug_print(mod_cipher, "ciphertext: %s", 325 * decrypt the ciphertext [all...] |
/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
|
/external/chromium/net/socket/ |
dns_cert_provenance_checker.cc | 314 std::string ciphertext; local 315 encryptor.Encrypt(plaintext, &ciphertext); 328 outer.WriteString(ciphertext);
|
/external/dropbear/libtomcrypt/src/encauth/eax/ |
eax_test.c | 39 ciphertext[MAXBLOCKSIZE], 55 /* ciphertext */ 75 /* ciphertext */ 95 /* ciphertext */ 119 /* ciphertext */ 146 /* ciphertext */ 234 if (XMEMCMP(outct, tests[x].ciphertext, tests[x].msglen) || XMEMCMP(outtag, tests[x].tag, len)) {
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherTest.java | 2093 public final byte[] ciphertext; field in class:CipherTest.CipherTestParam [all...] |
/external/dropbear/libtomcrypt/src/ciphers/ |
khazad.c | [all...] |