AES Encryption API¶
Header File¶
Functions¶
-
int
aes_cbc_decrypt(uint8_t *out, const uint8_t *in, size_t inSz, const uint8_t *key, const uint8_t *iv)¶ AES block decrypt
- Return
0 on success, negative value on error
- Parameters
out: [out] Output buffer to store decrypted datain: [in] Input buffer containing encrypted datainSz: [in] Size of data in input bufferkey: [in] Key bufferiv: [in] IV buffer
-
int
aes_cbc_encrypt(uint8_t *out, const uint8_t *in, size_t inSz, const uint8_t *key, const uint8_t *iv)¶ Encrypt a data buffer
- Return
0 on success, negative value on error
- Parameters
out: [out] Output buffer to store encrypted datain: [in] Input data bufferinSz: [in] Size of input datakey: [in] Key bufferiv: [in] IV buffer
