Skip to content

Commit

Permalink
Fix #610: Throwable and Error should not be caught (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
jandusil committed May 31, 2024
1 parent 05de759 commit 0317d82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public static byte[] deriveSharedInfo2Base(EncryptorScope scope, String applicat
}
try {
return new HMACHashUtilities().hash(transportKey, applicationSecretBytes);
} catch (Throwable t) {
throw new EciesException("HMAC calculation failed", t);
} catch (Exception e) {
throw new EciesException("HMAC calculation failed", e);
}
}
}
Expand Down

0 comments on commit 0317d82

Please sign in to comment.