This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Da fehlten die trim() - fuehrte zu Fehlern, wenn da Leerzeichen dran …

…hingen. Siehe Mail von Guenther vom 18.08.2015
  • Loading branch information...
willuhn committed Aug 18, 2015
1 parent d486a09 commit e3b6bb9b6e64b7549175f579451ba4f46708357e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/org/kapott/hbci/smartcardio/RSAKeyData.java
@@ -54,8 +54,8 @@ public RSAKeyData(int index, Type type, byte[] keyLogData, byte[] publicKeyData)
this.type = type;
this.status = keyLogData[offset];
this.keyType = keyLogData[offset + 1];
this.keyNum = Integer.valueOf(new String(keyLogData, offset + 2, 3, CHARSET));
this.keyVersion = Integer.valueOf(new String(keyLogData, offset + 5, 3, CHARSET));
this.keyNum = Integer.valueOf(new String(keyLogData, offset + 2, 3, CHARSET).trim());
this.keyVersion = Integer.valueOf(new String(keyLogData, offset + 5, 3, CHARSET).trim());
if (publicKeyData == null || status != 0x10) {
this.publicKey = null;

0 comments on commit e3b6bb9

Please sign in to comment.