10 #ifndef __BRP_BALTECH_SDK_CMDS_SEC_H__ 11 #define __BRP_BALTECH_SDK_CMDS_SEC_H__ 12 #include "../typedefs.h" 16 #define BRP_Sec_ErrCrypto BRP_ERR_STATUS(0x0700, 0x01) 20 #define BRP_Sec_ErrTunnel BRP_ERR_STATUS(0x0700, 0x02) 40 #ifdef BRP_SUPPORT_LEGACY_METHODS 62 #ifdef BRP_SUPPORT_LEGACY_METHODS 94 #ifdef BRP_SUPPORT_LEGACY_METHODS 130 #ifdef BRP_SUPPORT_LEGACY_METHODS 150 #ifdef BRP_SUPPORT_LEGACY_METHODS 201 #ifdef BRP_SUPPORT_LEGACY_METHODS 202 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);
217 #ifdef BRP_SUPPORT_LEGACY_METHODS 233 #ifdef BRP_SUPPORT_LEGACY_METHODS 255 #ifdef BRP_SUPPORT_LEGACY_METHODS
brp_errcode brp_Sec_Reset(brp_Sec_Reset_t params)
This command resets the Baltech ID engine's security system.
brp_HostSecurityAccessConditionBits * AcMask
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
brp_errcode brp_Sec_GetAcMask(brp_Sec_GetAcMask_t params)
This command retrieves the Access Condition Mask of a specified security level.
brp_HostSecurityAccessConditionBits * AcMask
brp_errcode brp_Sec_SetKey(brp_Sec_SetKey_t params)
Sets a key and the appropriate Authorization Mode bits for a specified Security Level.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_HostSecurityAccessConditionBits AcMask
size_t * TunnelledResp_len
brp_errcode brp_Sec_LockReset(brp_Sec_LockReset_t params)
This command prevents, that a Sys.FactoryReset is run for the Security Level specified in the SecLeve...
brp_errcode brp_Sec_AuthPhase2(brp_Sec_AuthPhase2_t params)
This command finishes the 2-phase authentication procedure started by the brp_Sec_AuthPhase1() comman...
brp_errcode brp_Sec_AuthPhase1(brp_Sec_AuthPhase1_t params)
This command initiates a 2-phase authentication.
brp_errcode brp_Sec_Tunnel(brp_Sec_Tunnel_t params)
This command enables to send a specific command, called the tunnelled command, to the reader (and to ...
brp_errcode brp_Sec_SetAcMask(brp_Sec_SetAcMask_t params)
This command sets the Access Condition Mask of the security level specified in the SecurityLevel para...
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Every Feature in this list can be disabled by not setting the corresponding bit.
brp_errcode brp_Sec_GetCurAcMask(brp_Sec_GetCurAcMask_t params)
This command retrieves the Access Condition Mask, which is applied by the reader in the current conte...