Encrypts one or more blocks of plaintext using the given ARC2 context.
#include "huarc2.h"
int hu_ARC2Encrypt(sb_Context arc2Context, size_t length, const unsigned char *plaintext, unsigned char *ciphertext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ARC2 context object.
The length (in bytes) of plaintext. The acceptable values are multiples of SB_ARC2_BLOCK_SIZE.
The plaintext buffer.
The ciphertext buffer.
A 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 blocks of plaintext.
The arc2Context context object is NULL.
The arc2Context context object is invalid.
The plaintext plaintext buffer is NULL.
The plaintext plaintext buffer length is invalid.
The ciphertext ciphertext buffer is NULL.
Success.