CRYPTO_ocb128_tag

Write the computed OCB authentication tag into tag.

Synopsis

Declared in <openssl/modes.h>

int
CRYPTO_ocb128_tag(
    OCB128_CONTEXT* ctx,
    unsigned char* tag,
    size_t len);

Return Value

1 on success, or -1 if len is invalid.

Parameters

NameDescription
ctxOCB context after encryption (and optional AAD) processing.
tagDestination buffer for the tag.
lenNumber of tag bytes to write (1–16).