proxygen
|
#include <HandshakeContext.h>
Public Member Functions | |
HandshakeContextImpl (const std::string &hkdfLabelPrefix) | |
void | appendToTranscript (const Buf &data) override |
Buf | getHandshakeContext () const override |
Buf | getFinishedData (folly::ByteRange baseKey) const override |
folly::ByteRange | getBlankContext () const override |
Public Member Functions inherited from fizz::HandshakeContext | |
virtual | ~HandshakeContext ()=default |
Private Attributes | |
folly::ssl::OpenSSLHash::Digest | hashState_ |
std::string | hkdfLabelPrefix_ |
Definition at line 47 of file HandshakeContext.h.
fizz::HandshakeContextImpl< Hash >::HandshakeContextImpl | ( | const std::string & | hkdfLabelPrefix | ) |
Definition at line 14 of file HandshakeContext-inl.h.
References folly::ssl::OpenSSLHash::Digest::hash_init(), and fizz::HandshakeContextImpl< Hash >::hashState_.
|
overridevirtual |
Appends transcript to the current handshake transcript.
Implements fizz::HandshakeContext.
Definition at line 22 of file HandshakeContext-inl.h.
References folly::ssl::OpenSSLHash::Digest::hash_update(), and fizz::HandshakeContextImpl< Hash >::hashState_.
|
inlineoverridevirtual |
Returns the handshake context for an empty transcript.
Implements fizz::HandshakeContext.
Definition at line 57 of file HandshakeContext.h.
|
overridevirtual |
Returns the finished verify_data from the current handshake context and baseKey.
Implements fizz::HandshakeContext.
Definition at line 37 of file HandshakeContext-inl.h.
References context, folly::IOBuf::create(), data, fizz::HandshakeContextImpl< Hash >::getHandshakeContext(), and fizz::HandshakeContextImpl< Hash >::hkdfLabelPrefix_.
|
overridevirtual |
Returns the handshake context for the current transcript.
Implements fizz::HandshakeContext.
Definition at line 27 of file HandshakeContext-inl.h.
References folly::IOBuf::create(), folly::ssl::OpenSSLHash::Digest::hash_final(), and fizz::HandshakeContextImpl< Hash >::hashState_.
Referenced by fizz::HandshakeContextImpl< Hash >::getFinishedData().
|
private |
Definition at line 62 of file HandshakeContext.h.
Referenced by fizz::HandshakeContextImpl< Hash >::appendToTranscript(), fizz::HandshakeContextImpl< Hash >::getHandshakeContext(), and fizz::HandshakeContextImpl< Hash >::HandshakeContextImpl().
|
private |
Definition at line 63 of file HandshakeContext.h.
Referenced by fizz::HandshakeContextImpl< Hash >::getFinishedData().