diff options
Diffstat (limited to 'src/constructs/passhash')
-rw-r--r-- | src/constructs/passhash/passhash9.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/constructs/passhash/passhash9.cpp b/src/constructs/passhash/passhash9.cpp index b869e2812..d6477de63 100644 --- a/src/constructs/passhash/passhash9.cpp +++ b/src/constructs/passhash/passhash9.cpp @@ -29,8 +29,16 @@ MessageAuthenticationCode* get_pbkdf_prf(byte alg_id) { Algorithm_Factory& af = global_state().algorithm_factory(); - if(alg_id == 0) - return af.make_mac("HMAC(SHA-1)"); + try + { + if(alg_id == 0) + return af.make_mac("HMAC(SHA-1)"); + + } + catch(Algorithm_Not_Found) + { + return 0; + } return 0; } |