furi_hal_crypto_ctr

Function furi_hal_crypto_ctr 

Source
pub unsafe extern "C" fn furi_hal_crypto_ctr(
    key: *const u8,
    iv: *const u8,
    input: *const u8,
    output: *mut u8,
    length: usize,
) -> bool
Expand description

Encrypt the input using AES-CTR

Decryption can be performed by supplying the ciphertext as input. Inits and deinits the AES engine internally.

§Arguments

  • key (direction in) - pointer to 32 bytes key data
  • iv (direction in) - pointer to 12 bytes Initialization Vector data
  • input (direction in) - pointer to input data
  • output (direction out) - pointer to output data
  • length - length of the input and output in bytes

§Returns

true on success