aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/get_enc.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-10 23:24:43 +0000
committerlloyd <[email protected]>2008-11-10 23:24:43 +0000
commite6abb0fd8289619d559ff430dff84f0de4f82808 (patch)
tree9a327b708ed6dcfb4932fd0e58417da0e51385b2 /src/libstate/get_enc.cpp
parent33495befa5bdd549ff47295a45271942dc2fe081 (diff)
Remove lookup dep from basic pubkey classes
Diffstat (limited to 'src/libstate/get_enc.cpp')
-rw-r--r--src/libstate/get_enc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstate/get_enc.cpp b/src/libstate/get_enc.cpp
index 63da7518b..ea02dd092 100644
--- a/src/libstate/get_enc.cpp
+++ b/src/libstate/get_enc.cpp
@@ -161,6 +161,9 @@ EME* get_eme(const std::string& algo_spec)
{
SCAN_Name request(algo_spec);
+ if(request.algo_name() == "Raw")
+ return 0; // No padding
+
#if defined(BOTAN_HAS_EME_PKCS1v15)
if(request.algo_name() == "PKCS1v15" && request.arg_count() == 0)
return new EME_PKCS1v15;