pub unsafe extern "C" fn bt_encrypt_be(
key: *const u8,
plaintext: *const u8,
enc_data: *mut u8,
) -> i32
Expand description
@brief AES encrypt big-endian data.
An AES encrypt helper is used to request the Bluetooth controller’s own hardware to encrypt the plaintext using the key and returns the encrypted data.
@param key 128 bit MS byte first key for the encryption of the plaintext @param plaintext 128 bit MS byte first plaintext data block to be encrypted @param enc_data 128 bit MS byte first encrypted data block
@return Zero on success or error code otherwise.