HomeSort by relevance Sort by last modified time
    Searched defs:plaintext (Results 1 - 25 of 27) sorted by null

1 2

  /external/chromium_org/components/sync_driver/
system_encryptor_unittest.cc 30 std::string plaintext; local
31 EXPECT_TRUE(encryptor_.DecryptString(ciphertext, &plaintext));
32 EXPECT_EQ(kPlaintext, plaintext);
  /external/chromium_org/components/os_crypt/
os_crypt_unittest.cc 31 base::string16 plaintext; local
38 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext));
40 EXPECT_EQ(plaintext, result);
43 plaintext = base::ASCIIToUTF16("hello");
44 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext));
46 EXPECT_EQ(plaintext, result);
50 plaintext = base::ASCIIToUTF16("1234567890123456");
51 EXPECT_TRUE(OSCrypt::EncryptString16(plaintext, &ciphertext));
53 EXPECT_EQ(plaintext, result);
62 plaintext = wchars
79 std::string plaintext; local
102 std::string plaintext; local
129 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 34 StringPiece plaintext = reader.ReadRemainingPayload(); local
38 plaintext.AppendToString(&buffer);
42 memcpy(output, plaintext.data(), plaintext.length());
43 *output_length = plaintext.length();
59 StringPiece plaintext = reader.ReadRemainingPayload(); local
63 plaintext.AppendToString(&buffer);
68 return new QuicData(plaintext.data(), plaintext.length());
null_encrypter.cc 27 StringPiece plaintext,
30 plaintext.AppendToString(&buffer);
33 memcpy(output + GetHashLength(), plaintext.data(), plaintext.size());
40 StringPiece plaintext) {
41 const size_t len = plaintext.size() + GetHashLength();
43 Encrypt(StringPiece(), associated_data, plaintext, buffer); local
quic_crypto_server_config.cc 1439 StringPiece plaintext; local
1503 StringPiece plaintext; local
    [all...]
  /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))
