Home
last modified time | relevance | path

Searched refs:encrypted (Results 1 – 25 of 230) sorted by relevance

12345678910

/external/chromium_org/sync/util/
Dcryptographer_unittest.cc35 sync_pb::EncryptedData encrypted; in TEST_F() local
36 encrypted.set_key_name("foo"); in TEST_F()
37 encrypted.set_blob("bar"); in TEST_F()
39 EXPECT_FALSE(cryptographer_.CanDecrypt(encrypted)); in TEST_F()
45 sync_pb::EncryptedData encrypted; in TEST_F() local
47 EXPECT_FALSE(cryptographer_.Encrypt(original, &encrypted)); in TEST_F()
55 sync_pb::EncryptedData encrypted; in TEST_F() local
56 encrypted.set_key_name("foo"); in TEST_F()
57 encrypted.set_blob("bar"); in TEST_F()
59 EXPECT_FALSE(cryptographer_.CanDecrypt(encrypted)); in TEST_F()
[all …]
Dcryptographer.cc58 sync_pb::EncryptedData* encrypted) const { in Encrypt()
59 DCHECK(encrypted); in Encrypt()
71 return EncryptString(serialized, encrypted); in Encrypt()
76 sync_pb::EncryptedData* encrypted) const { in EncryptString()
77 if (CanDecryptUsingDefaultKey(*encrypted)) { in EncryptString()
78 const std::string& original_serialized = DecryptToString(*encrypted); in EncryptString()
92 encrypted->set_key_name(default_nigori_name_); in EncryptString()
94 encrypted->mutable_blob())) { in EncryptString()
101 bool Cryptographer::Decrypt(const sync_pb::EncryptedData& encrypted, in Decrypt() argument
104 std::string plaintext = DecryptToString(encrypted); in Decrypt()
[all …]
Dnigori_unittest.cc70 std::string encrypted = in TEST() local
75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext)); in TEST()
87 std::string encrypted; in TEST() local
88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); in TEST()
91 EXPECT_TRUE(nigori.Decrypt(encrypted, &decrypted)); in TEST()
102 std::string encrypted; in TEST() local
103 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); in TEST()
106 encrypted[0] = (encrypted[0] == 'a' ? 'b' : 'a'); in TEST()
109 EXPECT_TRUE(nigori.Decrypt(encrypted, &decrypted)); in TEST()
120 std::string encrypted; in TEST() local
[all …]
Dcryptographer.h69 bool CanDecrypt(const sync_pb::EncryptedData& encrypted) const;
73 bool CanDecryptUsingDefaultKey(const sync_pb::EncryptedData& encrypted) const;
82 sync_pb::EncryptedData* encrypted) const;
91 sync_pb::EncryptedData* encrypted) const;
95 bool Decrypt(const sync_pb::EncryptedData& encrypted,
100 std::string DecryptToString(const sync_pb::EncryptedData& encrypted) const;
104 bool GetKeys(sync_pb::EncryptedData* encrypted) const;
133 void InstallKeys(const sync_pb::EncryptedData& encrypted);
138 void SetPendingKeys(const sync_pb::EncryptedData& encrypted);
/external/chromium/chrome/browser/sync/util/
Dnigori_unittest.cc70 std::string encrypted = in TEST() local
75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext)); in TEST()
87 std::string encrypted; in TEST() local
88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); in TEST()
91 EXPECT_TRUE(nigori.Decrypt(encrypted, &decrypted)); in TEST()
102 std::string encrypted; in TEST() local
103 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted)); in TEST()
106 encrypted[0] = (encrypted[0] == 'a' ? 'b' : 'a'); in TEST()
109 EXPECT_TRUE(nigori.Decrypt(encrypted, &decrypted)); in TEST()
120 std::string encrypted; in TEST() local
[all …]
Dcryptographer.cc45 sync_pb::EncryptedData* encrypted) const { in Encrypt()
46 DCHECK(encrypted); in Encrypt()
55 encrypted->set_key_name(default_nigori_->first); in Encrypt()
57 encrypted->mutable_blob())) { in Encrypt()
64 bool Cryptographer::Decrypt(const sync_pb::EncryptedData& encrypted, in Decrypt() argument
67 std::string plaintext = DecryptToString(encrypted); in Decrypt()
72 const sync_pb::EncryptedData& encrypted) const { in DecryptToString()
73 NigoriMap::const_iterator it = nigoris_.find(encrypted.key_name()); in DecryptToString()
80 if (!it->second->Decrypt(encrypted.blob(), &plaintext)) { in DecryptToString()
87 bool Cryptographer::GetKeys(sync_pb::EncryptedData* encrypted) const { in GetKeys()
[all …]
Dcryptographer_unittest.cc21 sync_pb::EncryptedData encrypted; in TEST() local
22 encrypted.set_key_name("foo"); in TEST()
23 encrypted.set_blob("bar"); in TEST()
25 EXPECT_FALSE(cryptographer.CanDecrypt(encrypted)); in TEST()
35 sync_pb::EncryptedData encrypted; in TEST() local
36 encrypted.set_key_name("foo"); in TEST()
37 encrypted.set_blob("bar"); in TEST()
39 EXPECT_FALSE(cryptographer.CanDecrypt(encrypted)); in TEST()
54 sync_pb::EncryptedData encrypted; in TEST() local
55 EXPECT_TRUE(cryptographer.Encrypt(original, &encrypted)); in TEST()
[all …]
Dcryptographer.h61 bool CanDecrypt(const sync_pb::EncryptedData& encrypted) const;
65 bool CanDecryptUsingDefaultKey(const sync_pb::EncryptedData& encrypted) const;
71 sync_pb::EncryptedData* encrypted) const;
75 bool Decrypt(const sync_pb::EncryptedData& encrypted,
80 std::string DecryptToString(const sync_pb::EncryptedData& encrypted) const;
84 bool GetKeys(sync_pb::EncryptedData* encrypted) const;
94 bool SetKeys(const sync_pb::EncryptedData& encrypted);
99 void SetPendingKeys(const sync_pb::EncryptedData& encrypted);
/external/chromium_org/crypto/
Dopenpgp_symmetric_encryption_unittest.cc58 base::StringPiece encrypted(reinterpret_cast<const char*>(kTestMessage1), in TEST()
63 OpenPGPSymmetricEncrytion::Decrypt(encrypted, "testing", &out); in TEST()
69 base::StringPiece encrypted(reinterpret_cast<const char*>(kTestMessage2), in TEST()
74 OpenPGPSymmetricEncrytion::Decrypt(encrypted, "testing", &out); in TEST()
80 base::StringPiece encrypted(reinterpret_cast<const char*>(kTestMessage3), in TEST()
85 OpenPGPSymmetricEncrytion::Decrypt(encrypted, "testing", &out); in TEST()
91 base::StringPiece encrypted(reinterpret_cast<const char*>(kTestMessage4), in TEST()
96 OpenPGPSymmetricEncrytion::Decrypt(encrypted, "testing", &out); in TEST()
103 std::string encrypted = in TEST() local
108 OpenPGPSymmetricEncrytion::Decrypt(encrypted, "testing", &out); in TEST()
/external/chromium_org/sync/internal_api/
Dsyncapi_internal.cc21 const sync_pb::EncryptedData& encrypted = password_specifics.encrypted(); in DecryptPasswordSpecifics() local
24 if (!crypto->Decrypt(encrypted, data.get())) in DecryptPasswordSpecifics()
62 if (!cryptographer->CanDecrypt(left.encrypted())) { in AreSpecificsEqual()
66 left_plaintext = cryptographer->DecryptToString(left.encrypted()); in AreSpecificsEqual()
71 if (!cryptographer->CanDecrypt(right.encrypted())) { in AreSpecificsEqual()
75 right_plaintext = cryptographer->DecryptToString(right.encrypted()); in AreSpecificsEqual()
/external/chromium_org/net/quic/
Dquic_framer_test.cc362 bool CheckDecryption(const QuicEncryptedPacket& encrypted, in CheckDecryption() argument
372 encrypted, PACKET_8BYTE_GUID, in CheckDecryption()
377 encrypted, PACKET_8BYTE_GUID, in CheckDecryption()
382 StringPiece ciphertext(encrypted.AsStringPiece().substr( in CheckDecryption()
402 QuicEncryptedPacket encrypted(AsChars(packet), len, false); in CheckProcessingFails() local
403 EXPECT_FALSE(framer_.ProcessPacket(encrypted)) << "len: " << len; in CheckProcessingFails()
568 QuicEncryptedPacket encrypted(packet, 0, false); in TEST_P() local
569 EXPECT_FALSE(framer_.ProcessPacket(encrypted)); in TEST_P()
594 QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); in TEST_P() local
595 EXPECT_FALSE(framer_.ProcessPacket(encrypted)); in TEST_P()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/
DAbstractSampleEncryptionBox.java165 IsoTypeWriter.writeUInt32(byteBuffer, pair.encrypted); in getContent()
216 public Pair createPair(int clear, long encrypted) { in createPair() argument
217 return new Pair(clear, encrypted); in createPair()
223 public long encrypted; field in AbstractSampleEncryptionBox.Entry.Pair
225 public Pair(int clear, long encrypted) { in Pair() argument
227 this.encrypted = encrypted; in Pair()
244 if (encrypted != pair.encrypted) { in equals()
254 result = 31 * result + (int) (encrypted ^ (encrypted >>> 32)); in hashCode()
260 return "clr:" + clear + " enc:" + encrypted; in toString()
/external/chromium_org/net/quic/crypto/
Dnull_encrypter_test.cc27 scoped_ptr<QuicData> encrypted( in TEST_F() local
29 ASSERT_TRUE(encrypted.get()); in TEST_F()
31 "encrypted data", encrypted->data(), encrypted->length(), in TEST_F()
Daes_128_gcm_12_encrypter_test.cc258 scoped_ptr<QuicData> encrypted(EncryptWithNonce( in TEST() local
264 ASSERT_TRUE(encrypted.get()); in TEST()
272 ASSERT_EQ(ct.size() + tag_len, encrypted->length()); in TEST()
273 test::CompareCharArraysWithHexError("ciphertext", encrypted->data(), in TEST()
276 "authentication tag", encrypted->data() + ct.size(), tag_len, in TEST()
/external/chromium/chrome/browser/sync/protocol/
Dnigori_specifics.proto33 optional EncryptedData encrypted = 1; field
34 // True if |encrypted| is encrypted using a passphrase
38 // Booleans corresponding to whether a datatype should be encrypted.
39 // Passwords are always encrypted, so we don't need a field here.
Dpassword_specifics.proto20 // These are the properties that get serialized into the |encrypted| field of
38 // PasswordSpecificsData that is encrypted into |encrypted|.
40 optional EncryptedData encrypted = 1; field
/external/chromium_org/media/cdm/
Daes_decryptor.cc329 const scoped_refptr<DecoderBuffer>& encrypted, in Decrypt() argument
331 CHECK(encrypted->decrypt_config()); in Decrypt()
335 if (encrypted->decrypt_config()->iv().empty()) { in Decrypt()
336 int data_offset = encrypted->decrypt_config()->data_offset(); in Decrypt()
337 decrypted = DecoderBuffer::CopyFrom(encrypted->data() + data_offset, in Decrypt()
338 encrypted->data_size() - data_offset); in Decrypt()
340 const std::string& key_id = encrypted->decrypt_config()->key_id(); in Decrypt()
349 decrypted = DecryptData(*encrypted.get(), decryption_key); in Decrypt()
357 decrypted->set_timestamp(encrypted->timestamp()); in Decrypt()
358 decrypted->set_duration(encrypted->duration()); in Decrypt()
[all …]
/external/chromium_org/third_party/openssl/openssl/crypto/pkcs12/
Dp12_add.c196 X509_ALGOR_free(p7->d.encrypted->enc_data->algorithm); in PKCS12_pack_p7encdata()
197 p7->d.encrypted->enc_data->algorithm = pbe; in PKCS12_pack_p7encdata()
198 M_ASN1_OCTET_STRING_free(p7->d.encrypted->enc_data->enc_data); in PKCS12_pack_p7encdata()
199 if (!(p7->d.encrypted->enc_data->enc_data = in PKCS12_pack_p7encdata()
212 return PKCS12_item_decrypt_d2i(p7->d.encrypted->enc_data->algorithm, in STACK_OF()
215 p7->d.encrypted->enc_data->enc_data, 1); in STACK_OF()
/external/openssl/crypto/pkcs12/
Dp12_add.c196 X509_ALGOR_free(p7->d.encrypted->enc_data->algorithm); in PKCS12_pack_p7encdata()
197 p7->d.encrypted->enc_data->algorithm = pbe; in PKCS12_pack_p7encdata()
198 M_ASN1_OCTET_STRING_free(p7->d.encrypted->enc_data->enc_data); in PKCS12_pack_p7encdata()
199 if (!(p7->d.encrypted->enc_data->enc_data = in PKCS12_pack_p7encdata()
212 return PKCS12_item_decrypt_d2i(p7->d.encrypted->enc_data->algorithm, in STACK_OF()
215 p7->d.encrypted->enc_data->enc_data, 1); in STACK_OF()
/external/chromium_org/sync/protocol/
Dnigori_specifics.proto52 // Booleans corresponding to whether a datatype should be encrypted.
53 // Passwords are always encrypted, so we don't need a field here.
55 // thus can't be encrypted.
57 // and thus can't be encrypted.
72 // If true, all current and future datatypes will be encrypted.
117 // encrypted.
124 // Boolean corresponding to whether articles should be encrypted.
127 // Boolean corresponding to whether app list items should be encrypted.
/external/chromium_org/content/renderer/media/crypto/
Dppapi_decryptor.cc177 const scoped_refptr<media::DecoderBuffer>& encrypted, in Decrypt() argument
182 stream_type, encrypted, decrypt_cb)); in Decrypt()
187 if (!plugin_cdm_delegate_->Decrypt(stream_type, encrypted, decrypt_cb)) in Decrypt()
245 const scoped_refptr<media::DecoderBuffer>& encrypted, in DecryptAndDecodeAudio() argument
250 encrypted, audio_decode_cb)); in DecryptAndDecodeAudio()
255 if (!plugin_cdm_delegate_->DecryptAndDecodeAudio(encrypted, audio_decode_cb)) in DecryptAndDecodeAudio()
260 const scoped_refptr<media::DecoderBuffer>& encrypted, in DecryptAndDecodeVideo() argument
265 encrypted, video_decode_cb)); in DecryptAndDecodeVideo()
270 if (!plugin_cdm_delegate_->DecryptAndDecodeVideo(encrypted, video_decode_cb)) in DecryptAndDecodeVideo()
/external/chromium_org/media/test/data/
DREADME38 ….mp4 - A fragmented MP4 version of the audio track of bear-1280x720.mp4 encrypted (ISO CENC) using…
39 …0-a_frag-cenc_clear-all.mp4 - Same as bear-1280x720-a_frag-cenc.mp4 but no fragments are encrypted.
40 ….mp4 - A fragmented MP4 version of the video track of bear-1280x720.mp4 encrypted (ISO CENC) using…
41 …0-v_frag-cenc_clear-all.mp4 - Same as bear-1280x720-v_frag-cenc.mp4 but no fragments are encrypted.
42 …spect-av_enc-av.webm - bear-320x240-16x9-aspect.webm with audio & video encrypted using key ID [1]…
43 bear-320x240-av_enc-av.webm - bear-320x240.webm with audio & video encrypted using key ID [1] and k…
44 …ear-1s.webm - Same as bear-320x240-av_enc-av.webm but with no frames in the first second encrypted.
45 …20x240-av_enc-av_clear-all.webm - Same as bear-320x240-av_enc-av.webm but with no frames encrypted.
46 bear-640x360-av_enc-av.webm - bear-640x360.webm with audio & video encrypted using key ID [1] and k…
47 …c.mp4 - A fragmented MP4 version of the audio track of bear-640x360.mp4 encrypted (ISO CENC) using…
[all …]
/external/chromium_org/sync/engine/
Dconflict_resolver.cc115 DCHECK(cryptographer->CanDecryptUsingDefaultKey(specifics.encrypted())); in ProcessSimpleConflict()
117 specifics.encrypted()); in ProcessSimpleConflict()
124 server_specifics.encrypted()); in ProcessSimpleConflict()
126 server_specifics.encrypted()); in ProcessSimpleConflict()
143 base_server_specifics.encrypted()); in ProcessSimpleConflict()
/external/lzma/CPP/7zip/UI/Console/
DExtractCallbackConsole.cpp108 STDMETHODIMP CExtractCallbackConsole::SetOperationResult(Int32 operationResult, bool encrypted) in SetOperationResult() argument
125 (*OutStream) << (encrypted ? kCrcFailedEncrypted: kCrcFailed); in SetOperationResult()
128 (*OutStream) << (encrypted ? kDataErrorEncrypted : kDataError); in SetOperationResult()
168 …ULT CExtractCallbackConsole::OpenResult(const wchar_t * /* name */, HRESULT result, bool encrypted) in OpenResult() argument
176 (*OutStream) << (encrypted ? in OpenResult()
/external/libvpx/libvpx/test/
Dvp8_decrypt_test.cc63 std::vector<uint8_t> encrypted(video.frame_size()); in TEST() local
64 encrypt_buffer(video.cxdata(), &encrypted[0], video.frame_size()); in TEST()
65 vp8_decrypt_init di = { test_decrypt_cb, &encrypted[0] }; in TEST()

12345678910