nrfxlib API 2.8.99
|
int ocrypto_aes_cbc_pkcs_decrypt | ( | uint8_t * | pt, |
size_t * | pt_len, | ||
const uint8_t * | ct, | ||
size_t | ct_len, | ||
const uint8_t * | key, | ||
size_t | size, | ||
const uint8_t | iv[16] ) |
#include <crypto/nrf_oberon/include/ocrypto_aes_cbc_pkcs.h>
AES-CBC-PKCS7 decryption.
[out] | pt | Plaintext. |
[out] | pt_len | Plaintext length. |
ct | Ciphertext. | |
ct_len | Ciphertext length. Must be a multiple of 16. | |
key | AES key. | |
size | Key size (16, 24, or 32). | |
iv | Initial vector. |
0 | If the input is properly padded. |
-1 | Otherwise. |
pt
may be same as ct
. pt
is ct_len
- 1.