aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-01-08 01:11:17 +0000
committerlloyd <[email protected]>2015-01-08 01:11:17 +0000
commit718d577455c2e431e32064950f2612e1381c275a (patch)
treef7fbbad052a82c9f17309f64f3de7e2cec5ad603 /src/lib/engine
parent624787ec08f215a7b0be51ceeeb211a717bf7f50 (diff)
Add SHA-512/256
Define some new functions for copying out arrays of words and use them across hashes.
Diffstat (limited to 'src/lib/engine')
-rw-r--r--src/lib/engine/core_engine/lookup_hash.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/engine/core_engine/lookup_hash.cpp b/src/lib/engine/core_engine/lookup_hash.cpp
index 5665b3040..b5a071c4e 100644
--- a/src/lib/engine/core_engine/lookup_hash.cpp
+++ b/src/lib/engine/core_engine/lookup_hash.cpp
@@ -165,6 +165,8 @@ HashFunction* Core_Engine::find_hash(const SCAN_Name& request,
return new SHA_384;
if(request.algo_name() == "SHA-512")
return new SHA_512;
+ if(request.algo_name() == "SHA-512-256")
+ return new SHA_512_256;
#endif
#if defined(BOTAN_HAS_TIGER)