pub unsafe extern "C" fn PS_EncryptDecryptAes(
    size: u32_,
    in_: *mut u8_,
    out: *mut u8_,
    aes_algo: PS_AESAlgorithm,
    key_type: PS_AESKeyType,
    iv: *mut u8_
) -> Result
Expand description

Encrypts/Decrypts AES data. Does not support AES CCM.

§Arguments

  • size - Size of the data.
  • in - Input buffer.
  • out - Output buffer.
  • aes_algo - AES algorithm to use.
  • key_type - Key type to use.
  • iv - Pointer to the CTR/IV. The output CTR/IV is also written here.