aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/emsa.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-02 08:38:33 -0400
committerJack Lloyd <[email protected]>2018-08-02 08:38:33 -0400
commita574282bd588241257323b9cbe12ddc86485324d (patch)
tree167d5e3469715a974980c65179f4813cdd4cc65b /src/lib/pk_pad/emsa.cpp
parent19cce473ad73fb1cadd5ee3a5ff5aa79ad384550 (diff)
Accept PKCS1v15 as an alias for EMSA3
Not sure why it didn't have this already
Diffstat (limited to 'src/lib/pk_pad/emsa.cpp')
-rw-r--r--src/lib/pk_pad/emsa.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/pk_pad/emsa.cpp b/src/lib/pk_pad/emsa.cpp
index 126e1421d..52ef268af 100644
--- a/src/lib/pk_pad/emsa.cpp
+++ b/src/lib/pk_pad/emsa.cpp
@@ -55,8 +55,9 @@ EMSA* get_emsa(const std::string& algo_spec)
#if defined(BOTAN_HAS_EMSA_PKCS1)
if(req.algo_name() == "EMSA_PKCS1" ||
- req.algo_name() == "EMSA-PKCS1-v1_5" ||
- req.algo_name() == "EMSA3")
+ req.algo_name() == "PKCS1v15" ||
+ req.algo_name() == "EMSA-PKCS1-v1_5" ||
+ req.algo_name() == "EMSA3")
{
if(req.arg_count() == 2 && req.arg(0) == "Raw")
{