Set the GCM IV / nonce for a subsequent encrypt or decrypt operation.
Declared in <openssl/modes.h>
void
CRYPTO_gcm128_setiv(
GCM128_CONTEXT* ctx,
unsigned char const* iv,
size_t len);
| Name | Description |
|---|---|
| ctx | GCM context from CRYPTO_gcm128_new() or CRYPTO_gcm128_init(). |
| iv | IV octets (commonly 12 bytes for GCM). |
| len | Length of iv in bytes. |