C API for BALTECH SDK
sec.h File Reference
#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Sec_ErrCrypto   BRP_ERR_STATUS(0x0700, 0x01)
 
#define BRP_Sec_ErrTunnel   BRP_ERR_STATUS(0x0700, 0x02)
 

Functions

brp_errcode brp_Sec_GetAcMask (brp_protocol protocol, unsigned SecLevel, brp_HostSecurityAccessConditionBits *AcMask)
 
brp_errcode brp_Sec_SetAcMask (brp_protocol protocol, unsigned SecLevel, brp_HostSecurityAccessConditionBits AcMask)
 
brp_errcode brp_Sec_SetKey (brp_protocol protocol, unsigned ContinuousIV, unsigned Encrypted, unsigned MACed, unsigned SessionKey, unsigned DeriveKey, unsigned SecLevel, brp_buf Key)
 
brp_errcode brp_Sec_AuthPhase1 (brp_protocol protocol, unsigned SecLevel, brp_buf RndA, brp_buf *EncRndA, brp_buf *RndB, bool *ContinuousIV, bool *Encrypted, bool *MACed, bool *SessionKey, brp_mempool *mempool)
 
brp_errcode brp_Sec_AuthPhase2 (brp_protocol protocol, brp_buf EncRndB)
 
brp_errcode brp_Sec_Tunnel (brp_protocol protocol, bool ContinuousIV, bool Encrypted, bool MACed, bool SessionKey, unsigned SecLevel, brp_buf TunnelledCmd, size_t TunnelledCmd_len, brp_buf *TunnelledResp, size_t *TunnelledResp_len, brp_mempool *mempool)
 
brp_errcode brp_Sec_Reset (brp_protocol protocol)
 
brp_errcode brp_Sec_LockReset (brp_protocol protocol, unsigned SecLevel)
 
brp_errcode brp_Sec_GetCurAcMask (brp_protocol protocol, brp_HostSecurityAccessConditionBits *AcMask)
 

Detailed Description

This command group regroups the commands needed for Advanced Encryption Standard (AES)-based protocol encryption, and to access the reader's internal security system. These mechanisms enable to protect the reader-host communication.

Definition in file sec.h.