david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/include/ipxe/arc4.h

23 lines
407 B
C

#ifndef _IPXE_ARC4_H
#define _IPXE_ARC4_H
FILE_LICENCE ( GPL2_OR_LATER );
struct cipher_algorithm;
#include <stdint.h>
struct arc4_ctx {
int i, j;
u8 state[256];
};
#define ARC4_CTX_SIZE sizeof ( struct arc4_ctx )
extern struct cipher_algorithm arc4_algorithm;
void arc4_skip ( const void *key, size_t keylen, size_t skip,
const void *src, void *dst, size_t msglen );
#endif /* _IPXE_ARC4_H */