Searched defs:encrypted (Results 1 - 25 of 63) sorted by relevance

123

/external/chromium_org/sync/util/
H A Dnigori_unittest.cc70 std::string encrypted = local
75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext));
87 std::string encrypted; local
88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted));
91 EXPECT_TRUE(nigori.Decrypt(encrypted, &decrypted));
102 std::string encrypted; local
103 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted));
106 encrypted[0] = (encrypted[0] == 'a' ? 'b' : 'a');
109 EXPECT_TRUE(nigori.Decrypt(encrypted,
120 std::string encrypted; local
[all...]
H A Dcryptographer_unittest.cc35 sync_pb::EncryptedData encrypted; local
36 encrypted.set_key_name("foo");
37 encrypted.set_blob("bar");
39 EXPECT_FALSE(cryptographer_.CanDecrypt(encrypted));
45 sync_pb::EncryptedData encrypted; local
47 EXPECT_FALSE(cryptographer_.Encrypt(original, &encrypted));
55 sync_pb::EncryptedData encrypted; local
56 encrypted.set_key_name("foo");
57 encrypted.set_blob("bar");
59 EXPECT_FALSE(cryptographer_.CanDecrypt(encrypted));
72 sync_pb::EncryptedData encrypted; local
91 sync_pb::EncryptedData encrypted; local
149 sync_pb::EncryptedData encrypted; local
199 sync_pb::EncryptedData encrypted; local
[all...]
H A Dnigori.cc158 bool Nigori::Encrypt(const std::string& value, std::string* encrypted) const {
190 Base64Encode(output, encrypted);
194 bool Nigori::Decrypt(const std::string& encrypted, std::string* value) const { argument
196 if (!Base64Decode(encrypted, &input))
H A Dcryptographer.cc76 sync_pb::EncryptedData* encrypted) const {
77 DCHECK(encrypted);
89 return EncryptString(serialized, encrypted);
94 sync_pb::EncryptedData* encrypted) const {
95 if (CanDecryptUsingDefaultKey(*encrypted)) {
96 const std::string& original_serialized = DecryptToString(*encrypted);
98 DVLOG(2) << "Re-encryption unnecessary, encrypted data already matches.";
110 encrypted->set_key_name(default_nigori_name_);
112 encrypted->mutable_blob())) {
119 bool Cryptographer::Decrypt(const sync_pb::EncryptedData& encrypted, argument
220 InstallKeys(const sync_pb::EncryptedData& encrypted) argument
234 SetPendingKeys(const sync_pb::EncryptedData& encrypted) argument
[all...]
/external/chromium_org/third_party/libjingle/source/talk/xmpp/
H A Dplainsaslhandler.h48 virtual std::string ChooseBestSaslMechanism(const std::vector<std::string> & mechanisms, bool encrypted) { argument
50 if (!encrypted && !allow_plain_) {
H A Dxmppauth.cc63 bool encrypted) {
61 ChooseBestSaslMechanism( const std::vector<std::string>& mechanisms, bool encrypted) argument
/external/chromium_org/chrome/common/extensions/api/networking_private/
H A Dnetworking_private_crypto_unittest.cc14 // Verify that decryption of |encrypted| data using |private_key_pem| matches
18 const std::vector<uint8>& encrypted) {
21 private_key_pem, encrypted, &decrypted))
16 VerifyByteString(const std::string& private_key_pem, const std::string& plain, const std::vector<uint8>& encrypted) argument
H A Dnetworking_private_crypto_nss.cc163 SECStatus encrypted = PK11_PubEncryptPKCS1( local
169 if (encrypted != SECSuccess) {
/external/chromium_org/components/signin/core/browser/webdata/
H A Dtoken_service_table.cc74 bool encrypted = OSCrypt::EncryptString(token, &encrypted_token); local
75 if (!encrypted) {
/external/chromium_org/sync/internal_api/
H A Dsyncapi_internal.cc30 const sync_pb::EncryptedData& encrypted = password_specifics.encrypted(); local
33 if (!crypto->Decrypt(encrypted, data.get()))
81 // Note that we can't compare encrypted strings directly as they are seeded
85 if (!cryptographer->CanDecrypt(left.encrypted())) {
89 left_plaintext = cryptographer->DecryptToString(left.encrypted());
94 if (!cryptographer->CanDecrypt(right.encrypted())) {
98 right_plaintext = cryptographer->DecryptToString(right.encrypted());
H A Dbase_node.cc64 // We assume any node with the encrypted field set has encrypted data and if
86 const sync_pb::EncryptedData& encrypted = specifics.encrypted(); local
88 DecryptToString(encrypted);
90 LOG(ERROR) << "Failed to decrypt encrypted node of type "
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/
H A DCencSampleEncryptionInformationGroupEntry.java64 public void setEncrypted(int encrypted) { argument
65 isEncrypted = encrypted;
/external/chromium_org/components/onc/
H A Donc_constants.h253 namespace encrypted { namespace in namespace:onc
265 } // namespace encrypted
/external/chromium_org/jingle/notifier/base/
H A Dgaia_token_pre_xmpp_auth.cc103 const std::vector<std::string> & mechanisms, bool encrypted) {
102 ChooseBestSaslMechanism( const std::vector<std::string> & mechanisms, bool encrypted) argument
/external/lzma/CPP/7zip/UI/Console/
H A DExtractCallbackConsole.cpp43 static const char *kCrcFailedEncrypted = "CRC Failed in encrypted file. Wrong password?";
45 static const char *kDataErrorEncrypted = "Data Error in encrypted file. Wrong password?";
108 STDMETHODIMP CExtractCallbackConsole::SetOperationResult(Int32 operationResult, bool encrypted) argument
125 (*OutStream) << (encrypted ? kCrcFailedEncrypted: kCrcFailed);
128 (*OutStream) << (encrypted ? kDataErrorEncrypted : kDataError);
168 HRESULT CExtractCallbackConsole::OpenResult(const wchar_t * /* name */, HRESULT result, bool encrypted) argument
176 (*OutStream) << (encrypted ?
177 "Can not open encrypted archive. Wrong password?" :
/external/chromium_org/crypto/
H A Dec_private_key_nss.cc247 SECKEYEncryptedPrivateKeyInfo* encrypted = PK11_ExportEncryptedPrivKeyInfo( local
255 if (!encrypted) {
265 encrypted,
267 SECKEY_DestroyEncryptedPrivateKeyInfo(encrypted, PR_TRUE);
H A Dencryptor_unittest.cc202 std::string encrypted; local
203 EXPECT_TRUE(encryptor.Encrypt(plaintext_str, &encrypted));
205 EXPECT_EQ(ciphertext_size, encrypted.size());
206 EXPECT_EQ(0, memcmp(encrypted.data(), ciphertext, encrypted.size()));
210 EXPECT_TRUE(encryptor.Decrypt(encrypted, &decrypted));
401 // PKCS #5 padding, encrypted.
/external/chromium_org/media/filters/
H A Ddecrypting_audio_decoder_unittest.cc37 // Create a fake non-empty encrypted buffer.
150 void DecryptAndDecodeAudio(const scoped_refptr<DecoderBuffer>& encrypted, argument
153 if (!encrypted->end_of_stream())
281 // Ensure that DecryptingAudioDecoder only accepts encrypted audio.
H A Ddecrypting_video_decoder_unittest.cc31 // Create a fake non-empty encrypted buffer.
126 void DecryptAndDecodeVideo(const scoped_refptr<DecoderBuffer>& encrypted, argument
129 if (!encrypted->end_of_stream())
H A Dvideo_frame_stream_unittest.cc145 const scoped_refptr<DecoderBuffer>& encrypted,
147 DCHECK(encrypted->decrypt_config());
155 DecoderBuffer::CopyFrom(encrypted->data(), encrypted->data_size());
156 decrypted->set_timestamp(encrypted->timestamp());
157 decrypted->set_duration(encrypted->duration());
144 Decrypt(Decryptor::StreamType stream_type, const scoped_refptr<DecoderBuffer>& encrypted, const Decryptor::DecryptCB& decrypt_cb) argument
/external/chromium_org/net/tools/quic/
H A Dquic_dispatcher_test.cc223 scoped_ptr<QuicEncryptedPacket> encrypted(
234 dispatcher_.ProcessPacket(IPEndPoint(), client_address, *encrypted); local
H A Dquic_time_wait_list_manager_test.cc156 QuicEncryptedPacket* encrypted = framer_.EncryptPacket(ENCRYPTION_NONE, local
159 EXPECT_TRUE(encrypted != NULL);
160 return encrypted;
190 QuicEncryptedPacket encrypted(std::tr1::get<0>(packet_buffer),
192 framer.ProcessPacket(encrypted);
/external/chromium_org/sync/syncable/
H A Dentry_kernel.cc100 const sync_pb::EncryptedData& encrypted = kernel.ref(field).encrypted(); local
103 cryptographer->CanDecrypt(encrypted) &&
104 cryptographer->Decrypt(encrypted, &decrypted)) {
106 value->SetBoolean("encrypted", true);
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/
H A DAbstractSampleEncryptionBox.java165 IsoTypeWriter.writeUInt32(byteBuffer, pair.encrypted);
216 public Pair createPair(int clear, long encrypted) { argument
217 return new Pair(clear, encrypted);
223 public long encrypted; field in class:AbstractSampleEncryptionBox.Entry.Pair
225 public Pair(int clear, long encrypted) { argument
227 this.encrypted = encrypted;
244 if (encrypted != pair.encrypted) {
254 result = 31 * result + (int) (encrypted
[all...]
/external/chromium_org/content/renderer/media/crypto/
H A Dppapi_decryptor.cc313 const scoped_refptr<media::DecoderBuffer>& encrypted,
320 encrypted,
327 !CdmDelegate()->Decrypt(stream_type, encrypted, decrypt_cb)) {
403 const scoped_refptr<media::DecoderBuffer>& encrypted,
410 encrypted,
417 !CdmDelegate()->DecryptAndDecodeAudio(encrypted, audio_decode_cb)) {
423 const scoped_refptr<media::DecoderBuffer>& encrypted,
430 encrypted,
437 !CdmDelegate()->DecryptAndDecodeVideo(encrypted, video_decode_cb)) {
311 Decrypt( StreamType stream_type, const scoped_refptr<media::DecoderBuffer>& encrypted, const DecryptCB& decrypt_cb) argument
402 DecryptAndDecodeAudio( const scoped_refptr<media::DecoderBuffer>& encrypted, const AudioDecodeCB& audio_decode_cb) argument
422 DecryptAndDecodeVideo( const scoped_refptr<media::DecoderBuffer>& encrypted, const VideoDecodeCB& video_decode_cb) argument

Completed in 738 milliseconds

123