Delete storage after each processed command
This commit is contained in:
parent
9a025cf2dc
commit
c71df79b32
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue