MutualAuthenticateHandler¶
- public interface MutualAuthenticateHandler¶
Methods¶
computeMutualAuthenticate1¶
- byte[] computeMutualAuthenticate1(byte[] iccSerial, byte[] iccChallenge)¶
Performs the first half of the authentication process.
- Parameters:
iccSerial – the serial number of the card. 10 bytes are given for
iccSerial
but only the 8 last bytes should be used.iccChallenge – the 8-bytes random word given by the card
- Throws:
- Returns:
the buffer containing the complete data field (encrypted challenges and key seeds followed by the MAC) to be provided to the MUTUAL AUTHENTICATE command.
computeMutualAuthenticate2¶
- ArrayList<byte[]> computeMutualAuthenticate2(byte[] response)¶
Check the cryptograms generated by the card and finalize the authentication by computing the session keys. Computes session encrypt key, session mac key, and sequence that will be used to open a secure channel.
- Parameters:
response – the response of previous mutual authenticate command.
- Throws:
- Returns:
the session encrypt key, the session mac key and sequence in a List.