A tool for adding anime to your anidb list.
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.

19 lines
405B

  1. #ifndef _ED2K_H
  2. #define _ED2K_H
  3. #include <stdint.h>
  4. #include "md4.h"
  5. #define ED2K_HASH_SIZE MD4_DIGEST_SIZE
  6. struct ed2k_ctx {
  7. struct md4_ctx hash_md4_ctx, chunk_md4_ctx;
  8. uint64_t byte_count;
  9. };
  10. void ed2k_init(struct ed2k_ctx *ctx);
  11. void ed2k_update(struct ed2k_ctx *ctx, const void *data, size_t data_len);
  12. void ed2k_final(struct ed2k_ctx *ctx, unsigned char *out_hash);
  13. #endif /* _ED2K_H */