iPXE
arc4.h
Go to the documentation of this file.
00001 #ifndef _IPXE_ARC4_H
00002 #define _IPXE_ARC4_H
00003 
00004 FILE_LICENCE ( GPL2_OR_LATER );
00005 
00006 struct cipher_algorithm;
00007 
00008 #include <stdint.h>
00009 
00010 struct arc4_ctx {
00011         int i, j;
00012         u8 state[256];
00013 };
00014 
00015 #define ARC4_CTX_SIZE sizeof ( struct arc4_ctx )
00016 
00017 extern struct cipher_algorithm arc4_algorithm;
00018 
00019 void arc4_skip ( const void *key, size_t keylen, size_t skip,
00020                  const void *src, void *dst, size_t msglen );
00021 
00022 #endif /* _IPXE_ARC4_H */