BeeCrypt
4.2.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
include
beecrypt
ripemd160.h
Go to the documentation of this file.
1
/*
2
* This library is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU Lesser General Public
4
* License as published by the Free Software Foundation; either
5
* version 2.1 of the License, or (at your option) any later version.
6
*
7
* This library is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10
* Lesser General Public License for more details.
11
*
12
* You should have received a copy of the GNU Lesser General Public
13
* License along with this library; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
*
16
*/
17
25
#ifndef _RIPEMD160_H
26
#define _RIPEMD160_H
27
28
#include "
beecrypt/beecrypt.h
"
29
33
#ifdef __cplusplus
34
struct
BEECRYPTAPI
ripemd160Param
35
#else
36
struct _ripemd160Param
37
#endif
38
{
41
uint32_t h[5];
44
uint32_t data[16];
49
#if (MP_WBITS == 64)
50
mpw
length[1];
51
#elif (MP_WBITS == 32)
52
mpw
length[2];
53
#else
54
# error
55
#endif
56
60
uint32_t
offset
;
61
};
62
63
#ifndef __cplusplus
64
typedef
struct
_ripemd160Param
ripemd160Param
;
65
#endif
66
67
#ifdef __cplusplus
68
extern
"C"
{
69
#endif
70
74
extern
BEECRYPTAPI
const
hashFunction
ripemd160
;
75
81
BEECRYPTAPI
82
void
ripemd160Process
(
ripemd160Param
* mp);
83
90
BEECRYPTAPI
91
int
ripemd160Reset
(
ripemd160Param
* mp);
92
101
BEECRYPTAPI
102
int
ripemd160Update
(
ripemd160Param
* mp,
const
byte
* data,
size_t
size);
103
111
BEECRYPTAPI
112
int
ripemd160Digest
(
ripemd160Param
* mp,
byte
* digest);
113
114
#ifdef __cplusplus
115
}
116
#endif
117
118
#endif
Generated by
1.8.4