PatMatSK / javacard_simple_appplet

Simple javacard applet that can store and send data, encrypt, decrypt and verify pin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is simple Javacard Applet with this instructions:

  • get name ( hardcoded in code)
  • set data ( send data to apdu maxlen = 20B )
  • get data ( get data from card, must require exact size )
  • encrypt ( encrypt with AES128 mode CBC with no padding, only aligned data required, also sign with mac, max data size = 64B )
  • decrypt ( verify mac, then decrypt data with AES128 CBC )

MAC ( size = 16B ) is appended at the end of ciphered data

.script files are test scripts for Eclipse enviroment. text.txt if for physical card tested with GPshell.

About

Simple javacard applet that can store and send data, encrypt, decrypt and verify pin.


Languages

Language:Java 100.0%