zephyr::raw

Function bt_encrypt_le

source
pub unsafe extern "C" fn bt_encrypt_le(
    key: *const u8,
    plaintext: *const u8,
    enc_data: *mut u8,
) -> i32
Expand description

@brief AES encrypt little-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 LS byte first key for the encryption of the plaintext @param plaintext 128 bit LS byte first plaintext data block to be encrypted @param enc_data 128 bit LS byte first encrypted data block

@return Zero on success or error code otherwise.