-
Notifications
You must be signed in to change notification settings - Fork 3
/
rhlHAVAL224.pas
106 lines (75 loc) · 1.58 KB
/
rhlHAVAL224.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
unit rhlHAVAL224;
interface
uses
rhlHAVAL;
type
{ TrhlHAVAL224r3p1 }
TrhlHAVAL224r3p1 = class(TrhlHAVAL3)
public
constructor Create; override;
end;
{ TrhlHAVAL224r3p128 }
TrhlHAVAL224r3p128 = class(TrhlHAVAL224r3p1)
public
constructor Create; override;
end;
{ TrhlHAVAL224r4p1 }
TrhlHAVAL224r4p1 = class(TrhlHAVAL4)
public
constructor Create; override;
end;
{ TrhlHAVAL224r4p128 }
TrhlHAVAL224r4p128 = class(TrhlHAVAL224r4p1)
public
constructor Create; override;
end;
{ TrhlHAVAL224r5p1 }
TrhlHAVAL224r5p1 = class(TrhlHAVAL5)
public
constructor Create; override;
end;
{ TrhlHAVAL224r5p128 }
TrhlHAVAL224r5p128 = class(TrhlHAVAL224r5p1)
public
constructor Create; override;
end;
implementation
const
HASH_SIZE = 224 div 8;
{ TrhlHAVAL224r5p128 }
constructor TrhlHAVAL224r5p128.Create;
begin
inherited Create;
FPadding := $80;
end;
{ TrhlHAVAL224r5p1 }
constructor TrhlHAVAL224r5p1.Create;
begin
inherited Create;
HashSize := HASH_SIZE;
end;
{ TrhlHAVAL224r4p128 }
constructor TrhlHAVAL224r4p128.Create;
begin
inherited Create;
FPadding := $80;
end;
{ TrhlHAVAL224r4p1 }
constructor TrhlHAVAL224r4p1.Create;
begin
inherited Create;
FHashSize := HASH_SIZE;
end;
{ TrhlHAVAL224r3p1 }
constructor TrhlHAVAL224r3p1.Create;
begin
inherited Create;
HashSize := HASH_SIZE;
end;
{ TrhlHAVAL224r3p128 }
constructor TrhlHAVAL224r3p128.Create;
begin
inherited Create;
FPadding := $80;
end;
end.