diff options
author | Jack Lloyd <[email protected]> | 2021-04-03 15:11:35 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-03 15:39:52 -0400 |
commit | 75741f8654cd54bb8130696aa7836c5949be60e1 (patch) | |
tree | e4fdbd8448bac7b82b14774e22d0fa5de94e5fa8 /src/lib/block/twofish | |
parent | a7e30a97fe3748e970283bf03936c239642036e6 (diff) |
Add BlockCipher::new_object
Diffstat (limited to 'src/lib/block/twofish')
-rw-r--r-- | src/lib/block/twofish/twofish.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/block/twofish/twofish.h b/src/lib/block/twofish/twofish.h index 5d95c198c..5e5b86ab4 100644 --- a/src/lib/block/twofish/twofish.h +++ b/src/lib/block/twofish/twofish.h @@ -23,7 +23,7 @@ class Twofish final : public Block_Cipher_Fixed_Params<16, 16, 32, 8> void clear() override; std::string name() const override { return "Twofish"; } - BlockCipher* clone() const override { return new Twofish; } + std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<Twofish>(); } private: void key_schedule(const uint8_t[], size_t) override; |