3#include <StormByte/crypto/crypter/generic.hxx>
4#include <StormByte/crypto/keypair/generic.hxx>
10namespace StormByte::Crypto::Crypter {
64 inline Asymmetric(
enum Type type, KeyPair::Generic::PointerType keypair):
65 Generic(type), m_keypair(keypair) {}
73 Generic(type), m_keypair(keypair.Clone()) {}
81 Generic(type), m_keypair(keypair.Move()) {}
90 STORMBYTE_CRYPTO_PUBLIC Generic::PointerType Create(
enum Type type, KeyPair::Generic::PointerType keypair)
noexcept;
98 STORMBYTE_CRYPTO_PUBLIC Generic::PointerType Create(
enum Type type,
const KeyPair::Generic& keypair)
noexcept;
106 STORMBYTE_CRYPTO_PUBLIC Generic::PointerType Create(
enum Type type,
KeyPair::Generic&& keypair)
noexcept;
A generic asymmetric crypter class.
Definition generic.hxx:15
Asymmetric(enum Type type, const KeyPair::Generic &keypair)
Constructor.
Definition generic.hxx:72
Asymmetric(Asymmetric &&other) noexcept=default
Move constructor.
Asymmetric(const Asymmetric &other)=default
Copy constructor.
Asymmetric(enum Type type, KeyPair::Generic &&keypair)
Constructor.
Definition generic.hxx:80
virtual ~Asymmetric() noexcept=default
Virtual destructor.
KeyPair::Generic::PointerType m_keypair
The password used for asymmetric encryption.
Definition generic.hxx:57
Asymmetric(enum Type type, KeyPair::Generic::PointerType keypair)
Constructor.
Definition generic.hxx:64
A generic crypter class.
Definition generic.hxx:32
A generic class.
Definition generic.hxx:34
The namespace containing all the keypair-related classes.