diff options
Diffstat (limited to 'security/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc')
-rw-r--r-- | security/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/security/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc b/security/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc index 1d6ff0118..dac2a41ba 100644 --- a/security/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc +++ b/security/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) \ |