nRF Connect SDK API 0.1.0
|
void gzp_crypt | ( | uint8_t * | dst, |
const uint8_t * | src, | ||
uint8_t | length | ||
) |
#include <include/gzp.h>
Encypt / decrypt data.
The current "session token" will be used as initialization vector (IV). The AES key to be used is selected by gzp_crypt_select_key(). AES is a symmetric encryption scheme, this function can be used to perform both encryption and decryption.
dst | Destination to write encrypted data to. Should be 16 bytes long. |
src | Source data to encrypt. |
length | Length in bytes of src. |