Encrypts a plaintext buffer using the given ARC4 parameters and key.
#include "huarc4.h"
int hu_ARC4EncryptMsg(sb_Params arc4Params, sb_Key arc4Key, size_t length, const unsigned char *plaintext, unsigned char *ciphertext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ARC4 parameters object.
An ARC4 key object.
The length (in bytes) of plaintext.
The plaintext buffer.
The ciphertext buffer.
A global context.
Note: This function should only be called for buffers of plaintext and ciphertext that can be stored entirely in memory.
The arc4Params parameters object is NULL.
The tag for the params object is not of the expected type.
The arc4Key object is NULL.
The arc4Key object is invalid.
The plaintext buffer is NULL.
The plaintext buffer length is invalid.
The ciphertext buffer is NULL.
Success.