Encrypts and authenticates the provided plaintext.
#include "huauthenc.h"
int hu_AuthEncEncrypt(sb_Context authEncCtx, size_t plaintextLen, const unsigned char *plaintext, unsigned char *ciphertext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
Authenticate encryption context object.
The length (in bytes) of plaintext.
The plaintext buffer.
The ciphertext buffer.
Global context.
The plaintext and ciphertext buffers must be the same length and they may overlap in memory subject to the constraints described in the API Reference section on overlapping buffers. This function can be called repeatedly to encrypt more plaintext.
The authEncCtx is of the wrong type.
The plaintextLen is invalid.
The plaintext buffer is NULL.
The ciphertext buffer is NULL.