Annotation of parser3/src/lib/md5/pa_sha1.h, revision 1.1
1.1 ! moko 1: /** @file
! 2: Parser: SHA-1 implementation based on the reference code published in RFC 3174.
! 3: http://www.rfc-editor.org/rfc/rfc3174
! 4: */
! 5:
! 6: #ifndef PA_SHA1_H
! 7: #define PA_SHA1_H
! 8:
! 9: #define IDENT_PA_SHA1_H "$Id$"
! 10:
! 11: struct PA_SHA1_CTX {
! 12: unsigned Message_Digest[5], Length_Low, Length_High;
! 13: unsigned int Message_Block[64];
! 14: int Message_Block_Index, Computed, Corrupted;
! 15: };
! 16:
! 17: void pa_SHA1Reset(PA_SHA1_CTX *context);
! 18: void pa_SHA1Input(PA_SHA1_CTX *context, const unsigned char *message_array, unsigned length);
! 19: /// writes 20 bytes of the digest to buf, throws if it cannot be computed
! 20: void pa_SHA1ReadDigest(void *buf, PA_SHA1_CTX *c);
! 21:
! 22: #endif
E-mail: