=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/sha1.h,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** src/include/sha1.h 2004/04/26 19:38:12 1.17 --- src/include/sha1.h 2004/04/27 15:54:56 1.18 *************** *** 1,4 **** ! /* $OpenBSD: sha1.h,v 1.17 2004/04/26 19:38:12 millert Exp $ */ /* * SHA-1 in C --- 1,4 ---- ! /* $OpenBSD: sha1.h,v 1.18 2004/04/27 15:54:56 millert Exp $ */ /* * SHA-1 in C *************** *** 15,31 **** typedef struct { u_int32_t state[5]; ! u_int32_t count[2]; u_int8_t buffer[SHA1_BLOCK_LENGTH]; } SHA1_CTX; #include __BEGIN_DECLS void SHA1Transform(u_int32_t [5], const u_int8_t [SHA1_BLOCK_LENGTH]) __attribute__((__bounded__(__minbytes__,1,5))) __attribute__((__bounded__(__minbytes__,2,SHA1_BLOCK_LENGTH))); - void SHA1Init(SHA1_CTX *); void SHA1Update(SHA1_CTX *, const u_int8_t *, unsigned int) __attribute__((__bounded__(__string__,2,3))); void SHA1Final(u_int8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *) --- 15,31 ---- typedef struct { u_int32_t state[5]; ! u_int64_t count; u_int8_t buffer[SHA1_BLOCK_LENGTH]; } SHA1_CTX; #include __BEGIN_DECLS + void SHA1Init(SHA1_CTX *); void SHA1Transform(u_int32_t [5], const u_int8_t [SHA1_BLOCK_LENGTH]) __attribute__((__bounded__(__minbytes__,1,5))) __attribute__((__bounded__(__minbytes__,2,SHA1_BLOCK_LENGTH))); void SHA1Update(SHA1_CTX *, const u_int8_t *, unsigned int) __attribute__((__bounded__(__string__,2,3))); void SHA1Final(u_int8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *)