Show / Hide Table of Contents

Interface MutualAuthenticateHandler

Namespace: scmapi
Assembly: scmapi.dll
Syntax
public interface MutualAuthenticateHandler

Methods

computeMutualAuthenticate1(Byte[], Byte[])

Performs the first half of the authentication process.

Declaration
byte[] computeMutualAuthenticate1(byte[] iccSerial, byte[] iccChallenge)
Parameters
Type Name Description
System.Byte[] iccSerial

the serial number of the card. 10 bytes are given for iccSerial but only the 8 last bytes should be used.

System.Byte[] iccChallenge

the 8-bytes random word given by the card.

Returns
Type Description
System.Byte[]

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(Byte[])

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.

Declaration
List<byte[]> computeMutualAuthenticate2(byte[] response)
Parameters
Type Name Description
System.Byte[] response

the response of previous mutual authenticate command.

Returns
Type Description
System.Collections.Generic.List<System.Byte[]>

the session encrypt key, the session mac key and sequence in a list.

Back to top Generated by DocFX