activeAuthenticate method

Future<Uint8List> activeAuthenticate(
  1. Uint8List challenge, {
  2. int sigLength = 256,
})

Sends active authentication command to MRTD with challenge. challenge must be 8 bytes long. MRTD returns signature of size sigLength or of arbitrarily size if sigLength is 256. Can throw ICCError if challenge is not 8 bytes or sigLength is wrong signature length. Can throw ComProviderError in case connection with MRTD is lost.

Implementation

Future<Uint8List> activeAuthenticate(final Uint8List challenge,
    {int sigLength = 256}) async {
  assert(challenge.length == challengeLen);
  _log.debug("Sending AA command with challenge=${challenge.hex()}");
  return await icc.internalAuthenticate(data: challenge, ne: sigLength);
}