TABLE OF CONTENTS

 

[Modules] Authentication

NAME

   MifPlusAPI :: Authentication functions

COPYRIGHT

DESCRIPTION

   Implementation of the Mifare Plus S and X authentication functions.

[Functions] FirstAuthenticate

NAME

   FirstAuthenticate

DESCRIPTION

   Perform authentication using the specified AES key on the currently selected
   Mifare Plus card.

SYNOPSIS

   [[sprox_mifplus.dll]]
   SWORD SPROX_MifPlus_FirstAuthenticate(WORD key_address,
                                         const BYTE key_value[16]
                                         const BYTE pcd_cap[],
                                         BYTE pcd_cap_len,
                                         BYTE picc_cap[6]);

   [[sprox_mifplus_ex.dll]]
   SWORD SPROXx_MifPlus_FirstAuthenticate(SPROX_INSTANCE rInst,
                                          WORD key_address,
                                          const BYTE key_value[16],
                                          const BYTE pcd_cap[],
                                          BYTE pcd_cap_len,
                                          BYTE picc_cap[6]);

   [[pcsc_mifplus.dll]]
   LONG  SCardMifPlus_FirstAuthenticate(SCARDHANDLE hCard,
                                        WORD key_address,
                                        const BYTE key_value[16],
                                        const BYTE pcd_cap[],
                                        BYTE pcd_cap_len,
                                        BYTE picc_cap[6]);

INPUTS

   WORD key_address               : the address of the key within the card
   const BYTE key_value[16]       : 16-byte key (AES)
   const BYTE pcd_cap[]           : PCDcap2 field (to be provided by the application)
   BYTE pcd_cap_len               : size of pcd_cap (0 to 6)
   BYTE picc_cap[6]               : upon success, the PICCcap2 field returned by the card (6 bytes)

SEE ALSO

   FollowingAuthenticate

[Functions] FollowingAuthenticate

NAME

   FollowingAuthenticate

DESCRIPTION

   Perform authentication using the specified AES key on the currently selected
   Mifare Plus card.

NOTES

   In Level 3, FollowingAuthenticate could only be called within a session
   previously opened through FirstAuthenticate.
   In Level 1, FollowingAuthenticate could also be used outside a session
   (typically to verify the SL1 Card Authentication Key or to switch to
   an higher level).

SYNOPSIS

   [[sprox_mifplus.dll]]
   SWORD SPROX_MifPlus_FollowingAuthenticate(WORD key_address,
                                             const BYTE key_value[16]);

   [[sprox_mifplus_ex.dll]]
   SWORD SPROXx_MifPlus_FollowingAuthenticate(SPROX_INSTANCE rInst,
                                              WORD key_address,
                                              const BYTE key_value[16]);

   [[pcsc_mifplus.dll]]
   LONG  SCardMifPlus_FollowingAuthenticate(SCARDHANDLE hCard,
                                            WORD key_address,
                                            const BYTE key_value[16]);

INPUTS

   WORD key_address               : the address of the key within the card
   const BYTE key_value[16]       : 16-byte key (AES)

SEE ALSO

   FirstAuthenticate

[Functions] ResetAuthentication

NAME

   ResetAuthentication

DESCRIPTION

   Reset the authentication state of the Mifare Plus.

SYNOPSIS

   [[sprox_mifplus.dll]]
   SWORD SPROX_MifPlus_ResetAuthentication(void);

   [[sprox_mifplus_ex.dll]]
   SWORD SPROXx_MifPlus_ResetAuthentication(SPROX_INSTANCE rInst)

   [[pcsc_mifplus.dll]]
   LONG  SCardMifPlus_ResetAuthentication(SCARDHANDLE hCard)

SEE ALSO

   FirstAuthenticate
   FollowingAuthenticate

Generated from sprox_mifplus_auth.c on Mon Aug 18 16:38:22 2014