Finalise OCB and verify a received authentication tag.
Declared in <openssl/modes.h>
int
CRYPTO_ocb128_finish(
OCB128_CONTEXT* ctx,
unsigned char const* tag,
size_t len);
0 if tag matches, a non-zero value if it does not, or -1 if len is invalid.
| Name | Description |
|---|---|
| ctx | OCB context after encrypt/decrypt (and AAD) processing. |
| tag | Expected authentication tag to compare. |
| len | Length of tag in bytes (1–16). |