PKUOS - Pintos
Pintos source browser for PKU Operating System course
src
tests
arc4.h
Go to the documentation of this file.
1
#ifndef TESTS_ARC4_H
2
#define TESTS_ARC4_H
3
4
#include <
stddef.h
>
5
#include <
stdint.h
>
6
7
/** Alleged RC4 algorithm encryption state. */
8
struct
arc4
9
{
10
uint8_t
s
[256];
11
uint8_t
i
,
j
;
12
};
13
14
void
arc4_init
(
struct
arc4
*,
const
void
*,
size_t
);
15
void
arc4_crypt
(
struct
arc4
*,
void
*,
size_t
);
16
17
#endif
/**< tests/arc4.h */
arc4_crypt
void arc4_crypt(struct arc4 *, void *, size_t)
tests/arc4.h
Definition:
arc4.c:35
arc4_init
void arc4_init(struct arc4 *, const void *, size_t)
Definition:
arc4.c:14
stddef.h
stdint.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:20
arc4
Alleged RC4 algorithm encryption state.
Definition:
arc4.h:9
arc4::s
uint8_t s[256]
Definition:
arc4.h:10
arc4::i
uint8_t i
Definition:
arc4.h:11
arc4::j
uint8_t j
Definition:
arc4.h:11
Generated on Thu Nov 4 2021 19:31:00 for PKUOS - Pintos by
1.9.2