![]() |
nrfxlib API 3.3.99
|
| void ocrypto_aes_gcm_init | ( | ocrypto_aes_gcm_ctx * | ctx, |
| const uint8_t * | key, | ||
| size_t | size, | ||
| const uint8_t | iv[12] ) |
#include <crypto/nrf_oberon/include/ocrypto_aes_gcm.h>
AES-GCM initialization.
The context ctx is initialized using the given key key and initial vector iv.
| [out] | ctx | Context. |
| key | AES key. May be NULL. | |
| size | Key size (16, 24, or 32 bytes). | |
| iv | Initial vector. May be NULL. |
key is NULL only iv is set. If iv is NULL only key is set. Both key and iv must be set before update is called.