#include <nitro/crypto.h>
void CRYPTO_RC4Init(CRYPTORC4Context* context, const void* key, u32 key_len);
| context | Context structure where the RC4 key information, etc., is kept |
|---|---|
| key | Pointer to the byte sequence for the encryption/decryption key used with the RC4 algorithm. |
| key_len | Length of the key specified by key. The length of the key must be 16 bytes or less; longer lengths are truncated to 16 bytes. |
None.
Initializes the RC4 algorithm encryption structures and sets the encryption/decryption key.
This function is called internally when performing operations with CRYPTO_RC4, so it does not need to be called.
CRYPTO_RC4Encrypt
CRYPTO_RC4
CRYPTO_RC4_FastInit
2008/02/25 Initial version.
CONFIDENTIAL