Package io.anyline.nfc.Reader
Class DESedeReader
-
- All Implemented Interfaces:
public class DESedeReader extends AbstractReader
-
-
Constructor Summary
Constructors Constructor Description DESedeReader()
-
Method Summary
Modifier and Type Method Description Array<byte>
calculateEncryptionKey(Array<byte> seed)
return 24 bytes 3DES key Array<byte>
encrypt(Array<byte> key, Array<byte> payload)
3DES Array<byte>
decrypt(Array<byte> key, Array<byte> payload)
3DES Array<byte>
calculateMac(Array<byte> macKey, Array<byte> message)
Array<byte>
calculateMac(Array<byte> macKey, Array<byte> message, boolean addPad)
MAC algorithm 3 of ISO/IEC 9797-1 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 24 bytes 3DES key
-
calculateMac
Array<byte> calculateMac(Array<byte> macKey, Array<byte> message)
-
calculateMac
Array<byte> calculateMac(Array<byte> macKey, Array<byte> message, boolean addPad)
MAC algorithm 3 of ISO/IEC 9797-1
-
calculateSequenceCounter
Array<byte> calculateSequenceCounter(Array<byte> payload)
-
-
-
-