home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / utilities / cli / pgp2 / src / h / mdfile < prev    next >
Encoding:
Text File  |  1994-08-01  |  623 b   |  20 lines

  1. /*    mdfile.h - C headers for PGP MD5 Message digest routines.
  2.     PGP 1.0 used MD4, now we use MD5.
  3. */
  4.  
  5. #include "md5.h"    /* for MD5 message digest stuff */
  6.  
  7. /* Prototypes for MD5 routines */
  8.  
  9. /* Computes and returns the message digest from file
  10.    position,longcount bytes */
  11.  
  12. int MDfile0_len(struct MD5Context *mdContext, FILE *f, word32 longcount);
  13.  
  14. /* Computes the message digest for a specified file */
  15. int MDfile(struct MD5Context *mdContext,char *filename);
  16.  
  17. /* Used to finish the message digest, including extra material. */
  18. void MD_addbuffer (struct MD5Context *mdContext, byte *buf,
  19.            int buflen, byte digest[16]);
  20.