_info 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #include "config.h"
  2. #include <stdio.h>
  3. #include <string.h>
  4. /**
  5. * md4 - MD4 Message Digest Algorithm (RFC1320).
  6. *
  7. * Message Digest #4 is a 128-bit hashing algorithm; it is quick but
  8. * not sufficiently strong for cryptographic use (duplicates can be
  9. * found very efficiently). It provides sufficient mixing to have an
  10. * avalanche effect: any change in input changes the output completely.
  11. *
  12. * Example:
  13. * #include <stdio.h>
  14. * #include <ccan/md4/md4.h>
  15. *
  16. * // Provide MD4 sums of the input strings.
  17. * int main(int argc, char *argv[])
  18. * {
  19. * unsigned int i, j;
  20. * struct md4_ctx ctx;
  21. *
  22. * for (i = 1; i < argc; i++) {
  23. * md4_init(&ctx);
  24. * md4_hash(&ctx, argv[i], strlen(argv[i]));
  25. * md4_finish(&ctx);
  26. * for (j = 0; j < 16; j++)
  27. * printf("%02x", ctx.hash.bytes[j]);
  28. * printf("\n");
  29. * }
  30. * return 0;
  31. * }
  32. *
  33. * License: GPL (v2 or any later version)
  34. */
  35. int main(int argc, char *argv[])
  36. {
  37. if (argc != 2)
  38. return 1;
  39. if (strcmp(argv[1], "depends") == 0) {
  40. printf("ccan/endian\n");
  41. printf("ccan/array_size\n");
  42. return 0;
  43. }
  44. return 1;
  45. }