My Project
Loading...
Searching...
No Matches
arc4.h File Reference

Go to the source code of this file.

Data Structures

struct  Arc4
 

Typedefs

typedef struct Arc4 Arc4
 

Functions

WOLFSSL_API int wc_Arc4Process (Arc4 *, byte *, const byte *, word32)
 This function encrypts an input message from the buffer in, placing the ciphertext in the output buffer out, or decrypts a ciphertext from the buffer in, placing the plaintext in the output buffer out, using ARC4 encryption. This function is used for both encryption and decryption. Before this method may be called, one must first initialize the ARC4 structure using wc_Arc4SetKey.
 
WOLFSSL_API int wc_Arc4SetKey (Arc4 *, const byte *, word32)
 This function sets the key for a ARC4 object, initializing it for use as a cipher. It should be called before using it for encryption with wc_Arc4Process.
 
WOLFSSL_API int wc_Arc4Init (Arc4 *, void *, int)
 
WOLFSSL_API void wc_Arc4Free (Arc4 *)
 

Variables

 C
 

Variable Documentation

◆ C

C
extern
Initial value:
{
#endif
#ifdef WOLFSSL_ASYNC_CRYPT
#endif
enum {
ARC4_ENC_TYPE = 4,
ARC4_STATE_SIZE = 256,
RC4_KEY_SIZE = 16,
}