public class SymmetricCipherApplet extends BaseApplet
Supported APDUs:
CLA=0x10 INS=0x10 Set AES Key from CData with P1 as key size 128 or 192 bitsCLA=0x10 INS=0x11 Encrypt AES data in CData with cipher algorithm in P1CLA=0x10 INS=0x12 Decrypt AES data in CDatawith cipher algorithm in P1CLA=0x20 INS=0x10 Set DES Key from CData with P1 as key size DES3_2KEY or DES3_3KEYCLA=0x20 INS=0x11 Encrypt DES data in CData with cipher algorithm in P1CLA=0x20 INS=0x12 Decrypt DES data in CDatawith cipher algorithm in P1| Modifier | Constructor and Description |
|---|---|
protected |
SymmetricCipherApplet() |
| Modifier and Type | Method and Description |
|---|---|
static void |
install(byte[] bArray,
short bOffset,
byte bLength) |
void |
process(javacard.framework.APDU apdu) |
public static void install(byte[] bArray,
short bOffset,
byte bLength)
throws javacard.framework.ISOException
javacard.framework.ISOExceptionpublic void process(javacard.framework.APDU apdu)
throws javacard.framework.ISOException
process in class javacard.framework.Appletjavacard.framework.ISOException