| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef _CRYPT_ALG_SHA1_H |
| #define _CRYPT_ALG_SHA1_H 1 |
| |
| |
| struct sha1_ctx |
| { |
| uint32_t state[5]; |
| uint32_t count[2]; |
| uint8_t buffer[64]; |
| }; |
| |
| |
| |
| extern void sha1_init_ctx (struct sha1_ctx *ctx); |
| |
| |
| |
| |
| extern void sha1_process_bytes (const void *buffer, struct sha1_ctx *ctx, size_t size); |
| |
| |
| |
| |
| extern void *sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf); |
| |
| #endif |