iPXE
arc4.h
Go to the documentation of this file.
1#ifndef _IPXE_ARC4_H
2#define _IPXE_ARC4_H
3
4FILE_LICENCE ( GPL2_OR_LATER );
5
7
8#include <stdint.h>
9
10struct arc4_ctx {
11 int i, j;
12 u8 state[256];
13};
14
15#define ARC4_CTX_SIZE sizeof ( struct arc4_ctx )
16
18
19void arc4_skip ( const void *key, size_t keylen, size_t skip,
20 const void *src, void *dst, size_t msglen );
21
22#endif /* _IPXE_ARC4_H */
union @162305117151260234136356364136041353210355154177 key
Sense key.
Definition scsi.h:3
struct cipher_algorithm arc4_algorithm
Definition arc4.c:118
void arc4_skip(const void *key, size_t keylen, size_t skip, const void *src, void *dst, size_t msglen)
Perform ARC4 encryption or decryption, skipping initial keystream bytes.
Definition arc4.c:109
static const void * src
Definition string.h:48
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define u8
Definition igbvf_osdep.h:40
int i
Definition arc4.h:11
int j
Definition arc4.h:11
u8 state[256]
Definition arc4.h:12
A cipher algorithm.
Definition crypto.h:51