mal-packet-weaver
C++20 packet serialization/deserialization library.
|
Represents a pair of cryptographic keys (public and private keys). More...
#include "crypto-common.hpp"
Public Member Functions | |
KeyPair (const Key private_key, const Key public_key) | |
Constructs a KeyPair object with the given private and public keys. | |
auto | get_public_key_view () const |
Returns a view of the public key. | |
auto | get_private_key_view () const |
Returns a view of the private key. | |
Public Attributes | |
Key | private_key |
Key | public_key |
Represents a pair of cryptographic keys (public and private keys).
Definition at line 125 of file crypto-common.hpp.
Constructs a KeyPair object with the given private and public keys.
private_key | The private key. |
public_key | The public key. |
Definition at line 132 of file crypto-common.hpp.
|
inlinenodiscard |
Returns a view of the private key.
Definition at line 144 of file crypto-common.hpp.
|
inlinenodiscard |
Returns a view of the public key.
Definition at line 138 of file crypto-common.hpp.
Key mal_packet_weaver::crypto::KeyPair::private_key |
The private key.
Definition at line 146 of file crypto-common.hpp.
Key mal_packet_weaver::crypto::KeyPair::public_key |
The public key.
Definition at line 147 of file crypto-common.hpp.