nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_aes_gcm_update_enc()

void ocrypto_aes_gcm_update_enc ( ocrypto_aes_gcm_ctx *  ctx,
uint8_t *  ct,
const uint8_t *  pt,
size_t  pt_len 
)

#include <crypto/nrf_oberon/include/ocrypto_aes_gcm.h>

AES-GCM incremental encryption.

The plaintext pt is encrypted to the ciphertext ct using the context ctx.

This function can be called repeatedly until the whole message is processed.

Parameters
ctxContext.
[out]ctCiphertext.
ptPlaintext.
pt_lenLength of pt and ct.
Remarks
ct may be same as pt.
Initialization of the context ctx through ocrypto_aes_gcm_init is required before this function can be called.