cryptographer.cc 122 std::string plaintext = DecryptToString(encrypted); local
123 return message->ParseFromString(plaintext);
134 std::string plaintext; local
135 if (!it->second->Decrypt(encrypted.blob(), &plaintext)) {
139 return plaintext;
254 std::string plaintext; local
255 if (!nigori.Decrypt(pending_keys_->blob(), &plaintext))
259 if (!bag.ParseFromString(plaintext)) {
  /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, decrypted);
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
489 std::string plaintext; local
528 std::string plaintext; local
    [all...]
  /external/chromium_org/third_party/boringssl/src/crypto/cipher/
cipher_test.c 126 const uint8_t *iv, int in, const uint8_t *plaintext, int pn,
140 hexdump(stdout, "Plaintext", plaintext, pn);
184 if (!EVP_EncryptUpdate(&ctx, out, &outl, plaintext, pn)) {
273 fprintf(stderr, "Plaintext length mismatch got %d expected %d\n",
278 if (memcmp(out, plaintext, pn)) {
279 fprintf(stderr, "Plaintext mismatch\n");
281 hexdump(stderr, "Expected", plaintext, pn);
292 const uint8_t *iv, int in, const uint8_t *plaintext,
325 test1(c, key, kn, iv, in, plaintext, pn, ciphertext, cn, aad, an, tag, tn
356 uint8_t *iv, *key, *plaintext, *ciphertext, *aad, *tag; local
    [all...]
  /external/chromium_org/third_party/boringssl/src/crypto/modes/
gcm_test.c 61 const char *plaintext; member in struct:test_case
316 uint8_t *key = NULL, *plaintext = NULL, *additional_data = NULL, local
323 !decode_hex(&plaintext, &plaintext_len, test->plaintext, test_num,
324 "plaintext") ||
335 fprintf(stderr, "%u: plaintext and ciphertext have differing lengths.\n",
362 if (plaintext) {
363 CRYPTO_gcm128_encrypt(&ctx, plaintext, out, plaintext_len);
385 if (plaintext && memcmp(out, plaintext, plaintext_len))
    [all...]
  /external/chromium_org/third_party/libsrtp/srtp/tables/
aes_tables.c 319 uint8_t plaintext[16] = { local
331 v128_copy_octet_string(&x, plaintext);
338 v128_copy_octet_string(&y, plaintext);
  /external/chromium_org/third_party/webrtc/base/
base64_unittest.cc 25 const char* plaintext; member in struct:__anon20275
283 const char* plaintext;
371 reinterpret_cast<const unsigned char*>(base64_tests[i].plaintext);
410 EXPECT_EQ(0, memcmp(decode_buffer, base64_tests[i].plaintext, decode_length));
427 EXPECT_EQ_ARRAY(decoded2.size(), decoded2.data(), base64_tests[i].plaintext, i);
442 EXPECT_EQ_ARRAY(decoded2.size(), decoded2, base64_tests[i].plaintext, i);
    [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/chromium_org/content/child/webcrypto/test/
rsa_oaep_unittest.cc 208 std::vector<uint8_t> plaintext = GetBytesFromHexString(test, "plaintext"); local
232 EXPECT_BYTES_EQ(plaintext, decrypted_data);
237 op_algorithm, public_key, CryptoData(plaintext), &encrypted_data));
244 EXPECT_BYTES_EQ(plaintext, redecrypted_data);
373 std::vector<uint8_t> plaintext; local
379 &plaintext));
  /external/chromium_org/sync/engine/
model_type_sync_worker_impl.cc 445 std::string plaintext; local
446 plaintext = cryptographer->DecryptToString(in.encrypted());
447 if (plaintext.empty()) {
451 if (!out->ParseFromString(plaintext)) {
model_type_sync_worker_impl_unittest.cc 633 std::string plaintext; local
634 original_specifics.SerializeToString(&plaintext);
637 nigori.Encrypt(plaintext, &encrypted);
    [all...]
  /external/chromium_org/third_party/libsrtp/srtp/crypto/include/
cipher.h 65 direction_encrypt, /**< encryption (convert plaintext to ciphertext) */
66 direction_decrypt, /**< decryption (convert ciphertext to plaintext) */
121 * plaintext, and ciphertext values that are known to be correct for a
131 int plaintext_length_octets; /* octets in plaintext */
132 uint8_t *plaintext; /* plaintext */ member in struct:cipher_test_case_t
133 int ciphertext_length_octets; /* octets in plaintext */
198 * an array of values of key/xtd_seq_num_t/plaintext/ciphertext
208 * an array of values of key/xtd_seq_num_t/plaintext/ciphertext
  /external/chromium_org/chromeos/network/onc/
onc_utils.cc 145 std::string plaintext; local
146 if (!decryptor.Decrypt(ciphertext, &plaintext)) {
152 ReadDictionaryFromJson(plaintext);
  /external/chromium_org/chrome/browser/sync/glue/
sync_backend_host_impl.cc 768 std::string plaintext; local
769 bool result = nigori.Decrypt(cached_pending_keys_.blob(), &plaintext);
  /external/google-diff-match-patch/name/fraser/neil/plaintext/
diff_match_patch_test.java 20 package name.fraser.neil.plaintext;
33 import name.fraser.neil.plaintext.diff_match_patch.Diff;
34 import name.fraser.neil.plaintext.diff_match_patch.LinesToCharsResult;
35 import name.fraser.neil.plaintext.diff_match_patch.Patch;
    [all...]
diff_match_patch.java 20 package name.fraser.neil.plaintext;
    [all...]
  /external/chromium_org/net/third_party/nss/ssl/
ssl3ext.c 990 SECItem plaintext; local
    [all...]
  /external/chromium_org/net/quic/
quic_connection_test.cc 103 StringPiece plaintext,
105 memcpy(output, plaintext.data(), plaintext.size());
106 output += plaintext.size();
113 StringPiece plaintext) OVERRIDE {
114 const size_t len = plaintext.size() + kTagSize;
116 Encrypt(StringPiece(), associated_data, plaintext, buffer); variable
    [all...]

Completed in 582 milliseconds

1 2