Absorb additional authenticated data into a GCM context before ciphertext.

Synopsis

Declared in <openssl/modes.h>

int
CRYPTO_gcm128_aad(
    GCM128_CONTEXT* ctx,
    unsigned char const* aad,
    size_t len);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ctx

GCM context with IV already set.

aad

Additional authenticated data octets.

len

Length of aad in bytes.

Created with MrDocs