libosmogsm  1.9.2
Osmocom GSM library
sha256_i.h
Go to the documentation of this file.
1 /*
2  * SHA-256 internal definitions
3  * Copyright (c) 2003-2011, 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 SHA256_I_H
16 #define SHA256_I_H
17 
18 #define SHA256_BLOCK_SIZE 64
19 
20 struct sha256_state {
24 };
25 
26 void sha256_init(struct sha256_state *md);
27 int sha256_process(struct sha256_state *md, const unsigned char *in,
28  unsigned long inlen);
29 int sha256_done(struct sha256_state *md, unsigned char *out);
30 
31 #endif /* SHA256_I_H */
u32
uint32_t u32
Definition: common.h:25
sha256_done
int sha256_done(struct sha256_state *md, unsigned char *out)
Terminate the hash to get the digest.
Definition: sha256-internal.c:190
sha256_process
int sha256_process(struct sha256_state *md, const unsigned char *in, unsigned long inlen)
Process a block of memory though the hash.
Definition: sha256-internal.c:150
SHA256_BLOCK_SIZE
#define SHA256_BLOCK_SIZE
Definition: sha256_i.h:18
sha256_state::curlen
u32 curlen
Definition: sha256_i.h:22
u64
uint64_t u64
Definition: common.h:24
u8
uint8_t u8
Definition: common.h:27
sha256_state::buf
u8 buf[SHA256_BLOCK_SIZE]
Definition: sha256_i.h:23
sha256_init
void sha256_init(struct sha256_state *md)
Definition: sha256-internal.c:129
sha256_state::state
u32 state[8]
Definition: sha256_i.h:22
sha256_state::length
u64 length
Definition: sha256_i.h:21
sha256_state
Definition: sha256_i.h:20