nrfxlib API 0.1.0
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  pt_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.
pt_lenLength of data to be added.
Returns
The length of the output.
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.