From eb08509db031d49e5f045ae8d05e26a7773e13c2 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 13 Oct 2017 17:51:36 -0400 Subject: Accept SHA-1, SHA1, or SHA-160 equally Fixes #1235 [ci skip] --- src/lib/misc/tss/tss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/misc/tss/tss.cpp') diff --git a/src/lib/misc/tss/tss.cpp b/src/lib/misc/tss/tss.cpp index 6d4ea4eaf..8830a2953 100644 --- a/src/lib/misc/tss/tss.cpp +++ b/src/lib/misc/tss/tss.cpp @@ -82,7 +82,7 @@ uint8_t gfp_mul(uint8_t x, uint8_t y) uint8_t rtss_hash_id(const std::string& hash_name) { - if(hash_name == "SHA-160") + if(hash_name == "SHA-160" || hash_name == "SHA-1" || hash_name == "SHA1") return 1; else if(hash_name == "SHA-256") return 2; -- cgit v1.2.3