9 #include <gtest/gtest.h> 15 using namespace folly;
31 auto hashValue =
unhexlify(GetParam().hashValue);
35 auto secret = std::vector<uint8_t>(prk.begin(), prk.end());
38 auto out = deriver.expandLabel(
42 GetParam().result.
size() / 2);
49 std::vector<uint8_t>
secret(
51 std::vector<uint8_t> messageHash(
58 std::vector<uint8_t> computed(
74 "09cf566b0a8cb6910fd56947fd030027f8195fc6c5b18ded76d758b436f5db2b",
75 "handshake key expansion, client write iv",
76 "b89ff73312c94b89fadc3320689fd2316a9fd04116b6742e5920a35aaed072a5",
77 "0788c228aca5f4b6873b7b57"},
79 "6174b457f0282fcad096afd50eb92d172638b6fa9baaf8e23ef6b23fe551df73",
82 "e1ad4d2331428327317047fbf73f3545a8c46fc17b1db445586e9e9b4249c00d"},
84 "09cf566b0a8cb6910fd56947fd030027f8195fc6c5b18ded76d758b436f5db2b",
85 "handshake key expansion, client write key",
86 "b89ff73312c94b89fadc3320689fd2316a9fd04116b6742e5920a35aaed072a5",
87 "93f640530d77b1d386e1d1089ec86382"}));
bool unhexlify(const InputString &input, OutputString &output)
static std::unique_ptr< IOBuf > wrapBuffer(const void *buf, std::size_t capacity)
#define EXPECT_EQ(val1, val2)
constexpr size_type size() const
—— Concurrent Priority Queue Implementation ——
Range< unsigned char * > MutableByteRange
TEST_P(KeyDerivationTest, ExpandLabel)
constexpr Range< Iter > range(Iter first, Iter last)
INSTANTIATE_TEST_CASE_P(KeyDerivation, KeyDerivationTest,::testing::Values(KdfParams{"09cf566b0a8cb6910fd56947fd030027f8195fc6c5b18ded76d758b436f5db2b","handshake key expansion, client write iv","b89ff73312c94b89fadc3320689fd2316a9fd04116b6742e5920a35aaed072a5","0788c228aca5f4b6873b7b57"}, KdfParams{"6174b457f0282fcad096afd50eb92d172638b6fa9baaf8e23ef6b23fe551df73","server finished","","e1ad4d2331428327317047fbf73f3545a8c46fc17b1db445586e9e9b4249c00d"}, KdfParams{"09cf566b0a8cb6910fd56947fd030027f8195fc6c5b18ded76d758b436f5db2b","handshake key expansion, client write key","b89ff73312c94b89fadc3320689fd2316a9fd04116b6742e5920a35aaed072a5","93f640530d77b1d386e1d1089ec86382"}))
static constexpr StringPiece secret
Range< const char * > StringPiece
bool hexlify(const InputString &input, OutputString &output, bool append_output)
constexpr folly::StringPiece kHkdfLabelPrefix
TEST(SequencedExecutor, CPUThreadPoolExecutor)