Annotation of libwww/Library/src/HTDigest.html, revision 2.3
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:
2.3 ! kahan 24: JK Jose Kahan jose@w3.org
2.1 kahan 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 "md5.h"
40: </PRE>
41: <H2>
42: Interface to message digest algorithms
43: </H2>
44: <P>
45: The list of known message digest algorithms
46: <PRE>
47: #define HTDaMD5 1
48: </PRE>
49: <P>
50: This is our general digest context structure. If you add a new
51: algorithm, include its context in the union.
52: <PRE>
53: typedef struct _HTDigestContext {
54: int algorithm;
55: union {
56: MD5_CTX md5;
57: } context;
58: } HTDigestContext;
59: </PRE>
60: <P>
61: This is a set of generic functions for generating a message digest
62: <PRE>
63: extern BOOL HTDigest_init (HTDigestContext *context, int digesttype);
64: extern BOOL HTDigest_update (HTDigestContext *context, char *input, unsigned int inputLen);
65: extern BOOL HTDigest_final (unsigned char *digest, HTDigestContext *context);
66: </PRE>
67: <PRE>
68: #endif /* NOT HTDigest_H */
69: </PRE>
70: <P>
71: <HR>
72: <ADDRESS>
2.3 ! kahan 73: @(#) $Id: HTDigest.html,v 2.2 1998/12/16 14:48:53 kahan Exp $
2.1 kahan 74: </ADDRESS>
75: </BODY></HTML>
76:
77:
78:
79:
80:
Webmaster