You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

arc4.h 407B

12345678910111213141516171819202122
  1. #ifndef _IPXE_ARC4_H
  2. #define _IPXE_ARC4_H
  3. FILE_LICENCE ( GPL2_OR_LATER );
  4. struct cipher_algorithm;
  5. #include <stdint.h>
  6. struct arc4_ctx {
  7. int i, j;
  8. u8 state[256];
  9. };
  10. #define ARC4_CTX_SIZE sizeof ( struct arc4_ctx )
  11. extern struct cipher_algorithm arc4_algorithm;
  12. void arc4_skip ( const void *key, size_t keylen, size_t skip,
  13. const void *src, void *dst, size_t msglen );
  14. #endif /* _IPXE_ARC4_H */