Tilde Friends
Loading...
Searching...
No Matches
sha1.h
1/*
2 * SHA1 internal definitions
3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
18#ifndef SHA1_I_H
19#define SHA1_I_H
20
21#include <inttypes.h>
22
27{
29 uint32_t state[5];
31 uint32_t count[2];
33 unsigned char buffer[64];
34};
35
39typedef struct SHA1Context SHA1_CTX;
40
45void SHA1Init(struct SHA1Context* context);
46
53void SHA1Update(struct SHA1Context* context, const void* data, uint32_t len);
54
60void SHA1Final(unsigned char digest[20], struct SHA1Context* context);
61
67void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]);
68
69#endif /* SHA1_I_H */
70
void SHA1Final(unsigned char digest[20], struct SHA1Context *context)
void SHA1Update(struct SHA1Context *context, const void *data, uint32_t len)
void SHA1Init(struct SHA1Context *context)
void SHA1Transform(uint32_t state[5], const unsigned char buffer[64])
Definition sha1.h:27
unsigned char buffer[64]
Definition sha1.h:33
uint32_t count[2]
Definition sha1.h:31
uint32_t state[5]
Definition sha1.h:29