aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/sm4/sm4.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block/sm4/sm4.h')
-rw-r--r--src/lib/block/sm4/sm4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/block/sm4/sm4.h b/src/lib/block/sm4/sm4.h
index ed6c6742f..4948b09b7 100644
--- a/src/lib/block/sm4/sm4.h
+++ b/src/lib/block/sm4/sm4.h
@@ -23,7 +23,7 @@ class SM4 final : public Block_Cipher_Fixed_Params<16, 16>
void clear() override;
std::string name() const override { return "SM4"; }
- BlockCipher* clone() const override { return new SM4; }
+ std::unique_ptr<BlockCipher> new_object() const override { return std::make_unique<SM4>(); }
std::string provider() const override;
size_t parallelism() const override;