Home | History | Annotate | Download | only in gpxe
      1 #ifndef _GPXE_ARC4_H
      2 #define _GPXE_ARC4_H
      3 
      4 FILE_LICENCE ( GPL2_OR_LATER );
      5 
      6 struct cipher_algorithm;
      7 
      8 #include <stdint.h>
      9 
     10 struct arc4_ctx {
     11 	int i, j;
     12 	u8 state[256];
     13 };
     14 
     15 #define ARC4_CTX_SIZE sizeof ( struct arc4_ctx )
     16 
     17 extern struct cipher_algorithm arc4_algorithm;
     18 
     19 void arc4_skip ( const void *key, size_t keylen, size_t skip,
     20 		 const void *src, void *dst, size_t msglen );
     21 
     22 #endif /* _GPXE_ARC4_H */
     23