proxygen
|
#include <KeyDerivation.h>
Public Member Functions | |
~KeyDerivationImpl () override=default | |
KeyDerivationImpl (const std::string &labelPrefix) | |
size_t | hashLength () const override |
void | hash (const folly::IOBuf &in, folly::MutableByteRange out) override |
void | hmac (folly::ByteRange key, const folly::IOBuf &in, folly::MutableByteRange out) override |
folly::ByteRange | blankHash () const override |
Buf | expandLabel (folly::ByteRange secret, folly::StringPiece label, Buf hashValue, uint16_t length) override |
std::vector< uint8_t > | deriveSecret (folly::ByteRange secret, folly::StringPiece label, folly::ByteRange messageHash) override |
virtual Buf | hkdfExpand (folly::ByteRange secret, Buf info, uint16_t length) override |
std::vector< uint8_t > | hkdfExtract (folly::ByteRange salt, folly::ByteRange ikm) override |
Public Member Functions inherited from fizz::KeyDerivation | |
virtual | ~KeyDerivation ()=default |
Private Attributes | |
std::string | labelPrefix_ |
Definition at line 60 of file KeyDerivation.h.
|
overridedefault |
fizz::KeyDerivationImpl< Hash >::KeyDerivationImpl | ( | const std::string & | labelPrefix | ) |
Definition at line 12 of file KeyDerivation-inl.h.
|
inlineoverridevirtual |
Returns the hash of a blank input (ie Hash("")).
Implements fizz::KeyDerivation.
Definition at line 81 of file KeyDerivation.h.
References fizz::KeyDerivation::deriveSecret(), fizz::KeyDerivation::expandLabel(), fizz::KeyDerivation::hkdfExpand(), deadlock::info(), fizz::test::label, secret, and uint16_t.
|
overridevirtual |
Implements fizz::KeyDerivation.
Definition at line 36 of file KeyDerivation-inl.h.
References folly::IOBuf::copyBuffer(), fizz::KeyDerivationImpl< Hash >::expandLabel(), min, folly::gen::move, and folly::Range< Iter >::size().
|
overridevirtual |
Implements fizz::KeyDerivation.
Definition at line 16 of file KeyDerivation-inl.h.
References folly::Range< Iter >::begin(), fizz::encodeHkdfLabel(), folly::Range< Iter >::end(), fizz::KeyDerivationImpl< Hash >::labelPrefix_, folly::gen::move, and string.
Referenced by fizz::KeyDerivationImpl< Hash >::deriveSecret().
|
inlineoverridevirtual |
Implements fizz::KeyDerivation.
Definition at line 70 of file KeyDerivation.h.
|
inlineoverridevirtual |
Implements fizz::KeyDerivation.
Definition at line 66 of file KeyDerivation.h.
|
overridevirtual |
Performs HDKF expansion.
Implements fizz::KeyDerivation.
Definition at line 28 of file KeyDerivation-inl.h.
|
inlineoverridevirtual |
Implements fizz::KeyDerivation.
Definition at line 99 of file KeyDerivation.h.
|
inlineoverridevirtual |
Implements fizz::KeyDerivation.
Definition at line 74 of file KeyDerivation.h.
|
private |
Definition at line 105 of file KeyDerivation.h.
Referenced by fizz::KeyDerivationImpl< Hash >::expandLabel().