sha1_i.h 590 B

1234567891011121314151617181920212223
  1. /*
  2. * SHA1 internal definitions
  3. * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef SHA1_I_H
  9. #define SHA1_I_H
  10. struct SHA1Context {
  11. u32 state[5];
  12. u32 count[2];
  13. unsigned char buffer[64];
  14. };
  15. void SHA1Init(struct SHA1Context *context);
  16. void SHA1Update(struct SHA1Context *context, const void *data, u32 len);
  17. void SHA1Final(unsigned char digest[20], struct SHA1Context *context);
  18. void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
  19. #endif /* SHA1_I_H */