Decrypts a ciphertext buffer using the given ARC4 parameters and key.
#include "huarc4.h"
int hu_ARC4DecryptMsg(sb_Params arc4Params, sb_Key arc4Key, size_t length, const unsigned char *ciphertext, unsigned char *plaintext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ARC4 parameters object.
An ARC4 key object.
The length (in bytes) of ciphertext.
The ciphertext buffer.
The plaintext buffer.
A global context.
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 ciphertext buffer is NULL.
The length of the ciphertext buffer is invalid.
The plaintext buffer is NULL.
Success.