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
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
160
  
161
  
162
  
163
  
164
  
165
  
166
  
167
  
168
  
169
  
170
  
171
  
172
  
173
  
174
  
175
  
176
  
177
  
178
  
179
  
180
  
181
  
182
  
183
  
184
  
185
  
186
  
187
  
188
  
189
  
190
  
#pike __REAL_VERSION__ 
#pragma strict_types 
#require constant(Nettle.AES) 
 
//! AES (American Encryption Standard) is a quite new block cipher, 
//! specified by NIST as a replacement for the older DES standard. The 
//! standard is the result of a competition between cipher designers. 
//! The winning design, also known as RIJNDAEL, was constructed by 
//! Joan Daemen and Vincent Rijnmen. 
//! 
//! Like all the AES candidates, the winning design uses a block size 
//! of 128 bits, or 16 octets, and variable key-size, 128, 192 and 256 
//! bits (16, 24 and 32 octets) being the allowed key sizes. It does 
//! not have any weak keys. 
 
inherit Nettle.AES; 
 
#if constant(Nettle.POLY1305_AES) 
 
//! @module POLY1305 
 
//! @ignore 
protected class Poly1305 
{ 
//! @endignore 
 
  inherit Nettle.POLY1305_AES; 
 
  //! Get a POLY1305 @[State] object initialized with a password. 
  State `()(string(8bit) password) 
  { 
    return State(password); 
  } 
 
//! @ignore 
} 
 
Poly1305 POLY1305 = Poly1305(); 
 
//! @endignore 
 
//! @endmodule 
 
#endif /* POLY1305_AES */ 
 
#if constant(Nettle.UMAC32_AES) 
 
//! @module UMAC32 
//! UMAC is a familty of message digest functions based on universal 
//! hashing and @[AES] that is specified in @rfc{4418@}. They differ 
//! mainly in the size of the resulting digest. 
//! 
//! @[UMAC32] outputs a digest of 32 bits or 4 octets. 
//! 
//! @seealso 
//!   @[UMAC64], @[UMAC96], @[UMAC128] 
 
//! @ignore 
protected class _UMAC32 
{ 
//! @endignore 
 
  inherit Nettle.UMAC32_AES; 
 
  //! Get a UMAC32 @[State] object initialized with a password. 
  State `()(string(8bit) password) 
  { 
    return State(password); 
  } 
 
//! @ignore 
} 
 
_UMAC32 UMAC32 = _UMAC32(); 
 
//! @endignore 
 
//! @endmodule 
 
#endif /* UMAC32_AES */ 
 
#if constant(Nettle.UMAC64_AES) 
 
//! @module UMAC64 
//! UMAC is a familty of message digest functions based on universal 
//! hashing and @[AES] that is specified in @rfc{4418@}. They differ 
//! mainly in the size of the resulting digest. 
//! 
//! @[UMAC64] outputs a digest of 64 bits or 8 octets. 
//! 
//! @seealso 
//!   @[UMAC32], @[UMAC96], @[UMAC128] 
 
//! @ignore 
protected class _UMAC64 
{ 
//! @endignore 
 
  inherit Nettle.UMAC64_AES; 
 
  //! Get a UMAC64 @[State] object initialized with a password. 
  State `()(string(8bit) password) 
  { 
    return State(password); 
  } 
 
//! @ignore 
} 
 
_UMAC64 UMAC64 = _UMAC64(); 
 
//! @endignore 
 
//! @endmodule 
 
#endif /* UMAC64_AES */ 
 
#if constant(Nettle.UMAC96_AES) 
 
//! @module UMAC96 
//! UMAC is a familty of message digest functions based on universal 
//! hashing and @[AES] that is specified in @rfc{4418@}. They differ 
//! mainly in the size of the resulting digest. 
//! 
//! @[UMAC96] outputs a digest of 96 bits or 12 octets. 
//! 
//! @seealso 
//!   @[UMAC32], @[UMAC64], @[UMAC128] 
 
//! @ignore 
protected class _UMAC96 
{ 
//! @endignore 
 
  inherit Nettle.UMAC96_AES; 
 
  //! Get a UMAC96 @[State] object initialized with a password. 
  State `()(string(8bit) password) 
  { 
    return State(password); 
  } 
 
//! @ignore 
} 
 
_UMAC96 UMAC96 = _UMAC96(); 
 
//! @endignore 
 
//! @endmodule 
 
#endif /* UMAC96_AES */ 
 
#if constant(Nettle.UMAC128_AES) 
 
//! @module UMAC128 
//! UMAC is a familty of message digest functions based on universal 
//! hashing and @[AES] that is specified in @rfc{4418@}. They differ 
//! mainly in the size of the resulting digest. 
//! 
//! @[UMAC128] outputs a digest of 128 bits or 16 octets. 
//! 
//! @seealso 
//!   @[UMAC32], @[UMAC64], @[UMAC96] 
 
//! @ignore 
protected class _UMAC128 
{ 
//! @endignore 
 
  inherit Nettle.UMAC128_AES; 
 
  //! Get a UMAC128 @[State] object initialized with a password. 
  State `()(string(8bit) password) 
  { 
    return State(password); 
  } 
 
//! @ignore 
} 
 
_UMAC128 UMAC128 = _UMAC128(); 
 
//! @endignore 
 
//! @endmodule 
 
#endif /* UMAC128_AES */