Source code of Windows XP (NT5)
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.

37 lines
617 B

  1. #ifndef _RC4_H_
  2. #define _RC4_H_
  3. #ifndef WIN16_BUILD
  4. /* Key structure */
  5. struct RC4_KEYSTRUCT
  6. {
  7. unsigned char S[256]; /* State table */
  8. unsigned char i,j; /* Indices */
  9. };
  10. NTSYSAPI
  11. void
  12. NTAPI
  13. rc4_key(struct RC4_KEYSTRUCT *, int, PUCHAR);
  14. NTSYSAPI
  15. void
  16. NTAPI
  17. rc4(struct RC4_KEYSTRUCT *, int , PUCHAR);
  18. #else
  19. /* Key structure */
  20. struct RC4_KEYSTRUCT
  21. {
  22. unsigned char S[256]; /* State table */
  23. unsigned char i,j; /* Indices */
  24. };
  25. void rc4_key(struct RC4_KEYSTRUCT SEC_FAR *, int, unsigned char SEC_FAR *);
  26. void rc4(struct RC4_KEYSTRUCT *, int , unsigned char *);
  27. #endif // WIN16_BUILD
  28. #endif