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

Unified Diff: components/gcm_driver/crypto/gcm_message_cryptographer.h

Issue 1243563002: Teach the GCM Driver how to decrypt incoming messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-push-keys
Patch Set: address comment Created 5 years, 2 months 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: components/gcm_driver/crypto/gcm_message_cryptographer.h
diff --git a/components/gcm_driver/crypto/gcm_message_cryptographer.h b/components/gcm_driver/crypto/gcm_message_cryptographer.h
index 58c44a8b7cf217cf412421e9ef9ba01b49f4c6e8..e2b299e5860b45fd544e5463da1ff8dde271bfb4 100644
--- a/components/gcm_driver/crypto/gcm_message_cryptographer.h
+++ b/components/gcm_driver/crypto/gcm_message_cryptographer.h
@@ -32,6 +32,10 @@ namespace gcm {
// messages provided that a cryptographically-strong random salt is used.
class GCMMessageCryptographer {
public:
+ // Salt size, in bytes, that will be used together with the key to create a
+ // unique content encryption key for a given message.
+ static const size_t kSaltSize;
+
GCMMessageCryptographer();
~GCMMessageCryptographer();

Powered by Google App Engine
This is Rietveld 408576698