proxygen
|
#include <KeyExchange.h>
Public Member Functions | |
virtual | ~KeyExchange ()=default |
virtual void | generateKeyPair ()=0 |
virtual std::unique_ptr< folly::IOBuf > | getKeyShare () const =0 |
virtual std::unique_ptr< folly::IOBuf > | generateSharedSecret (folly::ByteRange keyShare) const =0 |
Interface for key exchange algorithms.
Definition at line 19 of file KeyExchange.h.
|
virtualdefault |
|
pure virtual |
Generates an ephemeral key pair.
Implemented in fizz::OpenSSLKeyExchange< T >, and fizz::X25519KeyExchange.
|
pure virtual |
Generate a shared secret with our key pair and a peer's public key share.
Performs all necessary validation of the public key share and throws on error.
generateKeyPair() must be called before.
Implemented in fizz::OpenSSLKeyExchange< T >, and fizz::X25519KeyExchange.
Referenced by fizz::sm::negotiatePsk().
|
pure virtual |
Returns the public key to share with peers.
generateKeyPair() must be called before.
Implemented in fizz::OpenSSLKeyExchange< T >, and fizz::X25519KeyExchange.