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

Side by Side Diff: net/quic/crypto/aead_base_encrypter.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ 5 #ifndef NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_
6 #define NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ 6 #define NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "net/quic/crypto/quic_encrypter.h" 9 #include "net/quic/crypto/quic_encrypter.h"
10 10
11 #if defined(USE_OPENSSL) 11 #if defined(USE_OPENSSL)
12 #include "net/quic/crypto/scoped_evp_aead_ctx.h" 12 #include "net/quic/crypto/scoped_evp_aead_ctx.h"
13 #else 13 #else
14 #include <pkcs11t.h> 14 #include <pkcs11t.h>
15 #include <seccomon.h> 15 #include <seccomon.h>
16 typedef struct PK11SymKeyStr PK11SymKey; 16 typedef struct PK11SymKeyStr PK11SymKey;
17 typedef SECStatus (*PK11_EncryptFunction)( 17 typedef SECStatus (*PK11_EncryptFunction)(PK11SymKey* symKey,
18 PK11SymKey* symKey, CK_MECHANISM_TYPE mechanism, SECItem* param, 18 CK_MECHANISM_TYPE mechanism,
19 unsigned char* out, unsigned int* outLen, unsigned int maxLen, 19 SECItem* param,
20 const unsigned char* data, unsigned int dataLen); 20 unsigned char* out,
21 unsigned int* outLen,
22 unsigned int maxLen,
23 const unsigned char* data,
24 unsigned int dataLen);
21 #endif 25 #endif
22 26
23 namespace net { 27 namespace net {
24 28
25 // AeadBaseEncrypter is the base class of AEAD QuicEncrypter subclasses. 29 // AeadBaseEncrypter is the base class of AEAD QuicEncrypter subclasses.
26 class NET_EXPORT_PRIVATE AeadBaseEncrypter : public QuicEncrypter { 30 class NET_EXPORT_PRIVATE AeadBaseEncrypter : public QuicEncrypter {
27 public: 31 public:
28 #if defined(USE_OPENSSL) 32 #if defined(USE_OPENSSL)
29 AeadBaseEncrypter(const EVP_AEAD* aead_alg, 33 AeadBaseEncrypter(const EVP_AEAD* aead_alg,
30 size_t key_size, 34 size_t key_size,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 #if defined(USE_OPENSSL) 105 #if defined(USE_OPENSSL)
102 ScopedEVPAEADCtx ctx_; 106 ScopedEVPAEADCtx ctx_;
103 #endif 107 #endif
104 108
105 DISALLOW_COPY_AND_ASSIGN(AeadBaseEncrypter); 109 DISALLOW_COPY_AND_ASSIGN(AeadBaseEncrypter);
106 }; 110 };
107 111
108 } // namespace net 112 } // namespace net
109 113
110 #endif // NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ 114 #endif // NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698