pub unsafe extern "C" fn ocrypto_aes_cbc_pkcs_encrypt(
    ct: *mut u8,
    pt: *const u8,
    pt_len: usize,
    key: *const u8,
    size: usize,
    iv: *const u8
)
Expand description

AES-CBC-PKCS7 encryption.

  • ct - Ciphertext.
  • pt - Plaintext.
  • pt_len - Plaintext length.
  • key - AES key.
  • size - Key size (16, 24, or 32).
  • iv - Initial vector.

@remark * ct - may be same as * pt - . @remark The length of * ct - is * pt_len - + 1 rounded up to the next multiple of 16.