proxygen
|
#include <KeyDerivation.h>
Public Member Functions | |
virtual | ~KeyDerivation ()=default |
virtual size_t | hashLength () const =0 |
virtual folly::ByteRange | blankHash () const =0 |
virtual Buf | expandLabel (folly::ByteRange secret, folly::StringPiece label, Buf hashValue, uint16_t length)=0 |
virtual std::vector< uint8_t > | deriveSecret (folly::ByteRange secret, folly::StringPiece label, folly::ByteRange messageHash)=0 |
virtual Buf | hkdfExpand (folly::ByteRange secret, Buf info, uint16_t length)=0 |
virtual std::vector< uint8_t > | hkdfExtract (folly::ByteRange salt, folly::ByteRange ikm)=0 |
virtual void | hash (const folly::IOBuf &in, folly::MutableByteRange out)=0 |
virtual void | hmac (folly::ByteRange key, const folly::IOBuf &in, folly::MutableByteRange out)=0 |
Interface for common TLS 1.3 key derivation functions.
Definition at line 19 of file KeyDerivation.h.
|
virtualdefault |
|
pure virtual |
Returns the hash of a blank input (ie Hash("")).
Implemented in fizz::KeyDerivationImpl< Hash >.
|
pure virtual |
Implemented in fizz::KeyDerivationImpl< Hash >.
Referenced by fizz::KeyDerivationImpl< Hash >::blankHash(), and fizz::MockKeyDerivation::hkdfExpand().
|
pure virtual |
Implemented in fizz::KeyDerivationImpl< Hash >, and fizz::MockKeyDerivation.
Referenced by fizz::KeyDerivationImpl< Hash >::blankHash().
|
pure virtual |
Implemented in fizz::KeyDerivationImpl< Hash >.
Referenced by fizz::MockKeyDerivation::hkdfExpand().
|
pure virtual |
Implemented in fizz::KeyDerivationImpl< Hash >.
|
pure virtual |
Performs HDKF expansion.
Implemented in fizz::KeyDerivationImpl< Hash >, and fizz::MockKeyDerivation.
Referenced by fizz::KeyDerivationImpl< Hash >::blankHash().
|
pure virtual |
Implemented in fizz::KeyDerivationImpl< Hash >.
Referenced by fizz::MockKeyDerivation::hkdfExpand().
|
pure virtual |
Implemented in fizz::KeyDerivationImpl< Hash >.
Referenced by fizz::MockKeyDerivation::hkdfExpand().