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

Name

Description

ctx

OCB context after encryption (and optional AAD) processing.

tag

Destination buffer for the tag.

len

Number of tag bytes to write (1–16).

Created with MrDocs