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

AES-CBC output size calculation.

Calculates the length of the output written to * out - in a call to * ocrypto_aes_cbc_pkcs_update - .

  • ctx - Context.
  • pt_len - Length of data to be added.

@returns The length of the output.

@remark * ocrypto_aes_cbc_pkcs_output_size - must be called before * ocrypto_aes_cbc_pkcs_update - . @remark Initialization of the context * ctx - through * ocrypto_aes_ctr_init - is required before this function can be called.