CRYPTO_gcm128_new

Allocate and initialise a GCM128_CONTEXT for key and block.

Synopsis

Declared in <openssl/modes.h>

GCM128_CONTEXT*
CRYPTO_gcm128_new(
    void* key,
    block128_f block);

Return Value

New context, or NULL on allocation failure; free with CRYPTO_gcm128_release().

Parameters

NameDescription
keyCipher-specific expanded key for block.
blockBlock-encrypt function used for GHASH key derivation and CTR.