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

Unified Diff: net/quic/core/crypto/crypto_secret_boxer.h

Issue 2566783002: Various formatting cleanups to net/quic/crypto and net/quic/congestion_control (Closed)
Patch Set: Rebase Created 4 years 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 | « net/quic/core/crypto/crypto_protocol.h ('k') | net/quic/core/crypto/crypto_secret_boxer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/crypto_secret_boxer.h
diff --git a/net/quic/core/crypto/crypto_secret_boxer.h b/net/quic/core/crypto/crypto_secret_boxer.h
index 14737e0ad8771cf9ab59134d0575abbafffa7b70..93e6f90fc127dbda8858201b2c9aad5826d82907 100644
--- a/net/quic/core/crypto/crypto_secret_boxer.h
+++ b/net/quic/core/crypto/crypto_secret_boxer.h
@@ -5,8 +5,7 @@
#ifndef NET_QUIC_CORE_CRYPTO_CRYPTO_SECRET_BOXER_H_
#define NET_QUIC_CORE_CRYPTO_CRYPTO_SECRET_BOXER_H_
-#include <stddef.h>
-
+#include <cstddef>
#include <string>
#include <vector>
@@ -30,6 +29,7 @@ class QUIC_EXPORT_PRIVATE CryptoSecretBoxer {
// GetKeySize returns the number of bytes in a key.
static size_t GetKeySize();
+ // SetKeys sets a list of encryption keys. The first key in the list will be
// used by |Box|, but all supplied keys will be tried by |Unbox|, to handle
// key skew across the fleet. This must be called before |Box| or |Unbox|.
// Keys must be |GetKeySize()| bytes long.
@@ -38,7 +38,7 @@ class QUIC_EXPORT_PRIVATE CryptoSecretBoxer {
// Box encrypts |plaintext| using a random nonce generated from |rand| and
// returns the resulting ciphertext. Since an authenticator and nonce are
// included, the result will be slightly larger than |plaintext|. The first
- // key in the std::vector supplied to |SetKeys| will be used.
+ // key in the vector supplied to |SetKeys| will be used.
std::string Box(QuicRandom* rand, base::StringPiece plaintext) const;
// Unbox takes the result of a previous call to |Box| in |ciphertext| and
« no previous file with comments | « net/quic/core/crypto/crypto_protocol.h ('k') | net/quic/core/crypto/crypto_secret_boxer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698