11 #include <gmock/gmock.h> 35 return _expandLabel(secret, label, hashValue, length);
38 return _hkdfExpand(secret, info, length);
virtual size_t hashLength() const =0
MOCK_METHOD2(hkdfExtract, std::vector< uint8_t >(folly::ByteRange salt, folly::ByteRange ikm))
MOCK_METHOD3(_hkdfExpand, Buf(folly::ByteRange secret, Buf &info, uint16_t length))
Buf hkdfExpand(folly::ByteRange secret, Buf info, uint16_t length) override
virtual void hmac(folly::ByteRange key, const folly::IOBuf &in, folly::MutableByteRange out)=0
virtual folly::ByteRange blankHash() const =0
virtual std::vector< uint8_t > hkdfExtract(folly::ByteRange salt, folly::ByteRange ikm)=0
std::unique_ptr< folly::IOBuf > Buf
virtual void hash(const folly::IOBuf &in, folly::MutableByteRange out)=0
static constexpr StringPiece secret
MOCK_CONST_METHOD0(hashLength, size_t())
MOCK_METHOD4(_expandLabel, Buf(folly::ByteRange secret, folly::StringPiece label, Buf &hashValue, uint16_t length))
virtual std::vector< uint8_t > deriveSecret(folly::ByteRange secret, folly::StringPiece label, folly::ByteRange messageHash)=0
Buf expandLabel(folly::ByteRange secret, folly::StringPiece label, Buf hashValue, uint16_t length) override