/external/chromium_org/chrome/browser/sync/glue/ |
chrome_encryptor_unittest.cc | 29 std::string plaintext; local 30 EXPECT_TRUE(encryptor_.DecryptString(ciphertext, &plaintext)); 31 EXPECT_EQ(kPlaintext, plaintext);
|
/external/chromium/chrome/browser/password_manager/ |
encryptor_unittest.cc | 30 string16 plaintext; local 37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 39 EXPECT_EQ(plaintext, result); 42 plaintext = ASCIIToUTF16("hello"); 43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 45 EXPECT_EQ(plaintext, result); 49 plaintext = ASCIIToUTF16("1234567890123456"); 50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 52 EXPECT_EQ(plaintext, result); 61 plaintext = wchars 78 std::string plaintext; local 101 std::string plaintext; local 128 std::string plaintext; local [all...] |
/external/chromium/net/http/ |
des_unittest.cc | 17 // DES known plaintext (64-bits). 39 static const uint8 plaintext[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; local 46 DESEncrypt(key, plaintext, ciphertext);
|
/external/chromium_org/components/webdata/encryptor/ |
encryptor_unittest.cc | 30 base::string16 plaintext; local 37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 39 EXPECT_EQ(plaintext, result); 42 plaintext = ASCIIToUTF16("hello"); 43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 45 EXPECT_EQ(plaintext, result); 49 plaintext = ASCIIToUTF16("1234567890123456"); 50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext)); 52 EXPECT_EQ(plaintext, result); 61 plaintext = wchars 78 std::string plaintext; local 101 std::string plaintext; local 128 std::string plaintext; local [all...] |
/external/chromium_org/net/http/ |
des_unittest.cc | 17 // DES known plaintext (64-bits). 39 static const uint8 plaintext[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; local 46 DESEncrypt(key, plaintext, ciphertext);
|
/external/chromium_org/net/quic/crypto/ |
null_decrypter.cc | 32 StringPiece plaintext = reader.ReadRemainingPayload(); local 36 plaintext.AppendToString(&buffer); 41 memcpy(output, plaintext.data(), plaintext.length()); 42 *output_length = plaintext.length(); 58 StringPiece plaintext = reader.ReadRemainingPayload(); local 62 plaintext.AppendToString(&buffer); 67 return new QuicData(plaintext.data(), plaintext.length());
|
null_encrypter.cc | 25 StringPiece plaintext, 28 plaintext.AppendToString(&buffer); 31 memcpy(output + sizeof(hash), plaintext.data(), plaintext.size()); 38 StringPiece plaintext) { 39 const size_t len = plaintext.size() + sizeof(uint128); 41 Encrypt(StringPiece(), associated_data, plaintext, buffer); local
|
/external/chromium/crypto/ |
encryptor_unittest.cc | 26 std::string plaintext("this is the plaintext"); 28 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); 35 EXPECT_EQ(plaintext, decypted); 100 std::string plaintext(reinterpret_cast<const char*>(raw_plaintext), 103 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); 111 EXPECT_EQ(plaintext, decypted); 118 std::string plaintext = "Plain text with a g-clef U+1D11E \360\235\204\236"; local 133 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); 139 EXPECT_EQ(plaintext, decypted) 146 std::string plaintext = "Small text"; local 199 std::string plaintext; local [all...] |
/external/chromium/chrome/browser/sync/util/ |
nigori_unittest.cc | 55 std::string plaintext("value"); 58 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted1)); 61 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted2)); 74 std::string plaintext; local 75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext)); 78 EXPECT_EQ(expected, plaintext); 85 std::string plaintext("value"); 88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); 93 EXPECT_EQ(plaintext, decrypted); 100 std::string plaintext("test") 152 std::string plaintext; local [all...] |
nigori.cc | 130 NigoriStream plaintext; local 131 plaintext << type << name; 139 if (!encryptor.Encrypt(plaintext.str(), &ciphertext)) 241 std::string plaintext;
|
cryptographer.cc | 67 std::string plaintext = DecryptToString(encrypted); local 68 return message->ParseFromString(plaintext); 79 std::string plaintext; local 80 if (!it->second->Decrypt(encrypted.blob(), &plaintext)) { 84 return plaintext; 158 std::string plaintext; local 159 if (!nigori.Decrypt(pending_keys_->blob(), &plaintext)) 163 if (!bag.ParseFromString(plaintext)) {
|
/external/chromium_org/sync/util/ |
nigori_unittest.cc | 55 std::string plaintext("value"); 58 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted1)); 61 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted2)); 74 std::string plaintext; local 75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext)); 78 EXPECT_EQ(expected, plaintext); 85 std::string plaintext("value"); 88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); 93 EXPECT_EQ(plaintext, decrypted); 100 std::string plaintext("test") 152 std::string plaintext; local [all...] |
nigori.cc | 125 NigoriStream plaintext; local 126 plaintext << type << name; 134 if (!encryptor.Encrypt(plaintext.str(), &ciphertext)) 230 std::string plaintext;
|
cryptographer.cc | 104 std::string plaintext = DecryptToString(encrypted); local 105 return message->ParseFromString(plaintext); 116 std::string plaintext; local 117 if (!it->second->Decrypt(encrypted.blob(), &plaintext)) { 121 return plaintext; 236 std::string plaintext; local 237 if (!nigori.Decrypt(pending_keys_->blob(), &plaintext)) 241 if (!bag.ParseFromString(plaintext)) {
|
/external/openssh/ |
cipher.h | 66 int plaintext; member in struct:CipherContext
|
/external/dropbear/libtomcrypt/demos/ |
encrypt.c | 97 unsigned char plaintext[512],ciphertext[512]; local 182 if ((errno = ctr_decrypt(inbuf,plaintext,y,&ctr)) != CRYPT_OK) { 187 if (fwrite(plaintext,1,y,fdout) != y) {
|
tv_gen.c | 168 "The output of step N is used as the key and plaintext for step N+1 (key bytes repeated as required to fill the key)\n\n"); 398 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; local 402 fprintf(out, "EAX Test Vectors. Uses the 00010203...NN-1 pattern for header/nonce/plaintext/key. The outputs\n" 424 plaintext[z] = (unsigned char)(z & 255); 429 if ((err = eax_encrypt_authenticate_memory(x, key, kl, nonce, y1, header, y1, plaintext, y1, plaintext, tag, &len)) != CRYPT_OK) { 435 fprintf(out, "%02X", plaintext[z]); 458 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; local 462 fprintf(out, "OCB Test Vectors. Uses the 00010203...NN-1 pattern for nonce/plaintext/key. The outputs\n" 489 plaintext[z] = (unsigned char)(z & 255) 522 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; local 584 unsigned char key[MAXBLOCKSIZE], plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; local [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_uu.py | 12 plaintext = "The smooth-scaled python crept over the sleeping dog\n" variable 23 inp = cStringIO.StringIO(plaintext) 27 inp = cStringIO.StringIO(plaintext) 36 self.assertEqual(out.getvalue(), plaintext) 44 self.assertEqual(out.getvalue(), plaintext) 75 sys.stdin = cStringIO.StringIO(plaintext) 87 self.assertEqual(sys.stdout.getvalue(), plaintext) 119 fin.write(plaintext) 159 self.assertEqual(s, plaintext) 177 self.assertEqual(s, plaintext) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_uu.py | 12 plaintext = "The smooth-scaled python crept over the sleeping dog\n" variable 23 inp = cStringIO.StringIO(plaintext) 27 inp = cStringIO.StringIO(plaintext) 36 self.assertEqual(out.getvalue(), plaintext) 44 self.assertEqual(out.getvalue(), plaintext) 75 sys.stdin = cStringIO.StringIO(plaintext) 87 self.assertEqual(sys.stdout.getvalue(), plaintext) 119 fin.write(plaintext) 159 self.assertEqual(s, plaintext) 177 self.assertEqual(s, plaintext) [all...] |
/external/chromium_org/crypto/ |
encryptor_unittest.cc | 26 std::string plaintext("this is the plaintext"); 28 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); 35 EXPECT_EQ(plaintext, decypted); 70 std::string plaintext("this is the plaintext"); 72 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); 186 const unsigned char* plaintext, size_t plaintext_size, 199 reinterpret_cast<const char*>(plaintext), plaintext_size); 218 const unsigned char* plaintext, size_t plaintext_size 435 std::string plaintext = "Plain text with a g-clef U+1D11E \\360\\235\\204\\236"; local 463 std::string plaintext = "Small text"; local 516 std::string plaintext; local [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
base64_unittest.cc | 42 const char* plaintext; member in struct:__anon13773 300 const char* plaintext; 388 reinterpret_cast<const unsigned char*>(base64_tests[i].plaintext); 427 EXPECT_EQ(0, memcmp(decode_buffer, base64_tests[i].plaintext, decode_length)); 444 EXPECT_EQ_ARRAY(decoded2.size(), decoded2.data(), base64_tests[i].plaintext, i); 459 EXPECT_EQ_ARRAY(decoded2.size(), decoded2, base64_tests[i].plaintext, i); [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/evp/ |
evp_test.c | 138 const unsigned char *plaintext,int pn, 151 hexdump(stdout,"Plaintext",plaintext,pn); 171 if(!EVP_EncryptUpdate(&ctx,out,&outl,plaintext,pn)) 225 fprintf(stderr,"Plaintext length mismatch got %d expected %d\n", 230 if(memcmp(out,plaintext,pn)) 232 fprintf(stderr,"Plaintext mismatch\n"); 234 hexdump(stderr,"Expected",plaintext,pn); 246 const unsigned char *plaintext,int pn, 256 test1(c,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec) 369 unsigned char *iv,*key,*plaintext,*ciphertext; local [all...] |
/external/openssl/crypto/evp/ |
evp_test.c | 138 const unsigned char *plaintext,int pn, 151 hexdump(stdout,"Plaintext",plaintext,pn); 171 if(!EVP_EncryptUpdate(&ctx,out,&outl,plaintext,pn)) 225 fprintf(stderr,"Plaintext length mismatch got %d expected %d\n", 230 if(memcmp(out,plaintext,pn)) 232 fprintf(stderr,"Plaintext mismatch\n"); 234 hexdump(stderr,"Expected",plaintext,pn); 246 const unsigned char *plaintext,int pn, 256 test1(c,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec) 369 unsigned char *iv,*key,*plaintext,*ciphertext; local [all...] |
/external/srtp/tables/ |
aes_tables.c | 323 uint8_t plaintext[16] = { local 335 v128_copy_octet_string(&x, plaintext); 342 v128_copy_octet_string(&y, plaintext);
|
/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 130 int plaintext_length_octets; /* octets in plaintext */ 131 uint8_t *plaintext; /* plaintext */ member in struct:cipher_test_case_t 132 int ciphertext_length_octets; /* octets in plaintext */ 196 * an array of values of key/xtd_seq_num_t/plaintext/ciphertext
|