JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Question about DESKey
Moderator: UNKNwYSHSA
Question about DESKey
Can I create DESKey in transient memory? Will DESKey keep the key data permanently?
Re: Question about DESKey
Yes it can be transient memory key.
DESKey myDesKey = KeyBuilder.buildKey(KeyBuilder.TYPE_DES_TRANSIENT_RESET, KeyBuilder.LENGTH_DES, false);
Once you have finished using the myDesKey or whatever transient DES key or keys, just called myDesKey.clearKey(); or whatever key name with the clearKey() function. This will zeroize the key from memory. If by accident or chance your card's power were to trip or the card removed unexpectedly, the memory will also be cleared since it's RAM/transient in nature.
Look at the KeyBuilder API (http://www.javafind.net/library/111/jav ... mmary.html) and select your desired key type (DES, 2DES, 3DES ...etc...) and TRANSIENT_RESET or TRANSIENT_DESELECT type (read the API).
DESKey myDesKey = KeyBuilder.buildKey(KeyBuilder.TYPE_DES_TRANSIENT_RESET, KeyBuilder.LENGTH_DES, false);
Once you have finished using the myDesKey or whatever transient DES key or keys, just called myDesKey.clearKey(); or whatever key name with the clearKey() function. This will zeroize the key from memory. If by accident or chance your card's power were to trip or the card removed unexpectedly, the memory will also be cleared since it's RAM/transient in nature.
Look at the KeyBuilder API (http://www.javafind.net/library/111/jav ... mmary.html) and select your desired key type (DES, 2DES, 3DES ...etc...) and TRANSIENT_RESET or TRANSIENT_DESELECT type (read the API).
Re: Question about DESKey
Thank you very much for your detailed answer. It helps me a lot . 

Who is online
Users browsing this forum: No registered users and 23 guests