aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/emsa1
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-05-22 11:49:49 -0400
committerJack Lloyd <[email protected]>2021-05-22 11:50:34 -0400
commit9745a8fed0f94d0fd26f6056572eb072d7108840 (patch)
tree6efcf45d34070e1badbb0ebca9f8b61af8a65c78 /src/lib/pk_pad/emsa1
parentcb803e0c1b016428f9851eb9705498bc253bdb0f (diff)
Prevent using non-sensical padding schemes
Most padding schemes require message recovery, which, now that NR and RW have both been removed, limits their usage to RSA.
Diffstat (limited to 'src/lib/pk_pad/emsa1')
-rw-r--r--src/lib/pk_pad/emsa1/emsa1.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/pk_pad/emsa1/emsa1.h b/src/lib/pk_pad/emsa1/emsa1.h
index 514f2ee9e..2646fcfa7 100644
--- a/src/lib/pk_pad/emsa1/emsa1.h
+++ b/src/lib/pk_pad/emsa1/emsa1.h
@@ -29,6 +29,8 @@ class EMSA1 final : public EMSA
std::string name() const override;
+ bool requires_message_recovery() const override { return false; }
+
AlgorithmIdentifier config_for_x509(const Private_Key& key,
const std::string& cert_hash_name) const override;
private: