diff --git a/hwb1/src/hwb1/SecretApplet.java b/hwb1/src/hwb1/SecretApplet.java index 12520af..a919bdd 100644 --- a/hwb1/src/hwb1/SecretApplet.java +++ b/hwb1/src/hwb1/SecretApplet.java @@ -157,6 +157,9 @@ public class SecretApplet extends Applet { } catch (CryptoException exception) { ISOException.throwIt((short)(ISO7816.SW_WRONG_LENGTH | exception.getReason())); } + finally { + Util.arrayFill(storage, (short)0, (short)storage.length, (byte)0); + } ISOException.throwIt(ISO7816.SW_NO_ERROR); }