version 1.17, 2004/04/26 19:38:12 |
version 1.18, 2004/04/27 15:54:56 |
|
|
|
|
typedef struct { |
typedef struct { |
u_int32_t state[5]; |
u_int32_t state[5]; |
u_int32_t count[2]; |
u_int64_t count; |
u_int8_t buffer[SHA1_BLOCK_LENGTH]; |
u_int8_t buffer[SHA1_BLOCK_LENGTH]; |
} SHA1_CTX; |
} SHA1_CTX; |
|
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
|
void SHA1Init(SHA1_CTX *); |
void SHA1Transform(u_int32_t [5], const u_int8_t [SHA1_BLOCK_LENGTH]) |
void SHA1Transform(u_int32_t [5], const u_int8_t [SHA1_BLOCK_LENGTH]) |
__attribute__((__bounded__(__minbytes__,1,5))) |
__attribute__((__bounded__(__minbytes__,1,5))) |
__attribute__((__bounded__(__minbytes__,2,SHA1_BLOCK_LENGTH))); |
__attribute__((__bounded__(__minbytes__,2,SHA1_BLOCK_LENGTH))); |
void SHA1Init(SHA1_CTX *); |
|
void SHA1Update(SHA1_CTX *, const u_int8_t *, unsigned int) |
void SHA1Update(SHA1_CTX *, const u_int8_t *, unsigned int) |
__attribute__((__bounded__(__string__,2,3))); |
__attribute__((__bounded__(__string__,2,3))); |
void SHA1Final(u_int8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *) |
void SHA1Final(u_int8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *) |