mf_classic_poller_get_nt_nested

Function mf_classic_poller_get_nt_nested 

Source
pub unsafe extern "C" fn mf_classic_poller_get_nt_nested(
    instance: *mut MfClassicPoller,
    block_num: u8,
    key_type: MfClassicKeyType,
    nt: *mut MfClassicNt,
    backdoor_auth: bool,
) -> MfClassicError
Expand description

Collect tag nonce during nested authentication.

Must ONLY be used inside the callback function.

Starts nested authentication procedure and collects tag nonce.

§Arguments

  • instance (direction in, out) - pointer to the instance to be used in the transaction.
  • block_num (direction in) - block number for authentication.
  • key_type (direction in) - key type to be used for authentication.
  • nt (direction out) - pointer to the MfClassicNt structure to be filled with nonce data.
  • backdoor_auth (direction in) - flag indicating if backdoor authentication is used.

§Returns

MfClassicErrorNone on success, an error code on failure.