From b04b2db585d4878272778641edfbb24f4fdba89d Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 4 Oct 2017 12:46:27 +0200 Subject: update eID decryption implementation in mobile-auth module --- .../bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java') diff --git a/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java b/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java index d6e814a9d..43043ddd6 100644 --- a/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java +++ b/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java @@ -250,17 +250,7 @@ public class FirstBKAMobileAuthTask extends AbstractAuthServletTask { SecretKey derivedKey = factory.generateSecret(spec); SecretKeySpec symKeySpec = new SecretKeySpec(derivedKey.getEncoded(), "AES"); return symKeySpec; - -// KeyGenerator pbkdf2 = KeyGenerator.getInstance("PBKDF2"); -// PBEKeyAndParameterSpec parameterSpec = -// new PBEKeyAndParameterSpec(decryptionPassPhrase.getBytes(), salt, 2000, 16); -// pbkdf2.init(parameterSpec, random); -// SecretKey derivedKey = pbkdf2.generateKey(); -// -// SecretKeySpec spec = new SecretKeySpec(derivedKey.getEncoded(), "AES"); -// SecretKeyFactory kf = SecretKeyFactory.getInstance("AES"); -// return kf.generateSecret(spec); - + } catch (NoSuchAlgorithmException | InvalidKeySpecException e) { Logger.error("Mobile-Auth Module has an internal errror.", e); throw new MOAIDException("Mobile-Auth Module has an internal errror.", null, e); -- cgit v1.2.3