Page 1 of 1

How to create AES keys

Posted: Thu May 04, 2017 11:17 pm
by Gibson
Hey bro here,

Could some one guide me how to create AES keys on Java Card? I am a little confusing about this . Thanks.

Re: How to create AES keys

Posted: Fri May 05, 2017 4:38 am
by mabel
FYI

Code: Select all

AESKey key = (AESKey) KeyBuilder.buildKey(KeyBuilder.TYPE_AES,KeyBuilder.LENGTH_AES_128,false);

key.setKey(randomDataof128bitLength,(short)0);

Re: How to create AES keys

Posted: Fri May 05, 2017 6:30 am
by Thelogan
Please note that most javacard only support DES /3DES as symmetric cipher.