aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils/CryptUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/utils/CryptUtils.java')
-rw-r--r--main/src/cgeo/geocaching/utils/CryptUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/utils/CryptUtils.java b/main/src/cgeo/geocaching/utils/CryptUtils.java
index 18a337d..9d95c68 100644
--- a/main/src/cgeo/geocaching/utils/CryptUtils.java
+++ b/main/src/cgeo/geocaching/utils/CryptUtils.java
@@ -5,6 +5,7 @@ import android.text.Spannable;
import android.text.SpannableStringBuilder;
import java.math.BigInteger;
+import java.security.GeneralSecurityException;
import java.security.MessageDigest;
import javax.crypto.Mac;
@@ -111,7 +112,7 @@ public final class CryptUtils {
final Mac mac = Mac.getInstance("HmacSHA1");
mac.init(secretKeySpec);
macBytes = mac.doFinal(text.getBytes());
- } catch (Exception e) {
+ } catch (GeneralSecurityException e) {
Log.e("CryptUtils.hashHmac", e);
}