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
Name |
Description |
ctx |
OCB context ready for encryption. |
in |
Plaintext bytes of length |
out |
Ciphertext buffer of length |
len |
Number of bytes to encrypt. |
Created with MrDocs