Decrypts a ciphertext buffer using the given ARC4 context.
#include "huarc4.h"
int hu_ARC4Decrypt(sb_Context arc4Context, size_t length, const unsigned char *ciphertext, unsigned char *plaintext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ARC4 context object.
The length (in bytes) of ciphertext.
The ciphertext buffer.
The plaintext 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 decrypt more blocks of ciphertext.
The arc4Context object is NULL.
The arc4Context object is invalid.
The ciphertext buffer is NULL.
The length of the ciphertext buffer is invalid.
The plaintext buffer is NULL.
Success.