1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta name="GENERATOR" content="PasDoc 0.9.0">
|
---|
5 | <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
---|
6 | <title>synacrypt: Class TSynaBlockCipher</title>
|
---|
7 | <link rel="StyleSheet" type="text/css" href="pasdoc.css">
|
---|
8 | </head>
|
---|
9 | <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
|
---|
10 | <a name="TSynaBlockCipher"></a><h1 class="cio">Class TSynaBlockCipher</h1>
|
---|
11 | <table class="sections">
|
---|
12 | <tr>
|
---|
13 | <td><a class="section" href="#@Description">Description</a></td><td><a class="section" href="#@Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section" href="#@Methods">Methods</a></td><td>Properties</td></tr></table>
|
---|
14 | <a name="@Description"></a><h2 class="unit">Unit</h2>
|
---|
15 | <p class="unitlink">
|
---|
16 | <a href="synacrypt.html">synacrypt</a></p>
|
---|
17 | <h2 class="declaration">Declaration</h2>
|
---|
18 | <p class="declaration">
|
---|
19 | <code>type TSynaBlockCipher = class(TObject)</code></p>
|
---|
20 | <h2 class="description">Description</h2>
|
---|
21 | <p>
|
---|
22 | Implementation of common routines block ciphers (dafault size is 64-bits)</p>
|
---|
23 | <p>
|
---|
24 |
|
---|
25 |
|
---|
26 | <p>Do not use this class directly, use descendants only!</p>
|
---|
27 | <a name="@Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
|
---|
28 | <ul class="hierarchy"><li class="ancestor">TObject</li>
|
---|
29 | <li class="thisitem">TSynaBlockCipher</li></ul><h2 class="overview">Overview</h2>
|
---|
30 | <a name="@Methods"></a><h3 class="summary">Methods</h3>
|
---|
31 | <table class="summary">
|
---|
32 | <tr class="list">
|
---|
33 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
34 | <td class="itemcode"><code>procedure <b><a href="synacrypt.TSynaBlockCipher.html#SetIV">SetIV</a></b>(const Value: AnsiString); virtual;</code></td>
|
---|
35 | </tr>
|
---|
36 | <tr class="list2">
|
---|
37 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
38 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#GetIV">GetIV</a></b>: AnsiString; virtual;</code></td>
|
---|
39 | </tr>
|
---|
40 | <tr class="list">
|
---|
41 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
42 | <td class="itemcode"><code>procedure <b><a href="synacrypt.TSynaBlockCipher.html#Reset">Reset</a></b>; virtual;</code></td>
|
---|
43 | </tr>
|
---|
44 | <tr class="list2">
|
---|
45 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
46 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#EncryptECB">EncryptECB</a></b>(const InData: AnsiString): AnsiString; virtual;</code></td>
|
---|
47 | </tr>
|
---|
48 | <tr class="list">
|
---|
49 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
50 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#DecryptECB">DecryptECB</a></b>(const InData: AnsiString): AnsiString; virtual;</code></td>
|
---|
51 | </tr>
|
---|
52 | <tr class="list2">
|
---|
53 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
54 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#EncryptCBC">EncryptCBC</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
55 | </tr>
|
---|
56 | <tr class="list">
|
---|
57 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
58 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#DecryptCBC">DecryptCBC</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
59 | </tr>
|
---|
60 | <tr class="list2">
|
---|
61 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
62 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#EncryptCFB8bit">EncryptCFB8bit</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
63 | </tr>
|
---|
64 | <tr class="list">
|
---|
65 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
66 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#DecryptCFB8bit">DecryptCFB8bit</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
67 | </tr>
|
---|
68 | <tr class="list2">
|
---|
69 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
70 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#EncryptCFBblock">EncryptCFBblock</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
71 | </tr>
|
---|
72 | <tr class="list">
|
---|
73 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
74 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#DecryptCFBblock">DecryptCFBblock</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
75 | </tr>
|
---|
76 | <tr class="list2">
|
---|
77 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
78 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#EncryptOFB">EncryptOFB</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
79 | </tr>
|
---|
80 | <tr class="list">
|
---|
81 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
82 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#DecryptOFB">DecryptOFB</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
83 | </tr>
|
---|
84 | <tr class="list2">
|
---|
85 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
86 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#EncryptCTR">EncryptCTR</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
87 | </tr>
|
---|
88 | <tr class="list">
|
---|
89 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
90 | <td class="itemcode"><code>function <b><a href="synacrypt.TSynaBlockCipher.html#DecryptCTR">DecryptCTR</a></b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
91 | </tr>
|
---|
92 | <tr class="list2">
|
---|
93 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
94 | <td class="itemcode"><code>constructor <b><a href="synacrypt.TSynaBlockCipher.html#Create">Create</a></b>(Key: AnsiString);</code></td>
|
---|
95 | </tr>
|
---|
96 | </table>
|
---|
97 | <h2 class="description">Description</h2>
|
---|
98 | <h3 class="detail">Methods</h3>
|
---|
99 | <table class="detail">
|
---|
100 | <tr class="list">
|
---|
101 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
102 | <td class="itemcode"><a name="SetIV"></a><code>procedure <b>SetIV</b>(const Value: AnsiString); virtual;</code></td>
|
---|
103 | </tr>
|
---|
104 | </table>
|
---|
105 | <p>
|
---|
106 | Sets the IV to Value and performs a reset</p>
|
---|
107 | <table class="detail">
|
---|
108 | <tr class="list">
|
---|
109 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
110 | <td class="itemcode"><a name="GetIV"></a><code>function <b>GetIV</b>: AnsiString; virtual;</code></td>
|
---|
111 | </tr>
|
---|
112 | </table>
|
---|
113 | <p>
|
---|
114 | Returns the current chaining information, not the actual IV</p>
|
---|
115 | <table class="detail">
|
---|
116 | <tr class="list">
|
---|
117 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
118 | <td class="itemcode"><a name="Reset"></a><code>procedure <b>Reset</b>; virtual;</code></td>
|
---|
119 | </tr>
|
---|
120 | </table>
|
---|
121 | <p>
|
---|
122 | Reset any stored chaining information</p>
|
---|
123 | <table class="detail">
|
---|
124 | <tr class="list">
|
---|
125 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
126 | <td class="itemcode"><a name="EncryptECB"></a><code>function <b>EncryptECB</b>(const InData: AnsiString): AnsiString; virtual;</code></td>
|
---|
127 | </tr>
|
---|
128 | </table>
|
---|
129 | <p>
|
---|
130 | Encrypt a 64-bit block of data using the ECB method of encryption</p>
|
---|
131 | <table class="detail">
|
---|
132 | <tr class="list">
|
---|
133 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
134 | <td class="itemcode"><a name="DecryptECB"></a><code>function <b>DecryptECB</b>(const InData: AnsiString): AnsiString; virtual;</code></td>
|
---|
135 | </tr>
|
---|
136 | </table>
|
---|
137 | <p>
|
---|
138 | Decrypt a 64-bit block of data using the ECB method of decryption</p>
|
---|
139 | <table class="detail">
|
---|
140 | <tr class="list">
|
---|
141 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
142 | <td class="itemcode"><a name="EncryptCBC"></a><code>function <b>EncryptCBC</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
143 | </tr>
|
---|
144 | </table>
|
---|
145 | <p>
|
---|
146 | Encrypt data using the CBC method of encryption</p>
|
---|
147 | <table class="detail">
|
---|
148 | <tr class="list">
|
---|
149 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
150 | <td class="itemcode"><a name="DecryptCBC"></a><code>function <b>DecryptCBC</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
151 | </tr>
|
---|
152 | </table>
|
---|
153 | <p>
|
---|
154 | Decrypt data using the CBC method of decryption</p>
|
---|
155 | <table class="detail">
|
---|
156 | <tr class="list">
|
---|
157 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
158 | <td class="itemcode"><a name="EncryptCFB8bit"></a><code>function <b>EncryptCFB8bit</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
159 | </tr>
|
---|
160 | </table>
|
---|
161 | <p>
|
---|
162 | Encrypt data using the CFB (8 bit) method of encryption</p>
|
---|
163 | <table class="detail">
|
---|
164 | <tr class="list">
|
---|
165 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
166 | <td class="itemcode"><a name="DecryptCFB8bit"></a><code>function <b>DecryptCFB8bit</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
167 | </tr>
|
---|
168 | </table>
|
---|
169 | <p>
|
---|
170 | Decrypt data using the CFB (8 bit) method of decryption</p>
|
---|
171 | <table class="detail">
|
---|
172 | <tr class="list">
|
---|
173 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
174 | <td class="itemcode"><a name="EncryptCFBblock"></a><code>function <b>EncryptCFBblock</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
175 | </tr>
|
---|
176 | </table>
|
---|
177 | <p>
|
---|
178 | Encrypt data using the CFB (block) method of encryption</p>
|
---|
179 | <table class="detail">
|
---|
180 | <tr class="list">
|
---|
181 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
182 | <td class="itemcode"><a name="DecryptCFBblock"></a><code>function <b>DecryptCFBblock</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
183 | </tr>
|
---|
184 | </table>
|
---|
185 | <p>
|
---|
186 | Decrypt data using the CFB (block) method of decryption</p>
|
---|
187 | <table class="detail">
|
---|
188 | <tr class="list">
|
---|
189 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
190 | <td class="itemcode"><a name="EncryptOFB"></a><code>function <b>EncryptOFB</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
191 | </tr>
|
---|
192 | </table>
|
---|
193 | <p>
|
---|
194 | Encrypt data using the OFB method of encryption</p>
|
---|
195 | <table class="detail">
|
---|
196 | <tr class="list">
|
---|
197 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
198 | <td class="itemcode"><a name="DecryptOFB"></a><code>function <b>DecryptOFB</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
199 | </tr>
|
---|
200 | </table>
|
---|
201 | <p>
|
---|
202 | Decrypt data using the OFB method of decryption</p>
|
---|
203 | <table class="detail">
|
---|
204 | <tr class="list">
|
---|
205 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
206 | <td class="itemcode"><a name="EncryptCTR"></a><code>function <b>EncryptCTR</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
207 | </tr>
|
---|
208 | </table>
|
---|
209 | <p>
|
---|
210 | Encrypt data using the CTR method of encryption</p>
|
---|
211 | <table class="detail">
|
---|
212 | <tr class="list">
|
---|
213 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
214 | <td class="itemcode"><a name="DecryptCTR"></a><code>function <b>DecryptCTR</b>(const Indata: AnsiString): AnsiString; virtual;</code></td>
|
---|
215 | </tr>
|
---|
216 | </table>
|
---|
217 | <p>
|
---|
218 | Decrypt data using the CTR method of decryption</p>
|
---|
219 | <table class="detail">
|
---|
220 | <tr class="list">
|
---|
221 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
---|
222 | <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(Key: AnsiString);</code></td>
|
---|
223 | </tr>
|
---|
224 | </table>
|
---|
225 | <p>
|
---|
226 | Create a encryptor/decryptor instance and initialize it by the Key.</p>
|
---|
227 | <hr noshade size="1"><span class="appinfo"><em>Generated by <a target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.9.0</a> on 2012-04-23 21:38:52</em>
|
---|
228 | </span>
|
---|
229 | </body></html>
|
---|