PKUOS - Pintos
Pintos source browser for PKU Operating System course
Data Structures | Functions
arc4.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for arc4.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  arc4
 Alleged RC4 algorithm encryption state. More...
 

Functions

void arc4_init (struct arc4 *, const void *, size_t)
 
void arc4_crypt (struct arc4 *, void *, size_t)
 tests/arc4.h More...
 

Function Documentation

◆ arc4_crypt()

void arc4_crypt ( struct arc4 arc4,
void *  buf_,
size_t  size 
)

tests/arc4.h

Definition at line 35 of file arc4.c.

References buf, arc4::i, arc4::j, s, arc4::s, and swap_byte().

Referenced by init(), main(), and test_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ arc4_init()

void arc4_init ( struct arc4 arc4,
const void *  key_,
size_t  size 
)

Definition at line 14 of file arc4.c.

References arc4::i, arc4::j, s, arc4::s, and swap_byte().

Referenced by init(), main(), and test_main().

Here is the call graph for this function:
Here is the caller graph for this function: