Decrypts and authenticates the provided ciphertext.
#include "huauthenc.h"
int hu_AuthEncDecrypt(sb_Context authEncCtx, size_t ciphertextLen, const unsigned char *ciphertext, unsigned char *plaintext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
Authenticate encryption context object.
The length (in bytes) of ciphertext.
The ciphertext buffer.
The plaintext buffer.
Global context.
The plaintext and ciphertext buffers must be the same length, and 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 ciphertext buffer is NULL.
The plaintext buffer is NULL.