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

Unified Diff: net/quic/crypto/chacha20_poly1305_encrypter_nss.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
diff --git a/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc b/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
index fd6f76ca52f147a292abfce3e7127caebbbb732e..1628bff4de876e57e7fecf24e574a5e6c5905d67 100644
--- a/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
+++ b/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
@@ -24,12 +24,16 @@ const size_t kNoncePrefixSize = 0;
// System NSS doesn't support ChaCha20+Poly1305 yet.
ChaCha20Poly1305Encrypter::ChaCha20Poly1305Encrypter()
- : AeadBaseEncrypter(CKM_INVALID_MECHANISM, NULL, kKeySize,
- kAuthTagSize, kNoncePrefixSize) {
+ : AeadBaseEncrypter(CKM_INVALID_MECHANISM,
+ NULL,
+ kKeySize,
+ kAuthTagSize,
+ kNoncePrefixSize) {
NOTIMPLEMENTED();
}
-ChaCha20Poly1305Encrypter::~ChaCha20Poly1305Encrypter() {}
+ChaCha20Poly1305Encrypter::~ChaCha20Poly1305Encrypter() {
+}
// static
bool ChaCha20Poly1305Encrypter::IsSupported() {
@@ -46,14 +50,18 @@ void ChaCha20Poly1305Encrypter::FillAeadParams(StringPiece nonce,
#else // defined(USE_NSS)
ChaCha20Poly1305Encrypter::ChaCha20Poly1305Encrypter()
- : AeadBaseEncrypter(CKM_NSS_CHACHA20_POLY1305, PK11_Encrypt, kKeySize,
- kAuthTagSize, kNoncePrefixSize) {
+ : AeadBaseEncrypter(CKM_NSS_CHACHA20_POLY1305,
+ PK11_Encrypt,
+ kKeySize,
+ kAuthTagSize,
+ kNoncePrefixSize) {
COMPILE_ASSERT(kKeySize <= kMaxKeySize, key_size_too_big);
COMPILE_ASSERT(kNoncePrefixSize <= kMaxNoncePrefixSize,
nonce_prefix_size_too_big);
}
-ChaCha20Poly1305Encrypter::~ChaCha20Poly1305Encrypter() {}
+ChaCha20Poly1305Encrypter::~ChaCha20Poly1305Encrypter() {
+}
// static
bool ChaCha20Poly1305Encrypter::IsSupported() {

Powered by Google App Engine
This is Rietveld 408576698