CRYPTO_gcm128_tag

Write the computed GCM authentication tag into tag.

Synopsis

Declared in <openssl/modes.h>

void
CRYPTO_gcm128_tag(
    GCM128_CONTEXT* ctx,
    unsigned char* tag,
    size_t len);

Parameters

NameDescription
ctxGCM context after encryption (typically after CRYPTO_gcm128_finish with NULL tag).
tagDestination buffer for the tag.
lenNumber of tag bytes to write (commonly 16).