pintos/src/tests/arc4.c File Reference

#include <stdint.h>
#include "tests/arc4.h"

Go to the source code of this file.

Functions

static void swap_byte (uint8_t *a, uint8_t *b)
void arc4_init (struct arc4 *arc4, const void *key_, size_t size)
void arc4_crypt (struct arc4 *arc4, void *buf_, size_t size)


Function Documentation

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

Definition at line 36 of file arc4.c.

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

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

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

Definition at line 15 of file arc4.c.

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

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

static void swap_byte ( uint8_t a,
uint8_t b 
) [inline, static]

Definition at line 7 of file arc4.c.


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6