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