nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ ocrypto_aes_cbc_pkcs_output_size()

size_t ocrypto_aes_cbc_pkcs_output_size ( ocrypto_aes_cbc_pkcs_ctx * ctx,
size_t in_len )

#include <crypto/nrf_oberon/include/ocrypto_aes_cbc_pkcs.h>

AES-CBC output size calculation.

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

Parameters
ctxContext.
in_lenLength of input data for ocrypto_aes_cbc_pkcs_update.
Returns
The exact length of the output data of ocrypto_aes_cbc_pkcs_update.
Remarks
ocrypto_aes_cbc_pkcs_output_size must be called before ocrypto_aes_cbc_pkcs_update.
Initialization of the context ctx through ocrypto_aes_ctr_init is required before this function can be called.