htdigest.h

来自「www工具包」· C头文件 代码 · 共 93 行

H
93
字号
/*  					W3C Sample Code Library libwww Generic Message Digest  Interface!  Generic Message Digest Interface!*//***	(c) COPYRIGHT W3C, INRIA 1998.**	Please first read the full copyright statement in the file COPYRIGHT.*//*Contains a generic interface to the message digest algorithms, inspiredfrom the RSA-Euro toolkit. For the moment, it only covers MD5.SHA and other algorithms could be added later on. This code is onlyused during message digest authentication.AUTHORS:   JK	Jose Kahan       jose@w3.orgHISTORY:        Dec 98 JK	Created the module from scratchThis module is implemented by HTDigest.c, and itis a part of the W3C Sample CodeLibrary.*/#ifndef HTDigest_H#define HTDigest_H/* Library include files */#include "WWWLib.h"/* add the MD algorithm header files here below */#include "md5.h"/*.  Interface to message digest algorithms.The list of known message digest algorithms*/#define HTDaMD5 1/*This is our general digest context structure. If you add a newalgorithm, include its context in the union.*/typedef struct _HTDigestContext {  int algorithm;              union {            MD5_CTX md5;    } context;} HTDigestContext;/*This is a set of generic functions for generating a message digest*/extern BOOL HTDigest_init (HTDigestContext *context, int digesttype);extern BOOL HTDigest_update (HTDigestContext *context, char *input, unsigned int inputLen);extern BOOL HTDigest_final (unsigned char *digest, HTDigestContext *context);/**/#endif	/* NOT HTDigest_H *//*    @(#) $Id: HTDigest.html,v 2.3 1999/02/22 15:54:19 kahan Exp $*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?