Search found 26 matches
- Thu Feb 02, 2017 5:56 am
- Forum: Algorithm School
- Topic: Elliptic Curve Cryptography
- Replies: 1
- Views: 6698
Re: Elliptic Curve Cryptography
It's recommended to check JavaCard API document firstly.You will find the basic introduction about these. public static final byte ALG_EC_F2M: KeyPair object containing an EC key pair for EC operations over fields of characteristic 2 with polynomial basis. public static final byte ALG_EC_FP: KeyPair...
- Thu Jan 19, 2017 10:36 pm
- Forum: Algorithm School
- Topic: 3DES Key
- Replies: 2
- Views: 7713
Re: 3DES Key
If you use bouncy castle, you can use a 16 byte 2TDEA key.
- Mon Dec 19, 2016 2:10 am
- Forum: Questions & Answers
- Topic: Looking for CRC calculator
- Replies: 2
- Views: 6585
Re: Looking for CRC calculator
In fact, you will find many such tool if you try to google first.
- Thu Nov 03, 2016 10:51 pm
- Forum: Questions & Answers
- Topic: Looking for jCardSim v3.0.4
- Replies: 4
- Views: 9122
Re: Looking for jCardSim v3.0.4
According to what I know, there is no new version after v2.2.2.
- Wed Oct 26, 2016 10:58 pm
- Forum: Card Products
- Topic: Sample code to change ATR history bytes
- Replies: 1
- Views: 7255
Sample code to change ATR history bytes
Share a sample code that used to change card ATR history bytes. package JC_setATRHistBytes; import javacard.framework.*; import org.globalplatform.*; public class JC_setATRHistBytes_cls extends Applet { private static final byte[] newATRHistory = { (byte)'J', (byte)'C', (byte)'O', (byte)'P', (byte)'...
- Tue Oct 25, 2016 2:32 am
- Forum: Algorithm School
- Topic: AES sample code
- Replies: 3
- Views: 10108
Re: AES sample code
FYR package crypto_aes; import javacard.framework.*; import javacard.security.*; import javacardx.crypto.*; public class CryptoAES extends javacard.framework.Applet { //globals AESKey aesKey; Cipher cipherAES; RandomData random; static byte a[]; final short dataOffset = (short) ISO7816.OFFSET_CDATA;...
- Wed Oct 12, 2016 6:16 am
- Forum: Algorithm School
- Topic: CRC32 on java card
- Replies: 2
- Views: 7714
Re: CRC32 on java card
Hope the code below can help you. import javacard.framework.JCSystem; import javacard.framework.Util; public class CRC32 { private static byte[] crc = JCSystem.makeTransientByteArray((short) 4, JCSystem.CLEAR_ON_DESELECT); private static final byte[] poly = { (byte) 0xED, (byte) 0xB8, (byte) 0x83, (...
- Fri Sep 30, 2016 3:46 am
- Forum: Questions & Answers
- Topic: Looking for way to get unique number for java card
- Replies: 3
- Views: 7017
Re: Looking for way to get unique number for java card
You can write a simple pair of setSerialNum() and getSerialNum() methods to have you own unique serial number.
- Mon Sep 12, 2016 3:00 am
- Forum: Algorithm School
- Topic: ECC curve parameters
- Replies: 4
- Views: 10199
Re: ECC curve parameters
Regarding NIST ECC curve parameters, you can refer to this article.
- Wed Jul 20, 2016 5:26 am
- Forum: Questions & Answers
- Topic: Question about JCVM masked and java card framework masked
- Replies: 1
- Views: 5322
Re: Question about JCVM masked and java card framework masked
it is up to the JCVM/JCRE implementor to come up with a way to load these masked packages.