nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_aes_cbc_pkcs_final_dec()

int ocrypto_aes_cbc_pkcs_final_dec ( ocrypto_aes_cbc_pkcs_ctx *  ctx,
uint8_t *  pt,
size_t *  pt_len 
)

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

AES-CBC-PKCS7 final decryption output.

Parameters
ctxContext.
[out]ptLast part of the plaintext.
[out]pt_lenLength of pt.
Return values
0If the ciphertext input is properly padded.
-1Otherwise.
Remarks
The total length of the ciphertext added before a call to this function must be non-zero and a multiple of 16.
The maximum length of pt is 15.