Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1282)

Unified Diff: media/cast/audio_receiver/audio_receiver.h

Issue 62843002: Cast: Added support for AES-CTR crypto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync TOT Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/DEPS ('k') | media/cast/audio_receiver/audio_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/audio_receiver/audio_receiver.h
diff --git a/media/cast/audio_receiver/audio_receiver.h b/media/cast/audio_receiver/audio_receiver.h
index 5313611eac19d459e15d0dc165d8a9791bba0bc9..0ab1b35b5c76f34d6c178eb1728f2c8474ef92ff 100644
--- a/media/cast/audio_receiver/audio_receiver.h
+++ b/media/cast/audio_receiver/audio_receiver.h
@@ -19,6 +19,10 @@
#include "media/cast/rtcp/rtcp.h" // RtcpCastMessage
#include "media/cast/rtp_common/rtp_defines.h" // RtpCastHeader
+namespace crypto {
+ class Encryptor;
+}
+
namespace media {
namespace cast {
@@ -83,6 +87,10 @@ class AudioReceiver : public base::NonThreadSafe,
void InitializeTimers();
+ // Decrypts the data within the |audio_frame| and replaces the data with the
+ // decrypted string.
+ bool DecryptAudioFrame(scoped_ptr<EncodedAudioFrame>* audio_frame);
+
// Schedule the next RTCP report.
void ScheduleNextRtcpReport();
@@ -111,6 +119,8 @@ class AudioReceiver : public base::NonThreadSafe,
base::TimeDelta time_offset_;
base::TimeTicks time_first_incoming_packet_;
uint32 first_incoming_rtp_timestamp_;
+ scoped_ptr<crypto::Encryptor> decryptor_;
+ std::string iv_mask_;
std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_;
};
« no previous file with comments | « media/cast/DEPS ('k') | media/cast/audio_receiver/audio_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698