Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Commit

Permalink
Da fehlten die trim() - fuehrte zu Fehlern, wenn da Leerzeichen dran …
Browse files Browse the repository at this point in the history
…hingen. Siehe Mail von Guenther vom 18.08.2015
  • Loading branch information
willuhn committed Aug 18, 2015
1 parent d486a09 commit e3b6bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/kapott/hbci/smartcardio/RSAKeyData.java
Expand Up @@ -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;
Expand Down

0 comments on commit e3b6bb9

Please sign in to comment.