114 return TwoFish::MakePointer<TwoFish>(*
this);
122 return TwoFish::MakePointer<TwoFish>(std::move(*
this));
132 bool DoEncrypt(std::span<const std::byte> input,
Buffer::WriteOnly& output)
const noexcept override;
148 bool DoDecrypt(std::span<const std::byte> input,
Buffer::WriteOnly& output)
const noexcept override;
Password-based symmetric crypter.
Definition generic.hxx:57
Twofish-CBC crypter.
Definition twofish.hxx:64
TwoFish(Secure::Password password)
Construct with a password.
Definition twofish.hxx:74
PointerType Move() noexcept override
Move this crypter into a new instance.
Definition twofish.hxx:121
TwoFish(const TwoFish &other)=default
Copy constructor.
~TwoFish() noexcept
Destructor.
TwoFish(TwoFish &&other) noexcept=default
Move constructor.
Shared, wiped container for passwords and raw key material.
Definition password.hxx:104
ReadMode
How a source buffer is consumed.
Definition typedefs.hxx:57
Root namespace of the StormByte suite.
#define STORMBYTE_CRYPTO_PUBLIC
Definition visibility.h:53