summaryrefslogtreecommitdiff
path: root/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc')
-rw-r--r--nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc b/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc
index 1d6ff01..dac2a41 100644
--- a/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc
+++ b/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc
@@ -9,9 +9,11 @@
#include "pk11pub.h"
#include "sechash.h"
-#include "gtest/gtest.h"
+#include "cpputil.h"
#include "scoped_ptrs.h"
+#include "gtest/gtest.h"
+
namespace nss_test {
// ChaCha20/Poly1305 Test Vector 1, RFC 7539
@@ -216,10 +218,6 @@ class Pkcs11ChaCha20Poly1305Test : public ::testing::Test {
protected:
CK_MECHANISM_TYPE mech = CKM_NSS_CHACHA20_POLY1305;
-
- unsigned char* toUcharPtr(const uint8_t* v) {
- return const_cast<unsigned char*>(static_cast<const unsigned char*>(v));
- }
};
#define ENCRYPT_DECRYPT(v) \