BALTECH SDK wrapper functions reference
crypto.h File Reference

This command group regroups the commands needed to use the integrated crypto-engine of the Baltech reader. More...

#include "../typedefs.h"

Go to the source code of this file.

Data Structures

struct  brp_Crypto_EncryptBlock_t
 
struct  brp_Crypto_DecryptBlock_t
 
struct  brp_Crypto_EncryptBuffer_t
 
struct  brp_Crypto_DecryptBuffer_t
 
struct  brp_Crypto_BalKeyEncryptBuffer_t
 
struct  brp_Crypto_GetKeySig_t
 
struct  brp_Crypto_CopyConfigKey_t
 

Macros

#define BRP_Crypto_CrptErrInvalidBlock   BRP_ERR_STATUS(0x0200, 0x01)
 Encrypted block format is invalid. More...
 
#define BRP_Crypto_CrptErrAuth   BRP_ERR_STATUS(0x0200, 0x02)
 Internal key cannot be accessed for the specified action due to the access condition flags settings. More...
 
#define BRP_Crypto_CrptErrKeyNotFound   BRP_ERR_STATUS(0x0200, 0x03)
 Specified key not available in the internal key list. More...
 
#define BRP_Crypto_CrptErrWriteConfigkey   BRP_ERR_STATUS(0x0200, 0x04)
 Configuration key cannot be stored in the reader's configuration. More...
 
#define BRP_Crypto_CrptErrInvalidKey   BRP_ERR_STATUS(0x0200, 0x05)
 No valid configuration card key. More...
 

Functions

brp_errcode brp_Crypto_EncryptBlock (brp_Crypto_EncryptBlock_t params)
 This command encrypts an 8-Byte data block given in the Block parameter using the SkipJack algorithm. More...
 
brp_errcode brp_Crypto_DecryptBlock (brp_Crypto_DecryptBlock_t params)
 This command decrypts an 8-Byte data block given in the Block parameter using the SkipJack algorithm. More...
 
brp_errcode brp_Crypto_EncryptBuffer (brp_Crypto_EncryptBuffer_t params)
 This command encrypts a variable length buffer given in the Buffer parameter using the SkipJack algorithm. More...
 
brp_errcode brp_Crypto_DecryptBuffer (brp_Crypto_DecryptBuffer_t params)
 This command decrypts a variable length buffer given in the Buffer parameter using the SkipJack algorithm. More...
 
brp_errcode brp_Crypto_BalKeyEncryptBuffer (brp_Crypto_BalKeyEncryptBuffer_t params)
 This command is a special version of the brp_Crypto_EncryptBuffer() command which always uses a customer key to encrypt a buffer of data and inserts a Crypto-Key at a desired position before encryption. More...
 
brp_errcode brp_Crypto_GetKeySig (brp_Crypto_GetKeySig_t params)
 Returns a signature of the ConfigurationKey to identify the MasterCard needed for this reader. More...
 
brp_errcode brp_Crypto_CopyConfigKey (brp_Crypto_CopyConfigKey_t params)
 Copies the configuration card key 0x0202/0x85 (Device/Run/ConfigCardEncryptKey) to the Custom/Crypto/Key[x] area of the Baltech reader's configuration, where x is the index of the target key, specified in the KeyIndex parameter. More...
 

Detailed Description

This command group regroups the commands needed to use the integrated crypto-engine of the Baltech reader.

Definition in file crypto.h.