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

Name

Description

key

Cipher‐specific expanded key for block.

block

Block‐encrypt function used for GHASH key derivation and CTR.

Created with MrDocs