CRYPTO_ocb128_encrypt

Encrypt plaintext and update the OCB authentication state.

Synopsis

Declared in <openssl/modes.h>

int
CRYPTO_ocb128_encrypt(
    OCB128_CONTEXT* ctx,
    unsigned char const* in,
    unsigned char* out,
    size_t len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxOCB context ready for encryption.
inPlaintext bytes of length len.
outCiphertext buffer of length len (may equal in).
lenNumber of bytes to encrypt.