aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/get_enc.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-11 00:00:10 +0000
committerlloyd <[email protected]>2008-11-11 00:00:10 +0000
commit894a225d14043cbd0cbd42c677ab4063b461fa24 (patch)
treed86973c4bc9bcddf4ac1970728479bf04e8f6522 /src/libstate/get_enc.cpp
parente6abb0fd8289619d559ff430dff84f0de4f82808 (diff)
Remove lookup.h use from DLIES, PK key agreement, DSA param gen, get_enc.cpp
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 ea02dd092..143cec21c 100644
--- a/src/libstate/get_enc.cpp
+++ b/src/libstate/get_enc.cpp
@@ -190,6 +190,9 @@ KDF* get_kdf(const std::string& algo_spec)
{
SCAN_Name request(algo_spec);
+ if(request.algo_name() == "Raw")
+ return 0; // No KDF
+
#if defined(BOTAN_HAS_KDF1)
if(request.algo_name() == "KDF1" && request.arg_count() == 1)
return new KDF1(get_hash(request.arg(0)));