blob: 8c53211cc66d1a8957f8ff7821b7ec19e6991499 (
plain) (
blame)
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>anytun: AesIcmCypher Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<h1>AesIcmCypher Class Reference</h1><!-- doxytag: class="AesIcmCypher" --><!-- doxytag: inherits="Cypher" --><code>#include <<a class="el" href="cypher_8h-source.html">cypher.h</a>></code>
<p>
<p>Inheritance diagram for AesIcmCypher:
<p><center><img src="classAesIcmCypher.png" usemap="#AesIcmCypher_map" border="0" alt=""></center>
<map name="AesIcmCypher_map">
<area href="classCypher.html" alt="Cypher" shape="rect" coords="0,0,95,24">
</map>
<a href="classAesIcmCypher-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#628abe54d9f3ac715dcaa0ae9ebf44bc">AesIcmCypher</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#fdf9ab22374ffdad856f172eefacbd17">~AesIcmCypher</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#605a38676ef12ad0b69628c5d53ef007">setKey</a> (<a class="el" href="classBuffer.html">Buffer</a> key)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#6741487a9d6dfe3ae76bb168ed711259">setSalt</a> (<a class="el" href="classBuffer.html">Buffer</a> salt)</td></tr>
<tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#a51dfb2f03f214c03b5b45f84279023f">MIN_GCRYPT_VERSION</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const <a class="el" href="datatypes_8h.html#1382fcaa92d837ce7c0961788c8243d7">u_int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#4d1dea41b9745bca5a2d84fcefe3558c">GCRYPT_SEC_MEM</a> = 16384</td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBuffer.html">Buffer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#ebac1fbb9a4cb56411fcd45ca63f47a1">getBitStream</a> (<a class="el" href="datatypes_8h.html#1382fcaa92d837ce7c0961788c8243d7">u_int32_t</a> length, <a class="el" href="datatypes_8h.html#317be74a3176b4149a817241bd69f9b2">seq_nr_t</a> seq_nr, <a class="el" href="datatypes_8h.html#c8be006c348a522ae126f67f7b2aaf4e">sender_id_t</a> sender_id)</td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">gcry_cipher_hd_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#d74a46baaee2e0755902d134274eac9a">cipher_</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBuffer.html">Buffer</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#a62620f7280574b142a0eb29880f5083">salt_</a></td></tr>
<tr><td colspan="2"><br><h2>Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classAesIcmCypher.html#04da5690d9102c6b3fe5bf78a8827ac1">gcrypt_initialized_</a></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="628abe54d9f3ac715dcaa0ae9ebf44bc"></a><!-- doxytag: member="AesIcmCypher::AesIcmCypher" ref="628abe54d9f3ac715dcaa0ae9ebf44bc" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">AesIcmCypher::AesIcmCypher </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="fdf9ab22374ffdad856f172eefacbd17"></a><!-- doxytag: member="AesIcmCypher::~AesIcmCypher" ref="fdf9ab22374ffdad856f172eefacbd17" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">AesIcmCypher::~AesIcmCypher </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="605a38676ef12ad0b69628c5d53ef007"></a><!-- doxytag: member="AesIcmCypher::setKey" ref="605a38676ef12ad0b69628c5d53ef007" args="(Buffer key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AesIcmCypher::setKey </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classBuffer.html">Buffer</a> </td>
<td class="paramname"> <em>key</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Reimplemented from <a class="el" href="classCypher.html#7320b82d14391ab7d25271aa5114e190">Cypher</a>.
</div>
</div><p>
<a class="anchor" name="6741487a9d6dfe3ae76bb168ed711259"></a><!-- doxytag: member="AesIcmCypher::setSalt" ref="6741487a9d6dfe3ae76bb168ed711259" args="(Buffer salt)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void AesIcmCypher::setSalt </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classBuffer.html">Buffer</a> </td>
<td class="paramname"> <em>salt</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Reimplemented from <a class="el" href="classCypher.html#2546ef49e5ce8abe8062186d5f6b2ef8">Cypher</a>.
</div>
</div><p>
<a class="anchor" name="ebac1fbb9a4cb56411fcd45ca63f47a1"></a><!-- doxytag: member="AesIcmCypher::getBitStream" ref="ebac1fbb9a4cb56411fcd45ca63f47a1" args="(u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classBuffer.html">Buffer</a> AesIcmCypher::getBitStream </td>
<td>(</td>
<td class="paramtype"><a class="el" href="datatypes_8h.html#1382fcaa92d837ce7c0961788c8243d7">u_int32_t</a> </td>
<td class="paramname"> <em>length</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="datatypes_8h.html#317be74a3176b4149a817241bd69f9b2">seq_nr_t</a> </td>
<td class="paramname"> <em>seq_nr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="datatypes_8h.html#c8be006c348a522ae126f67f7b2aaf4e">sender_id_t</a> </td>
<td class="paramname"> <em>sender_id</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Implements <a class="el" href="classCypher.html#7ddf1bcd476978daa97148ec406d6483">Cypher</a>.
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="a51dfb2f03f214c03b5b45f84279023f"></a><!-- doxytag: member="AesIcmCypher::MIN_GCRYPT_VERSION" ref="a51dfb2f03f214c03b5b45f84279023f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char * <a class="el" href="classAesIcmCypher.html#a51dfb2f03f214c03b5b45f84279023f">AesIcmCypher::MIN_GCRYPT_VERSION</a><code> [static]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="4d1dea41b9745bca5a2d84fcefe3558c"></a><!-- doxytag: member="AesIcmCypher::GCRYPT_SEC_MEM" ref="4d1dea41b9745bca5a2d84fcefe3558c" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="datatypes_8h.html#1382fcaa92d837ce7c0961788c8243d7">u_int32_t</a> <a class="el" href="classAesIcmCypher.html#4d1dea41b9745bca5a2d84fcefe3558c">AesIcmCypher::GCRYPT_SEC_MEM</a> = 16384<code> [static]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="d74a46baaee2e0755902d134274eac9a"></a><!-- doxytag: member="AesIcmCypher::cipher_" ref="d74a46baaee2e0755902d134274eac9a" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">gcry_cipher_hd_t <a class="el" href="classAesIcmCypher.html#d74a46baaee2e0755902d134274eac9a">AesIcmCypher::cipher_</a><code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="a62620f7280574b142a0eb29880f5083"></a><!-- doxytag: member="AesIcmCypher::salt_" ref="a62620f7280574b142a0eb29880f5083" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classBuffer.html">Buffer</a> <a class="el" href="classAesIcmCypher.html#a62620f7280574b142a0eb29880f5083">AesIcmCypher::salt_</a><code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="04da5690d9102c6b3fe5bf78a8827ac1"></a><!-- doxytag: member="AesIcmCypher::gcrypt_initialized_" ref="04da5690d9102c6b3fe5bf78a8827ac1" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classAesIcmCypher.html#04da5690d9102c6b3fe5bf78a8827ac1">AesIcmCypher::gcrypt_initialized_</a><code> [static, private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="cypher_8h-source.html">cypher.h</a><li><a class="el" href="cypher_8cpp.html">cypher.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 3 11:49:25 2007 for anytun by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>
|