TABLE OF CONTENTS

 

[Modules] Functions

NAME

   MifUlCAPI :: Card functions functions

COPYRIGHT

DESCRIPTION

   Implementation of the various Mifare UltraLight C functions.

[Functions] Authenticate

NAME

   Authenticate

DESCRIPTION

   Perform authentication using the specified 3DES key on the currently selected
   Mifare UltraLight C card.

SYNOPSIS

   [[sprox_mifulc.dll]]
   SWORD SPROX_MifUlC_Authenticate(const BYTE key_value[16]);

   [[sprox_mifulc_ex.dll]]
   SWORD SPROXx_MifUlC_Authenticate(SPROX_INSTANCE rInst,
                                     const BYTE key_value[16]);

   [[pcsc_mifulcdll]]
   LONG  SCardMifUlC_Authenticate(SCARDHANDLE hCard,
                                   const BYTE key_value[16]);

INPUTS

   const BYTE key_value[16] : 16-byte Access Key (3DES2K key)

RETURNS

   MI_OK : authentication succeed
   Other code if internal or communication error has occured. 

[Functions] ChangeKey

NAME

   ChangeKey

DESCRIPTION

   Write the new 3DES key into a Mifare UltraLight C card.

SYNOPSIS

   [[sprox_mifulc.dll]]
   SWORD SPROX_MifUlC_ChangeKey(const BYTE key_value[16]);

   [[sprox_mifulc_ex.dll]]
   SWORD SPROXx_MifUlC_ChangeKey(SPROX_INSTANCE rInst,
                                 const BYTE key_value[16]);

   [[pcsc_mifulcdll]]
   LONG  SCardMifUlC_ChangeKey(SCARDHANDLE hCard,
                               const BYTE key_value[16]);

INPUTS

   const BYTE key_value[16] : new 16-byte Access Key (3DES2K key)

RETURNS

   MI_OK : authentication succeed
   Other code if internal or communication error has occured. 

[Functions] Read

NAME

   Read

DESCRIPTION

   Read 16 bytes (4 pages) from a Mifare UltraLight C card.

SYNOPSIS

   [[sprox_mifulc.dll]]
   SWORD SPROX_MifUlC_Read(BYTE address,
                           BYTE data[16]);

   [[sprox_mifulc_ex.dll]]
   SWORD SPROXx_MifUlC_Read(SPROX_INSTANCE rInst,
                            BYTE address,
                            BYTE data[16]);

   [[pcsc_mifulcdll]]
   LONG  SCardMifUlC_Read(SCARDHANDLE hCard,
                          BYTE address,
                          BYTE data[16]);

INPUTS

   BYTE address    : address of the first page to be read
   BYTE data[16]   : buffer for card's data

RETURNS

   MI_OK : authentication succeed
   Other code if internal or communication error has occured. 

[Functions] Write

NAME

   Write

DESCRIPTION

   Write 16 bytes (4 pages) into a Mifare UltraLight C card.

SYNOPSIS

   [[sprox_mifulc.dll]]
   SWORD SPROX_MifUlC_Write(BYTE address,
                            const BYTE data[16]);

   [[sprox_mifulc_ex.dll]]
   SWORD SPROXx_MifUlC_Write(SPROX_INSTANCE rInst,
                             BYTE address,
                             const BYTE data[16]);

   [[pcsc_mifulcdll]]
   LONG  SCardMifUlC_Write(SCARDHANDLE hCard,
                           BYTE address,
                           const BYTE data[16]);

INPUTS

   BYTE address        : address of the first page to be written
   const BYTE data[16] : new data

RETURNS

   MI_OK : authentication succeed
   Other code if internal or communication error has occured. 

[Functions] Write4

NAME

   Write4

DESCRIPTION

   Write 4 bytes (1 page) into a Mifare UltraLight C card.

SYNOPSIS

   [[sprox_mifulc.dll]]
   SWORD SPROX_MifUlC_Write(BYTE address,
                            const BYTE data[4]);

   [[sprox_mifulc_ex.dll]]
   SWORD SPROXx_MifUlC_Write(SPROX_INSTANCE rInst,
                             BYTE address,
                             const BYTE data[4]);

   [[pcsc_mifulcdll]]
   LONG  SCardMifUlC_Write(SCARDHANDLE hCard,
                           BYTE address,
                           const BYTE data[4]);

INPUTS

   BYTE address        : address of the page to be written
   const BYTE data[16] : new data

RETURNS

   MI_OK : authentication succeed
   Other code if internal or communication error has occured. 

Generated from sprox_mifulc_func.c on Mon Jan 30 14:25:29 2012