Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* MD5.H - header file for MD5C.C
  2. * $FreeBSD: src/sys/sys/md5.h,v 1.20 2006/03/15 19:47:12 andre Exp $
  3. */
  4. /*-
  5. Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
  6. rights reserved.
  7. License to copy and use this software is granted provided that it
  8. is identified as the "RSA Data Security, Inc. MD5 Message-Digest
  9. Algorithm" in all material mentioning or referencing this software
  10. or this function.
  11. License is also granted to make and use derivative works provided
  12. that such works are identified as "derived from the RSA Data
  13. Security, Inc. MD5 Message-Digest Algorithm" in all material
  14. mentioning or referencing the derived work.
  15. RSA Data Security, Inc. makes no representations concerning either
  16. the merchantability of this software or the suitability of this
  17. software for any particular purpose. It is provided "as is"
  18. without express or implied warranty of any kind.
  19. These notices must be retained in any copies of any part of this
  20. documentation and/or software.
  21. */
  22. #ifndef _SYS_MD5_H_
  23. #define _SYS_MD5_H_
  24. #define MD5_BLOCK_LENGTH 64
  25. #define MD5_DIGEST_LENGTH 16
  26. #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH * 2 + 1)
  27. /* MD5 context. */
  28. typedef struct MD5Context {
  29. u_int32_t state[4]; /* state (ABCD) */
  30. u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
  31. unsigned char buffer[64]; /* input buffer */
  32. } MD5_CTX;
  33. #include <sys/cdefs.h>
  34. __BEGIN_DECLS
  35. void MD5Init (MD5_CTX *);
  36. void MD5Update (MD5_CTX *, const void *, unsigned int);
  37. void MD5Final (unsigned char [16], MD5_CTX *);
  38. char * MD5End(MD5_CTX *, char *);
  39. char * MD5File(const char *, char *);
  40. char * MD5FileChunk(const char *, char *, off_t, off_t);
  41. char * MD5Data(const void *, unsigned int, char *);
  42. __END_DECLS
  43. #endif /* _SYS_MD5_H_ */