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

Unified Diff: net/quic/crypto/aead_base_decrypter.h

Issue 1882433002: Removing NSS files and USE_OPENSSL flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 8 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
« no previous file with comments | « net/net_common.gypi ('k') | net/quic/crypto/aead_base_decrypter_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/aead_base_decrypter.h
diff --git a/net/quic/crypto/aead_base_decrypter.h b/net/quic/crypto/aead_base_decrypter.h
index c76f11f6c6e7ff1713b73a85ce8c6a48dd7f9d11..715961a591ee4454fa3dd60462b52a42a653c3fa 100644
--- a/net/quic/crypto/aead_base_decrypter.h
+++ b/net/quic/crypto/aead_base_decrypter.h
@@ -10,29 +10,17 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "net/quic/crypto/quic_decrypter.h"
-
-#if defined(USE_OPENSSL)
#include "net/quic/crypto/scoped_evp_aead_ctx.h"
-#else
-#include <pkcs11t.h>
-#endif
namespace net {
// AeadBaseDecrypter is the base class of AEAD QuicDecrypter subclasses.
class NET_EXPORT_PRIVATE AeadBaseDecrypter : public QuicDecrypter {
public:
-#if defined(USE_OPENSSL)
AeadBaseDecrypter(const EVP_AEAD* aead_alg,
size_t key_size,
size_t auth_tag_size,
size_t nonce_prefix_size);
-#else
- AeadBaseDecrypter(CK_MECHANISM_TYPE aead_mechanism,
- size_t key_size,
- size_t auth_tag_size,
- size_t nonce_prefix_size);
-#endif
~AeadBaseDecrypter() override;
// QuicDecrypter implementation
@@ -55,27 +43,8 @@ class NET_EXPORT_PRIVATE AeadBaseDecrypter : public QuicDecrypter {
static const size_t kMaxKeySize = 32;
static const size_t kMaxNoncePrefixSize = 4;
-#if !defined(USE_OPENSSL)
- struct AeadParams {
- unsigned int len;
- union {
- CK_GCM_PARAMS gcm_params;
- CK_NSS_AEAD_PARAMS nss_aead_params;
- } data;
- };
-
- virtual void FillAeadParams(base::StringPiece nonce,
- base::StringPiece associated_data,
- size_t auth_tag_size,
- AeadParams* aead_params) const = 0;
-#endif // !defined(USE_OPENSSL)
-
private:
-#if defined(USE_OPENSSL)
const EVP_AEAD* const aead_alg_;
-#else
- const CK_MECHANISM_TYPE aead_mechanism_;
-#endif
const size_t key_size_;
const size_t auth_tag_size_;
const size_t nonce_prefix_size_;
@@ -85,9 +54,7 @@ class NET_EXPORT_PRIVATE AeadBaseDecrypter : public QuicDecrypter {
// The nonce prefix.
unsigned char nonce_prefix_[kMaxNoncePrefixSize];
-#if defined(USE_OPENSSL)
ScopedEVPAEADCtx ctx_;
-#endif
DISALLOW_COPY_AND_ASSIGN(AeadBaseDecrypter);
};
« no previous file with comments | « net/net_common.gypi ('k') | net/quic/crypto/aead_base_decrypter_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698