14 #ifndef __BRP_BALTECH_API_CMDS_SEC_H__ 15 #define __BRP_BALTECH_API_CMDS_SEC_H__ 16 #include "../typedefs.h" 22 #define BRP_Sec_ErrCrypto BRP_ERR_STATUS(0x0700, 0x01) 27 #define BRP_Sec_ErrTunnel BRP_ERR_STATUS(0x0700, 0x02) 189 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);
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_Sec_GetCurAcMask(brp_protocol protocol, brp_HostSecurityAccessConditionBits *AcMask)
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_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_Reset(brp_protocol protocol)
brp_errcode brp_Sec_LockReset(brp_protocol protocol, unsigned SecLevel)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
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_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)