1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) NGINX, Inc.
5  */
6 
7 
8 #ifndef _NXT_SHA1_H_INCLUDED_
9 #define _NXT_SHA1_H_INCLUDED_
10 
11 
12 typedef struct {
13     uint64_t  bytes;
14     uint32_t  a, b, c, d, e;
15     u_char    buffer[64];
16 } nxt_sha1_t;
17 
18 
19 NXT_EXPORT void nxt_sha1_init(nxt_sha1_t *ctx);
20 NXT_EXPORT void nxt_sha1_update(nxt_sha1_t *ctx, const void *data, size_t size);
21 NXT_EXPORT void nxt_sha1_final(u_char result[20], nxt_sha1_t *ctx);
22 
23 
24 #endif /* _NXT_SHA1_H_INCLUDED_ */
25