libosmogsm  1.11.0.24-ece60.202504282026
Osmocom GSM library
sha1_i.h
Go to the documentation of this file.
1 /*
2  * SHA1 internal definitions
3  * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14 
15 #ifndef SHA1_I_H
16 #define SHA1_I_H
17 
18 struct SHA1Context {
19  u32 state[5];
20  u32 count[2];
21  unsigned char buffer[64];
22 };
23 
24 void SHA1Init(struct SHA1Context *context);
25 void SHA1Update(struct SHA1Context *context, const void *data, u32 len);
26 void SHA1Final(unsigned char digest[20], struct SHA1Context *context);
27 void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
28 
29 #endif /* SHA1_I_H */
uint8_t data[0]
uint8_t len
Definition: gsm_04_11.h:0
uint32_t u32
Definition: common.h:25
void SHA1Final(unsigned char digest[20], struct SHA1Context *context)
Definition: sha1-internal.c:278
void SHA1Transform(u32 state[5], const unsigned char buffer[64])
Definition: sha1-internal.c:176
void SHA1Init(struct SHA1Context *context)
Definition: sha1-internal.c:234
void SHA1Update(struct SHA1Context *context, const void *data, u32 len)
Definition: sha1-internal.c:248
Definition: sha1_i.h:18
u32 state[5]
Definition: sha1_i.h:19
u32 count[2]
Definition: sha1_i.h:20