46#include <StormByte/safe/clonable.hxx>
47#include <StormByte/safe/optional.hxx>
48#include <StormByte/safe/string.hxx>
49#include <StormByte/type_traits/safe.hxx>
ECDH shared-secret derivation.
Definition ecdh.hxx:68
Abstract key-agreement object.
Definition generic.hxx:92
enum Type m_type
Algorithm.
Definition generic.hxx:147
virtual StormByte::Safe::Optional< Secure::Password > Share(const StormByte::Safe::String &peerPublicKey) const =0
Derive a shared secret from a peer public key.
Generic(Generic &&other) noexcept=default
Move constructor.
Generic(enum Type type, KeyPair::Generic::PointerType keypair) noexcept
Construct with algorithm and keypair.
Definition generic.hxx:155
virtual ~Generic() noexcept
Destructor.
Generic(const Generic &other)=default
Copy constructor.
KeyPair::Generic::PointerType m_keypair
Local keypair (needs private key).
Definition generic.hxx:148
X25519 shared-secret derivation.
Definition x25519.hxx:67
STORMBYTE_DECLARE_MAYBE_SAFE(class StormByte::System::Device::Access)
Key agreement of the Crypto module.
Generic::PointerType Create(Type type, KeyPair::Generic::PointerType keypair)
Create an agreement object.
Crypto module of the StormByte suite.
Definition aead.hxx:53
Root namespace of the StormByte suite.
#define STORMBYTE_CRYPTO_PUBLIC
Definition visibility.h:53