CRYPTO_gcm128_aad

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

NameDescription
ctxGCM context with IV already set.
aadAdditional authenticated data octets.
lenLength of aad in bytes.