Annotation of libwww/Library/src/HTDigest.html, revision 2.1
2.1 ! kahan 1: <HTML>
! 2: <HEAD>
! 3: <TITLE>W3C Sample Code Library libwww Generic Message Digest
! 4: Interface</Title>
! 5: </HEAD>
! 6: <BODY>
! 7: <H1>
! 8: Generic Message Digest Interface
! 9: </H1>
! 10: <PRE>
! 11: /*
! 12: ** (c) COPYRIGHT W3C, INRIA 1998.
! 13: ** Please first read the full copyright statement in the file COPYRIGHT.
! 14: */
! 15: </PRE>
! 16: <P>
! 17:
! 18: Contains a generic interface to the message digest algorithms, inspired
! 19: from the RSA-Euro toolkit. For the moment, it only covers MD5.
! 20: SHA and other algorithms could be added later on. This code is only
! 21: used during message digest authentication.
! 22:
! 23: AUTHORS:
! 24: JKO Jose Kahan jose@w3.org
! 25:
! 26: HISTORY:
! 27: Dec 98 JK Created the module from scratch
! 28:
! 29: <P>
! 30: This module is implemented by <A HREF="HTDigest.c">HTDigest.c</A>, and it
! 31: is a part of the <A HREF="http://www.w3.org/Library/">W3C Sample Code
! 32: Library</A>.
! 33: <PRE>
! 34: #ifndef HTDigest_H
! 35: #define HTDigest_H
! 36: /* Library include files */
! 37: #include "WWWLib.h"
! 38: /* add the MD algorithm header files here below */
! 39: #include "global.h"
! 40: #include "md5.h"
! 41: </PRE>
! 42: <H2>
! 43: Interface to message digest algorithms
! 44: </H2>
! 45: <P>
! 46: The list of known message digest algorithms
! 47: <PRE>
! 48: #define HTDaMD5 1
! 49: </PRE>
! 50: <P>
! 51: This is our general digest context structure. If you add a new
! 52: algorithm, include its context in the union.
! 53: <PRE>
! 54: typedef struct _HTDigestContext {
! 55: int algorithm;
! 56: union {
! 57: MD5_CTX md5;
! 58: } context;
! 59: } HTDigestContext;
! 60: </PRE>
! 61: <P>
! 62: This is a set of generic functions for generating a message digest
! 63: <PRE>
! 64: extern BOOL HTDigest_init (HTDigestContext *context, int digesttype);
! 65: extern BOOL HTDigest_update (HTDigestContext *context, char *input, unsigned int inputLen);
! 66: extern BOOL HTDigest_final (unsigned char *digest, HTDigestContext *context);
! 67: </PRE>
! 68: <PRE>
! 69: #endif /* NOT HTDigest_H */
! 70: </PRE>
! 71: <P>
! 72: <HR>
! 73: <ADDRESS>
! 74: @(#) $Id: HTDigest.html,v 1.1 1998/12/15 12:50:21 cvs Exp $
! 75: </ADDRESS>
! 76: </BODY></HTML>
! 77:
! 78:
! 79:
! 80:
! 81:
Webmaster