We don’t save cookies for guest users. We only use cookies after you login. By logging in on our site you are agreeing to the use of cookies. Privacy Policy
Recently, I am working on java card security study. The first test I would like to do is trying to load a modified CAP file into java card. I modify one byte of the CAP file at will via WinHex. What make me strange is that my modified CAP file can still be uploaded and installed with its standard me...
I have to encrypt data with 3DES algo in my applet. I also need to decrypt the data in my host application. And the key for 3DES should be 24 bytes, anyone can figure out how to extend the 16 byte key to 24 byte key? Here is my code cipherDES = Cipher.getInstance(Cipher.ALG_DES_CBC_ISO9797_M1, false...
I am trying to implement SCP02 i=15, I can calculate the C-MAC with DES for the external authenticate command without any problem, but I can not calculate the C-MAC for the second command with the same algorithm. Anyone know where the problem exists?
The steps are much the same as the explicit, except that there is no INIT-UPDATE/EXT-AUTH commands to deal with. When the first secured APDU is received (CLA = 0x84), follow the process to generate session keys and verify the MAC. The card spec outlines how to generate a MAC with the session keys.
Will it be possible to write a JavaME application which can send http request to JavaCard 3.0 and using JavaCard for strong authentication? I suppose I also have to write a web application and deploy on the JavaCard. Any tips?
You could just use the value that you find in the JC2.2.2 version for the constant ALG_HMAC_SHA1 (= (byte)24) and pass it to the Signature.getInstance() method. So using the value is not a problem. However, the smartcard must support this algorithm in order for you to be able to use. @horse dream ,...
I know I can call JCSystem.getAvailableMemory(MEMORY_TYPE_PERSISTENT) to get the remaining persistent memory of my card. But if the card's memory is over 32767 bytes, how can I get the exact value?
My javacard version is JC2.2.1 for which signature class doesn't include ALG_HMAC_SHA1 method. To my best knowledge, it includes this method after JC2.2.2. So is it possible to use this method without upgrading my card JC version?
The views and comments posted in these fora are personal and do not necessarily represent the those of the Management of JavaCard OS.
The Management of JavaCard OS does not, under any circumstances whatsoever, accept any responsibility for any advice, or recommentations, made by, or implied by, any member or guest vistor of JavaCard OS that results in any loss whatsoever in any manner to a member of JavaCard OS, or to any other person.
Furthermore, the Management of JavaCard OS is not, and cannot be, responsible for the content of any other Internet site(s) that have been linked to from JavaCard OS.