aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/emsa_x931/emsa_x931.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-04-06 10:55:04 -0400
committerJack Lloyd <[email protected]>2021-04-06 10:55:04 -0400
commitb5f0757d256b7b44afca143c287e91876a2f7e1e (patch)
treefe61f3e9dd56eb9a5c2ff5462518aa1a7d42b0e1 /src/lib/pk_pad/emsa_x931/emsa_x931.h
parent4ccd37a9798815b0a030ec69db9a4ad39c34ecce (diff)
Modify EMSA code to avoid raw pointers as args
Diffstat (limited to 'src/lib/pk_pad/emsa_x931/emsa_x931.h')
-rw-r--r--src/lib/pk_pad/emsa_x931/emsa_x931.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pk_pad/emsa_x931/emsa_x931.h b/src/lib/pk_pad/emsa_x931/emsa_x931.h
index a7075a74e..b9906904f 100644
--- a/src/lib/pk_pad/emsa_x931/emsa_x931.h
+++ b/src/lib/pk_pad/emsa_x931/emsa_x931.h
@@ -24,9 +24,9 @@ class EMSA_X931 final : public EMSA
/**
* @param hash the hash function to use
*/
- explicit EMSA_X931(HashFunction* hash);
+ explicit EMSA_X931(std::unique_ptr<HashFunction> hash);
- std::unique_ptr<EMSA> new_object() override { return std::make_unique<EMSA_X931>(m_hash->clone()); }
+ std::unique_ptr<EMSA> new_object() override { return std::make_unique<EMSA_X931>(m_hash->new_object()); }
std::string name() const override;