Package io.anyline.nfc.Reader
Class AesReader
-
- All Implemented Interfaces:
public class AesReader extends AbstractReader
-
-
Constructor Summary
Constructors Constructor Description AesReader()
-
Method Summary
Modifier and Type Method Description Array<byte>
calculateEncryptionKey(Array<byte> seed)
return 16 bytes key Array<byte>
encrypt(Array<byte> key, Array<byte> payload)
Array<byte>
decrypt(Array<byte> key, Array<byte> payload)
Array<byte>
calculateMac(Array<byte> macKey, Array<byte> message)
Array<byte>
calculateMac(Array<byte> macKey, Array<byte> message, boolean addPad)
Array<byte>
calculateSequenceCounter(Array<byte> payload)
Array<byte>
padData(Array<byte> data)
-
Methods inherited from class io.anyline.nfc.Reader.AbstractReader
getBacChallenge, incrementSequenceCounter, initSession, initSession, readFile, setApduWithLe, setBacInfo, setMaxBlockSize, setMutualAuthLe, setProgressListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
calculateEncryptionKey
Array<byte> calculateEncryptionKey(Array<byte> seed)
return 16 bytes key
-
calculateMac
Array<byte> calculateMac(Array<byte> macKey, Array<byte> message)
-
calculateMac
Array<byte> calculateMac(Array<byte> macKey, Array<byte> message, boolean addPad)
-
calculateSequenceCounter
Array<byte> calculateSequenceCounter(Array<byte> payload)
-
-
-
-