further clean up
Change-Id: I79a541209d6fd852aaf0f4e8f6fef3f61682a5a9
diff --git a/tests/unit-tests/crypto-helper.t.cpp b/tests/unit-tests/crypto-helper.t.cpp
index 63f7c11..ba644ae 100644
--- a/tests/unit-tests/crypto-helper.t.cpp
+++ b/tests/unit-tests/crypto-helper.t.cpp
@@ -49,8 +49,8 @@
ECDHState aliceState;
auto alicePub = aliceState.getSelfPubKey();
BOOST_CHECK(!alicePub.empty());
- uint8_t fakePub[] = {0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b};
- BOOST_CHECK_THROW(aliceState.deriveSecret(fakePub, sizeof(fakePub)), std::runtime_error);
+ std::vector<uint8_t> fakePub(10, 0x0b);
+ BOOST_CHECK_THROW(aliceState.deriveSecret(fakePub), std::runtime_error);
}
BOOST_AUTO_TEST_CASE(HmacSha256)