From 969007e52ec5f5d5d1c8ba8b54e8cd3c9b117f04 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 23 Dec 2017 05:58:20 -0500 Subject: Deinline functions in EMSA, add pubkey as dependency --- src/lib/pk_pad/emsa1/emsa1.cpp | 6 ++++++ src/lib/pk_pad/emsa1/emsa1.h | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/lib/pk_pad/emsa1') diff --git a/src/lib/pk_pad/emsa1/emsa1.cpp b/src/lib/pk_pad/emsa1/emsa1.cpp index 76f668f83..b4391b48d 100644 --- a/src/lib/pk_pad/emsa1/emsa1.cpp +++ b/src/lib/pk_pad/emsa1/emsa1.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Botan { @@ -43,6 +44,11 @@ secure_vector emsa1_encoding(const secure_vector& msg, } +std::string EMSA1::name() const + { + return "EMSA1(" + m_hash->name() + ")"; + } + EMSA* EMSA1::clone() { return new EMSA1(m_hash->clone()); diff --git a/src/lib/pk_pad/emsa1/emsa1.h b/src/lib/pk_pad/emsa1/emsa1.h index 35071675f..7b4d027da 100644 --- a/src/lib/pk_pad/emsa1/emsa1.h +++ b/src/lib/pk_pad/emsa1/emsa1.h @@ -27,8 +27,7 @@ class BOTAN_PUBLIC_API(2,0) EMSA1 final : public EMSA EMSA* clone() override; - virtual std::string name() const override - { return "EMSA1(" + m_hash->name() + ")"; }; + std::string name() const override; AlgorithmIdentifier config_for_x509(const Private_Key& key, const std::string& cert_hash_name) const override; -- cgit v1.2.3