aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/emsa1
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-23 05:58:20 -0500
committerJack Lloyd <[email protected]>2017-12-23 05:58:20 -0500
commit969007e52ec5f5d5d1c8ba8b54e8cd3c9b117f04 (patch)
tree3b71828831e1f15f494a72dcc196a3bf927ab0a9 /src/lib/pk_pad/emsa1
parent5d59f00cec3f2d5d549b004a154ba82d098bc4b0 (diff)
Deinline functions in EMSA, add pubkey as dependency
Diffstat (limited to 'src/lib/pk_pad/emsa1')
-rw-r--r--src/lib/pk_pad/emsa1/emsa1.cpp6
-rw-r--r--src/lib/pk_pad/emsa1/emsa1.h3
2 files changed, 7 insertions, 2 deletions
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 <botan/emsa1.h>
#include <botan/exceptn.h>
#include <botan/oids.h>
+#include <botan/pk_keys.h>
#include <botan/internal/padding.h>
namespace Botan {
@@ -43,6 +44,11 @@ secure_vector<uint8_t> emsa1_encoding(const secure_vector<uint8_t>& 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;