NAME
DesfireAPI :: Ciphering module
COPYRIGHT
(c) 2009 SpringCard - www.springcard.com
DESCRIPTION
Algorithm independant implementation of the DESFIRE ciphering schemes.
NAME
DES_Decrypt
DESCRIPTION
Standard DES decryption (D3 -> E2 -> D1)
SYNOPSIS
[[sprox_desfire.dll]] SWORD SPROX_Desfire_DES_Decrypt(BYTE inoutbuf[8]); [[sprox_desfire_ex.dll]] Not applicable. [[pcsc_desfire.dll]] Not applicable.
RETURNS
DF_OPERATION_OK : success, data has been written Other code if internal or communication error has occured. SEE AL Desfire_DES_SetKey Desfire_DES_Encrypt
NAME
DES_Encrypt
DESCRIPTION
Standard DES encryption (E1 -> D2 -> E3)
SYNOPSIS
[[sprox_desfire.dll]] SWORD SPROX_Desfire_DES_Encrypt(BYTE inoutbuf[8]); [[sprox_desfire_ex.dll]] Not applicable. [[pcsc_desfire.dll]] Not applicable.
RETURNS
DF_OPERATION_OK : success, data has been written Other code if internal or communication error has occured.
SEE ALSO
Desfire_DES_SetKey Desfire_DES_Decrypt
NAME
DES_SetKey
DESCRIPTION
Init a DES context with a 64-bit key Parity bits are not checked
SYNOPSIS
[[sprox_desfire.dll]] SWORD SPROX_Desfire_DES_SetKey(const BYTE key[8]); [[sprox_desfire_ex.dll]] Not applicable. [[pcsc_desfire.dll]] Not applicable.
RETURNS
DF_OPERATION_OK : success, data has been written Other code if internal or communication error has occured.
SEE ALSO
Desfire_DES_Encrypt Desfire_DES_Decrypt
NAME
TDES_Decrypt
DESCRIPTION
Standard 3-DES decryption (D3 -> E2 -> D1)
SYNOPSIS
[[sprox_desfire.dll]] SWORD SPROX_Desfire_TDES_Decrypt(BYTE inoutbuf[8]); [[sprox_desfire_ex.dll]] Not applicable. [[pcsc_desfire.dll]] Not applicable.
RETURNS
DF_OPERATION_OK : success, data has been written Other code if internal or communication error has occured. SEE AL Desfire_TDES_SetKey Desfire_TDES_Encrypt
NAME
TDES_Encrypt
DESCRIPTION
Standard 3-DES encryption (E1 -> D2 -> E3)
SYNOPSIS
[[sprox_desfire.dll]] SWORD SPROX_Desfire_TDES_Encrypt(BYTE inoutbuf[8]); [[sprox_desfire_ex.dll]] Not applicable. [[pcsc_desfire.dll]] Not applicable.
RETURNS
DF_OPERATION_OK : success, data has been written Other code if internal or communication error has occured.
SEE ALSO
Desfire_TDES_SetKey Desfire_TDES_Decrypt
NAME
TDES_SetKey
DESCRIPTION
Init a 3-DES context with 2 64-bit keys Parity bits are not checked
SYNOPSIS
[[sprox_desfire.dll]] SWORD SPROX_Desfire_TDES_SetKey(const BYTE key1[8], const BYTE key2[8], const BYTE key3[8]); [[sprox_desfire_ex.dll]] Not applicable. [[pcsc_desfire.dll]] Not applicable.
RETURNS
DF_OPERATION_OK : success, data has been written Other code if internal or communication error has occured.
SEE ALSO
Desfire_TDES_Encrypt Desfire_TDES_Decrypt