Encrypts a plaintext buffer using the given ARC4 context.
#include "huarc4.h"
int hu_ARC4Encrypt(sb_Context arc4Context, size_t length, const unsigned char *plaintext, unsigned char *ciphertext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ARC4 context object.
The length (in bytes) of plaintext.
The plaintext buffer.
The ciphertext buffer.
A global context.
The plaintext and ciphertext buffers must be the same length. They may point to the same address in memory but must not otherwise overlap. This function can be called repeatedly to encrypt more blocks of plaintext.
The arc4Context object is NULL.
The arc4Context object is invalid.
The plaintext buffer is NULL.
The length of the plaintext buffer is invalid.
The ciphertext buffer is NULL.
Success.