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.

md5.h 418B

123456789101112131415161718192021222324
  1. #ifndef _GPXE_MD5_H
  2. #define _GPXE_MD5_H
  3. FILE_LICENCE ( GPL2_OR_LATER );
  4. struct digest_algorithm;
  5. #include <stdint.h>
  6. #define MD5_DIGEST_SIZE 16
  7. #define MD5_BLOCK_WORDS 16
  8. #define MD5_HASH_WORDS 4
  9. struct md5_ctx {
  10. u32 hash[MD5_HASH_WORDS];
  11. u32 block[MD5_BLOCK_WORDS];
  12. u64 byte_count;
  13. };
  14. #define MD5_CTX_SIZE sizeof ( struct md5_ctx )
  15. extern struct digest_algorithm md5_algorithm;
  16. #endif /* _GPXE_MD5_H */