diff options
Diffstat (limited to 'src/crypto_hash.cc')
| -rw-r--r-- | src/crypto_hash.cc | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/crypto_hash.cc b/src/crypto_hash.cc index 8448269e..f6fb6d99 100644 --- a/src/crypto_hash.cc +++ b/src/crypto_hash.cc @@ -1032,18 +1032,10 @@ static const std::set<std::string> names{ // For fast name |lookup| static const std::unordered_map<std::string, Algorithms> mapped{ - {"md5", algoMD5}, - {"sha", algoSHA1}, - {"sha1", algoSHA1}, - {"sha-1", algoSHA1}, - {"sha224", algoSHA224}, - {"sha-224", algoSHA224}, - {"sha256", algoSHA256}, - {"sha-256", algoSHA256}, - {"sha384", algoSHA384}, - {"sha-384", algoSHA384}, - {"sha512", algoSHA512}, - {"sha-512", algoSHA512}, + {"md5", algoMD5}, {"sha", algoSHA1}, {"sha1", algoSHA1}, + {"sha-1", algoSHA1}, {"sha224", algoSHA224}, {"sha-224", algoSHA224}, + {"sha256", algoSHA256}, {"sha-256", algoSHA256}, {"sha384", algoSHA384}, + {"sha-384", algoSHA384}, {"sha512", algoSHA512}, {"sha-512", algoSHA512}, }; static const auto mapped_end = mapped.end(); } // namespace |
