C API for BALTECH SDK

§ brp_create_secure_channel()

BRP_LIB brp_protocol brp_create_secure_channel ( int  security_level,
brp_sec_key  key,
int  sec_mode 
)

Creates a new secured channel that allows you to establish an authenticated and encrypted connection over an insecure BRP channel.

This protocol layer will manage all AES authentication and encryption on top of another BRP protocol layer.

Returns
A BRP protocol on success or NULL on failure. All commands executed via the returned protocol are transferred encrypted.
Parameters
security_levelsecurity level that shall be authenticated
keythe key that shall be used to establish a secure channel
sec_modea bitmask of BRP_SECMODE_ constants. should be BRP_SECMODE_STD by default.