diff options
Diffstat (limited to 'src/lib/pk_pad')
-rw-r--r-- | src/lib/pk_pad/emsa.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/pk_pad/emsa.cpp b/src/lib/pk_pad/emsa.cpp index 4b02776c2..a3e448686 100644 --- a/src/lib/pk_pad/emsa.cpp +++ b/src/lib/pk_pad/emsa.cpp @@ -196,7 +196,12 @@ std::string hash_for_emsa(const std::string& algo_spec) return pos_hash; } - return "SHA-512"; // safe default if nothing we understand + // If we don't understand what this is return a safe default +#if defined(BOTAN_HAS_SHA2_64) + return "SHA-512"; +#else + return "SHA-256"; +#endif } } |