pub unsafe extern "C" fn ocrypto_aes_cbc_pkcs_final_dec(
    ctx: *mut ocrypto_aes_cbc_pkcs_ctx,
    pt: *mut u8,
    pt_len: *mut usize
) -> c_int
Expand description

AES-CBC-PKCS7 final decryption output.

  • ctx - Context.
  • pt - Last part of the plaintext.
  • pt_len - Length of * pt - .

Returns 0 If the ciphertext input is properly padded. Returns -1 Otherwise.

@remark The total length of the ciphertext added before a call to this function must be non-zero and a multiple of 16. @remark The maximum length of * pt - is 15.