sha1_i.h
Go to the documentation of this file.
/*
* SHA1 internal definitions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Alternatively, this software may be distributed under the terms of BSD
* license.
*
* See README and COPYING for more details.
*/
#ifndef SHA1_I_H
#define SHA1_I_H
struct SHA1Context {
u32 state[5];
u32 count[2];
unsigned char buffer[64];
};
void SHA1Init(struct SHA1Context *context);
void SHA1Update(struct SHA1Context *context, const void *data, u32 len);
void SHA1Final(unsigned char digest[20], struct SHA1Context *context);
void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
#endif /* SHA1_I_H */
data
uint8_t data[0]
len
uint8_t len
Definition: gsm_04_11.h:0
u32
uint32_t u32
Definition: common.h:25
SHA1Final
void SHA1Final(unsigned char digest[20], struct SHA1Context *context)
Definition: sha1-internal.c:278
SHA1Transform
void SHA1Transform(u32 state[5], const unsigned char buffer[64])
Definition: sha1-internal.c:176
SHA1Init
void SHA1Init(struct SHA1Context *context)
Definition: sha1-internal.c:234
SHA1Update
void SHA1Update(struct SHA1Context *context, const void *data, u32 len)
Definition: sha1-internal.c:248
SHA1Context
Definition: sha1_i.h:18
SHA1Context::state
u32 state[5]
Definition: sha1_i.h:19
SHA1Context::count
u32 count[2]
Definition: sha1_i.h:20
buffer