aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-28 16:52:37 +0000
committerlloyd <[email protected]>2008-11-28 16:52:37 +0000
commitd103171e812cf4067d758be7c65a210422a26932 (patch)
tree515d293d99e0033488c6e30bdec3ea1f0229af23
parent8ab3976a478f0b2f4184c747d6f425a4a85e8342 (diff)
Allow asking for EMSA3(Raw) in get_emsa (returning a new EMSA3_Raw object)
-rw-r--r--src/libstate/get_enc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstate/get_enc.cpp b/src/libstate/get_enc.cpp
index 60a92d53e..c34caf30b 100644
--- a/src/libstate/get_enc.cpp
+++ b/src/libstate/get_enc.cpp
@@ -136,7 +136,11 @@ EMSA* get_emsa(const std::string& algo_spec)
#if defined(BOTAN_HAS_EMSA3)
if(request.algo_name() == "EMSA3" && request.arg_count() == 1)
+ {
+ if(request.arg(0) == "Raw")
+ return new EMSA3_Raw;
return new EMSA3(af.make_hash_function(request.arg(0)));
+ }
#endif
#if defined(BOTAN_HAS_EMSA4)