Leaked source code of windows server 2003
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.

49 lines
1.4 KiB

  1. #ifndef __MD2_H__
  2. #define __MD2_H__
  3. #ifndef RSA32API
  4. #define RSA32API __stdcall
  5. #endif
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. /* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
  10. rights reserved.
  11. License to copy and use this software is granted for
  12. non-commercial Internet Privacy-Enhanced Mail provided that it is
  13. identified as the "RSA Data Security, Inc. MD2 Message Digest
  14. Algorithm" in all material mentioning or referencing this software
  15. or this function.
  16. RSA Data Security, Inc. makes no representations concerning either
  17. the merchantability of this software or the suitability of this
  18. software for any particular purpose. It is provided "as is"
  19. without express or implied warranty of any kind.
  20. These notices must be retained in any copies of any part of this
  21. documentation and/or software.
  22. */
  23. typedef struct {
  24. unsigned char state[16]; /* state */
  25. unsigned char checksum[16]; /* checksum */
  26. unsigned int count; /* number of bytes, modulo 16 */
  27. unsigned char buffer[16]; /* input buffer */
  28. } MD2_CTX;
  29. int RSA32API MD2Update(MD2_CTX *, unsigned char *, unsigned int);
  30. int RSA32API MD2Final(MD2_CTX *);
  31. void RSA32API MD2Transform(unsigned char [16], unsigned char [16],
  32. unsigned char [16]);
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif // __MD2_H__