XenevaOS
Loading...
Searching...
No Matches
sha1.h
Go to the documentation of this file.
1//
2// Copyright(C) 2005-2014 Simon Howard
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License
6// as published by the Free Software Foundation; either version 2
7// of the License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// DESCRIPTION:
15// SHA-1 digest.
16//
17
18#ifndef __SHA1_H__
19#define __SHA1_H__
20
21#include "doomtype.h"
22
24typedef byte sha1_digest_t[20];
25
32
33void SHA1_Init(sha1_context_t *context);
34void SHA1_Update(sha1_context_t *context, byte *buf, size_t len);
35void SHA1_Final(sha1_digest_t digest, sha1_context_t *context);
36void SHA1_UpdateInt32(sha1_context_t *context, unsigned int val);
37void SHA1_UpdateString(sha1_context_t *context, char *str);
38
39#endif /* #ifndef __SHA1_H__ */
40
void SHA1_UpdateInt32(sha1_context_t *context, unsigned int val)
Definition sha1.c:303
void SHA1_Final(sha1_digest_t digest, sha1_context_t *context)
Definition sha1.c:238
void SHA1_Init(sha1_context_t *context)
Definition sha1.c:40
byte sha1_digest_t[20]
Definition sha1.h:24
void SHA1_Update(sha1_context_t *context, byte *buf, size_t len)
Definition sha1.c:198
void SHA1_UpdateString(sha1_context_t *context, char *str)
Definition sha1.c:315
unsigned int uint32_t
Definition acefiex.h:163
size_t len
Definition initial.c:23
Definition sha1.h:26
uint32_t nblocks
Definition sha1.h:28
uint32_t h0
Definition sha1.h:27
uint32_t h2
Definition sha1.h:27
int count
Definition sha1.h:30
uint32_t h1
Definition sha1.h:27
uint32_t h3
Definition sha1.h:27
uint32_t h4
Definition sha1.h:27
byte buf[64]
Definition sha1.h:29