aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/iso9796/iso9796.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pk_pad/iso9796/iso9796.h')
-rw-r--r--src/lib/pk_pad/iso9796/iso9796.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/pk_pad/iso9796/iso9796.h b/src/lib/pk_pad/iso9796/iso9796.h
index 994295f0f..7af9a269b 100644
--- a/src/lib/pk_pad/iso9796/iso9796.h
+++ b/src/lib/pk_pad/iso9796/iso9796.h
@@ -34,10 +34,9 @@ class BOTAN_PUBLIC_API(2,0) ISO_9796_DS2 final : public EMSA
ISO_9796_DS2(HashFunction* hash, bool implicit, size_t salt_size) : m_hash(hash), m_implicit(implicit),
m_SALT_SIZE(salt_size) {}
- EMSA* clone() override
- {return new ISO_9796_DS2(m_hash->clone(), m_implicit, m_SALT_SIZE);}
+ EMSA* clone() override;
- virtual std::string name() const override;
+ std::string name() const override;
private:
void update(const uint8_t input[], size_t length) override;
@@ -70,10 +69,9 @@ class BOTAN_PUBLIC_API(2,0) ISO_9796_DS3 final : public EMSA
ISO_9796_DS3(HashFunction* hash, bool implicit = false) : m_hash(hash), m_implicit(implicit)
{}
- EMSA* clone() override
- {return new ISO_9796_DS3(m_hash->clone(), m_implicit);}
+ EMSA* clone() override;
- virtual std::string name() const override;
+ std::string name() const override;
private:
void update(const uint8_t input[], size_t length) override;