diff options
author | Jack Lloyd <[email protected]> | 2017-09-30 12:42:03 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-30 12:42:03 -0400 |
commit | 353331954e806a8d336132c740b8888bc7bf3650 (patch) | |
tree | c333e691928533c3f6c25d1530a6374c8618a134 /src/lib/block/gost_28147 | |
parent | 406c8e6668de8241bfd889bb4c29ea780b38a859 (diff) |
Use explicit on more single-argument constructors
Diffstat (limited to 'src/lib/block/gost_28147')
-rw-r--r-- | src/lib/block/gost_28147/gost_28147.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/block/gost_28147/gost_28147.h b/src/lib/block/gost_28147/gost_28147.h index fb2e981ac..09581191e 100644 --- a/src/lib/block/gost_28147/gost_28147.h +++ b/src/lib/block/gost_28147/gost_28147.h @@ -40,7 +40,7 @@ class BOTAN_PUBLIC_API(2,0) GOST_28147_89_Params final * Federation * @param name of the parameter set */ - GOST_28147_89_Params(const std::string& name = "R3411_94_TestParam"); + explicit GOST_28147_89_Params(const std::string& name = "R3411_94_TestParam"); private: const uint8_t* m_sboxes; std::string m_name; @@ -64,6 +64,9 @@ class BOTAN_PUBLIC_API(2,0) GOST_28147_89 final : public Block_Cipher_Fixed_Para * @param params the sbox parameters to use */ explicit GOST_28147_89(const GOST_28147_89_Params& params); + + explicit GOST_28147_89(const std::string& param_name) : + GOST_28147_89(GOST_28147_89_Params(param_name)) {} private: explicit GOST_28147_89(const std::vector<uint32_t>& other_SBOX) : m_SBOX(other_SBOX), m_EK(8) {} |