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

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: Addressed comments 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
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 2044e16cfc81d20f418767529f72ce3a7c2e349b..b8d9e4d5c577c6abf51ee1a3c901169880f43c70 100644
--- a/media/cast/audio_receiver/audio_receiver.h
+++ b/media/cast/audio_receiver/audio_receiver.h
@@ -13,6 +13,7 @@
#include "base/threading/non_thread_safe.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
+#include "crypto/encryptor.h"
#include "media/cast/cast_config.h"
#include "media/cast/cast_environment.h"
#include "media/cast/cast_receiver.h"
@@ -81,6 +82,8 @@ class AudioReceiver : public base::NonThreadSafe,
// Return the playout time based on the current time and rtp timestamp.
base::TimeTicks GetPlayoutTime(base::TimeTicks now, uint32 rtp_timestamp);
+ bool DecryptAudioFrame(scoped_ptr<EncodedAudioFrame>* audio_frame);
+
// Schedule the next RTCP report.
void ScheduleNextRtcpReport();
@@ -110,6 +113,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_;
};

Powered by Google App Engine
This is Rietveld 408576698