From e781d5551fa411b358ac2233bdc20bc009a6724b Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Thu, 22 Nov 2018 13:09:11 +0100 Subject: [PATCH] remove duplicated generatePairingKey --- .../hardwallet_lite_android/globalplatform/Crypto.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/src/main/java/im/status/hardwallet_lite_android/globalplatform/Crypto.java b/lib/src/main/java/im/status/hardwallet_lite_android/globalplatform/Crypto.java index 88a852e..d68b24e 100644 --- a/lib/src/main/java/im/status/hardwallet_lite_android/globalplatform/Crypto.java +++ b/lib/src/main/java/im/status/hardwallet_lite_android/globalplatform/Crypto.java @@ -135,15 +135,6 @@ public class Crypto { } } - public static byte[] generatePairingKey(char[] pairing) throws NoSuchAlgorithmException, InvalidKeySpecException { - SecretKeyFactory skf = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA256"); - String salt = "Status Hardware Wallet Lite"; - PBEKeySpec spec = new PBEKeySpec(pairing, salt.getBytes(), 50000, 32*8); - SecretKey key = skf.generateSecret(spec); - - return key.getEncoded(); - } - public static byte[] randomBytes(int length) { SecureRandom random = new SecureRandom(); byte data[] = new byte[length];