Botan
1.10.17
src
hash
rmd128
rmd128.h
Go to the documentation of this file.
1
/*
2
* RIPEMD-128
3
* (C) 1999-2007 Jack Lloyd
4
*
5
* Distributed under the terms of the Botan license
6
*/
7
8
#ifndef BOTAN_RIPEMD_128_H__
9
#define BOTAN_RIPEMD_128_H__
10
11
#include <botan/mdx_hash.h>
12
13
namespace
Botan
{
14
15
/**
16
* RIPEMD-128
17
*/
18
class
BOTAN_DLL
RIPEMD_128
:
public
MDx_HashFunction
19
{
20
public
:
21
std::string
name
()
const
{
return
"RIPEMD-128"
; }
22
size_t
output_length
()
const
{
return
16; }
23
HashFunction
*
clone
()
const
{
return
new
RIPEMD_128
; }
24
25
void
clear();
26
27
RIPEMD_128
() :
MDx_HashFunction
(64, false, true), M(16), digest(4)
28
{
clear
(); }
29
private
:
30
void
compress_n(
const
byte
[],
size_t
blocks);
31
void
copy_out(
byte
[]);
32
33
SecureVector<u32bit>
M, digest;
34
};
35
36
}
37
38
#endif
Botan::HashFunction
Definition
hash.h:22
Botan::MDx_HashFunction::MDx_HashFunction
MDx_HashFunction(size_t block_length, bool big_byte_endian, bool big_bit_endian, size_t counter_size=8)
Definition
mdx_hash.cpp:17
Botan::RIPEMD_128::clone
HashFunction * clone() const
Definition
rmd128.h:23
Botan::RIPEMD_128::name
std::string name() const
Definition
rmd128.h:21
Botan::RIPEMD_128::clear
void clear()
Definition
rmd128.cpp:166
Botan::RIPEMD_128::output_length
size_t output_length() const
Definition
rmd128.h:22
Botan::RIPEMD_128::RIPEMD_128
RIPEMD_128()
Definition
rmd128.h:27
Botan::SecureVector
Definition
secmem.h:329
Botan
Definition
algo_base.h:14
Generated by
1.18.0