nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ gzp_crypt()

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.

Parameters
dstDestination to write encrypted data to. Should be 16 bytes long.
srcSource data to encrypt.
lengthLength in bytes of src.