forked from HvyIndustries/crane-php-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcrypt.php
532 lines (497 loc) · 21.3 KB
/
mcrypt.php
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
<?php
// Start of mcrypt v.7.0.4-7ubuntu2
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Gets the key size of the specified cipher
* @link http://php.net/manual/en/function.mcrypt-get-key-size.php
* @param int $cipher One of the <b>MCRYPT_ciphername</b> constants, or the name of the algorithm as string.</p>
* @return int the maximum supported key size of the algorithm in bytes
* or <b>FALSE</b> on failure.
*/
function mcrypt_get_key_size(int $cipher): int {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Gets the block size of the specified cipher
* @link http://php.net/manual/en/function.mcrypt-get-block-size.php
* @param int $cipher One of the <b>MCRYPT_ciphername</b> constants, or the name of the algorithm as string.</p>
* @return int Gets the block size, as an integer.
*/
function mcrypt_get_block_size(int $cipher): int {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Gets the name of the specified cipher
* @link http://php.net/manual/en/function.mcrypt-get-cipher-name.php
* @param int $cipher One of the <b>MCRYPT_ciphername</b> constants, or the name of the algorithm as string.</p>
* @return string This function returns the name of the cipher or <b>FALSE</b> if the cipher does
* not exist.
*/
function mcrypt_get_cipher_name(int $cipher): string {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Creates an initialization vector (IV) from a random source
* @link http://php.net/manual/en/function.mcrypt-create-iv.php
* @param int $size <p>
* The size of the IV.
* </p>
* @param int $source [optional] <p>
* The source of the IV. The source can be
* <b>MCRYPT_RAND</b> (system random number generator),
* <b>MCRYPT_DEV_RANDOM</b> (read data from
* /dev/random) and
* <b>MCRYPT_DEV_URANDOM</b> (read data from
* /dev/urandom). Prior to 5.3.0,
* <b>MCRYPT_RAND</b> was the only one supported on Windows.
* </p>
* <p>
* Note that the default value of this parameter was
* <b>MCRYPT_DEV_RANDOM</b> prior to PHP 5.6.0.
* </p>
* Note that <b>MCRYPT_DEV_RANDOM</b> may block until more
* entropy is available.
* @return string the initialization vector, or <b>FALSE</b> on error.
*/
function mcrypt_create_iv(int $size, int $source = MCRYPT_DEV_URANDOM): string {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Gets an array of all supported ciphers
* @link http://php.net/manual/en/function.mcrypt-list-algorithms.php
* @param string $lib_dir [optional] <p>
* Specifies the directory where all algorithms are located. If not
* specified, the value of the mcrypt.algorithms_dir
* <i>php.ini</i> directive is used.
* </p>
* @return array an array with all the supported algorithms.
*/
function mcrypt_list_algorithms(string $lib_dir = 'ini_get("mcrypt.algorithms_dir")'): array {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Gets an array of all supported modes
* @link http://php.net/manual/en/function.mcrypt-list-modes.php
* @param string $lib_dir [optional] <p>
* Specifies the directory where all modes are located. If not
* specified, the value of the mcrypt.modes_dir
* <i>php.ini</i> directive is used.
* </p>
* @return array an array with all the supported modes.
*/
function mcrypt_list_modes(string $lib_dir = 'ini_get("mcrypt.modes_dir")'): array {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns the size of the IV belonging to a specific cipher/mode combination
* @link http://php.net/manual/en/function.mcrypt-get-iv-size.php
* @param string $cipher One of the <b>MCRYPT_ciphername</b> constants, or the name of the algorithm as string.</p>
* @param string $mode One of the <b>MCRYPT_MODE_modename</b> constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream".</p>
* <p>
* The IV is ignored in ECB mode as this mode does not require it. You will
* need to have the same IV (think: starting point) both at encryption and
* decryption stages, otherwise your encryption will fail.
* </p>
* @return int the size of the Initialization Vector (IV) in bytes. On error the
* function returns <b>FALSE</b>. If the IV is ignored in the specified cipher/mode
* combination zero is returned.
*/
function mcrypt_get_iv_size(string $cipher, string $mode): int {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Encrypts plaintext with given parameters
* @link http://php.net/manual/en/function.mcrypt-encrypt.php
* @param string $cipher One of the <b>MCRYPT_ciphername</b> constants, or the name of the algorithm as string.</p>
* @param string $key <p>
* The key with which the data will be encrypted. If the provided key size is
* not supported by the cipher, the function will emit a warning and return <b>FALSE</b>
* </p>
* @param string $data <p>
* The data that will be encrypted with the given <i>cipher</i>
* and <i>mode</i>. If the size of the data is not n * blocksize,
* the data will be padded with '\0'.
* </p>
* <p>
* The returned crypttext can be larger than the size of the data that was
* given by <i>data</i>.
* </p>
* @param string $mode One of the <b>MCRYPT_MODE_modename</b> constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream".</p>
* @param string $iv [optional] Used for the initialization in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If the provided IV size is not supported by the chaining mode or no IV was provided, but the chaining mode requires one, the function will emit a warning and return <b>FALSE</b>.</p>
* @return string the encrypted data as a string or <b>FALSE</b> on failure.
*/
function mcrypt_encrypt(string $cipher, string $key, string $data, string $mode, string $iv = null): string {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Decrypts crypttext with given parameters
* @link http://php.net/manual/en/function.mcrypt-decrypt.php
* @param string $cipher One of the <b>MCRYPT_ciphername</b> constants, or the name of the algorithm as string.</p>
* @param string $key <p>
* The key with which the data was encrypted. If the provided key size is
* not supported by the cipher, the function will emit a warning and return <b>FALSE</b>
* </p>
* @param string $data <p>
* The data that will be decrypted with the given <i>cipher</i>
* and <i>mode</i>. If the size of the data is not n * blocksize,
* the data will be padded with '\0'.
* </p>
* @param string $mode One of the <b>MCRYPT_MODE_modename</b> constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream".</p>
* @param string $iv [optional] Used for the initialization in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If the provided IV size is not supported by the chaining mode or no IV was provided, but the chaining mode requires one, the function will emit a warning and return <b>FALSE</b>.</p>
* @return string the decrypted data as a string or <b>FALSE</b> on failure.
*/
function mcrypt_decrypt(string $cipher, string $key, string $data, string $mode, string $iv = null): string {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Opens the module of the algorithm and the mode to be used
* @link http://php.net/manual/en/function.mcrypt-module-open.php
* @param string $algorithm One of the <b>MCRYPT_ciphername</b> constants, or the name of the algorithm as string.</p>
* @param string $algorithm_directory <p>
* The <i>algorithm_directory</i> parameter is used to locate
* the encryption module. When you supply a directory name, it is used. When
* you set it to an empty string (""), the value set by the
* mcrypt.algorithms_dir <i>php.ini</i> directive is used. When
* it is not set, the default directory that is used is the one that was compiled
* into libmcrypt (usually /usr/local/lib/libmcrypt).
* </p>
* @param string $mode One of the <b>MCRYPT_MODE_modename</b> constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream".</p>
* @param string $mode_directory <p>
* The <i>mode_directory</i> parameter is used to locate
* the encryption module. When you supply a directory name, it is used. When
* you set it to an empty string (""), the value set by the
* mcrypt.modes_dir <i>php.ini</i> directive is used. When
* it is not set, the default directory that is used is the one that was compiled-in
* into libmcrypt (usually /usr/local/lib/libmcrypt).
* </p>
* @return resource Normally it returns an encryption descriptor, or <b>FALSE</b> on error.
*/
function mcrypt_module_open(string $algorithm, string $algorithm_directory, string $mode, string $mode_directory) {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* This function initializes all buffers needed for encryption
* @link http://php.net/manual/en/function.mcrypt-generic-init.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @param string $key <p>
* The maximum length of the key should be the one obtained by calling
* <b>mcrypt_enc_get_key_size</b> and every value smaller
* than this is legal.
* </p>
* @param string $iv <p>
* The IV should normally have the size of the algorithms block size, but
* you must obtain the size by calling
* <b>mcrypt_enc_get_iv_size</b>. IV is ignored in ECB. IV
* MUST exist in CFB, CBC, STREAM, nOFB and OFB modes. It needs to be
* random and unique (but not secret). The same IV must be used for
* encryption/decryption. If you do not want to use it you should set it
* to zeros, but this is not recommended.
* </p>
* @return int The function returns a negative value on error: -3 when the key length
* was incorrect, -4 when there was a memory allocation problem and any
* other return value is an unknown error. If an error occurs a warning will
* be displayed accordingly. <b>FALSE</b> is returned if incorrect parameters
* were passed.
*/
function mcrypt_generic_init($td, string $key, string $iv): int {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* This function encrypts data
* @link http://php.net/manual/en/function.mcrypt-generic.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* <p>
* The encryption handle should always be initialized with
* <b>mcrypt_generic_init</b> with a key and an IV before
* calling this function. Where the encryption is done, you should free the
* encryption buffers by calling <b>mcrypt_generic_deinit</b>.
* See <b>mcrypt_module_open</b> for an example.
* </p>
* @param string $data <p>
* The data to encrypt.
* </p>
* @return string the encrypted data.
*/
function mcrypt_generic($td, string $data): string {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Decrypts data
* @link http://php.net/manual/en/function.mdecrypt-generic.php
* @param resource $td <p>
* An encryption descriptor returned by
* <b>mcrypt_module_open</b>
* </p>
* @param string $data <p>
* Encrypted data.
* </p>
* @return string
*/
function mdecrypt_generic($td, string $data): string {}
/**
* (PHP 4 >= 4.0.7, PHP 5, PHP 7)<br/>
* This function deinitializes an encryption module
* @link http://php.net/manual/en/function.mcrypt-generic-deinit.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mcrypt_generic_deinit($td): bool {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Runs a self test on the opened module
* @link http://php.net/manual/en/function.mcrypt-enc-self-test.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return int If the self test succeeds it returns <b>FALSE</b>. In case of an error, it
* returns <b>TRUE</b>.
*/
function mcrypt_enc_self_test($td): int {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Checks whether the encryption of the opened mode works on blocks
* @link http://php.net/manual/en/function.mcrypt-enc-is-block-algorithm-mode.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return bool <b>TRUE</b> if the mode is for use with block algorithms, otherwise it
* returns <b>FALSE</b>.
*/
function mcrypt_enc_is_block_algorithm_mode($td): bool {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Checks whether the algorithm of the opened mode is a block algorithm
* @link http://php.net/manual/en/function.mcrypt-enc-is-block-algorithm.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return bool <b>TRUE</b> if the algorithm is a block algorithm or <b>FALSE</b> if it is
* a stream one.
*/
function mcrypt_enc_is_block_algorithm($td): bool {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Checks whether the opened mode outputs blocks
* @link http://php.net/manual/en/function.mcrypt-enc-is-block-mode.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return bool <b>TRUE</b> if the mode outputs blocks of bytes,
* or <b>FALSE</b> if it outputs just bytes.
*/
function mcrypt_enc_is_block_mode($td): bool {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns the blocksize of the opened algorithm
* @link http://php.net/manual/en/function.mcrypt-enc-get-block-size.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return int the block size of the specified algorithm in bytes.
*/
function mcrypt_enc_get_block_size($td): int {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns the maximum supported keysize of the opened mode
* @link http://php.net/manual/en/function.mcrypt-enc-get-key-size.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return int the maximum supported key size of the algorithm in bytes.
*/
function mcrypt_enc_get_key_size($td): int {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns an array with the supported keysizes of the opened algorithm
* @link http://php.net/manual/en/function.mcrypt-enc-get-supported-key-sizes.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return array an array with the key sizes supported by the algorithm
* specified by the encryption descriptor. If it returns an empty
* array then all key sizes between 1 and
* <b>mcrypt_enc_get_key_size</b> are supported by the
* algorithm.
*/
function mcrypt_enc_get_supported_key_sizes($td): array {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns the size of the IV of the opened algorithm
* @link http://php.net/manual/en/function.mcrypt-enc-get-iv-size.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return int the size of the IV, or 0 if the IV is ignored by the algorithm.
*/
function mcrypt_enc_get_iv_size($td): int {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns the name of the opened algorithm
* @link http://php.net/manual/en/function.mcrypt-enc-get-algorithms-name.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return string the name of the opened algorithm as a string.
*/
function mcrypt_enc_get_algorithms_name($td): string {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns the name of the opened mode
* @link http://php.net/manual/en/function.mcrypt-enc-get-modes-name.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return string the name as a string.
*/
function mcrypt_enc_get_modes_name($td): string {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* This function runs a self test on the specified module
* @link http://php.net/manual/en/function.mcrypt-module-self-test.php
* @param string $algorithm One of the <b>MCRYPT_ciphername</b> constants, or the name of the algorithm as string.</p>
* @param string $lib_dir [optional] <p>
* The optional <i>lib_dir</i> parameter can contain the
* location where the algorithm module is on the system.
* </p>
* @return bool The function returns <b>TRUE</b> if the self test succeeds, or <b>FALSE</b> when it
* fails.
*/
function mcrypt_module_self_test(string $algorithm, string $lib_dir = null): bool {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns if the specified module is a block algorithm or not
* @link http://php.net/manual/en/function.mcrypt-module-is-block-algorithm-mode.php
* @param string $mode <p>
* The mode to check.
* </p>
* @param string $lib_dir [optional] <p>
* The optional <i>lib_dir</i> parameter can contain the
* location where the algorithm module is on the system.
* </p>
* @return bool This function returns <b>TRUE</b> if the mode is for use with block
* algorithms, otherwise it returns <b>FALSE</b>. (e.g. <b>FALSE</b> for stream, and
* <b>TRUE</b> for cbc, cfb, ofb).
*/
function mcrypt_module_is_block_algorithm_mode(string $mode, string $lib_dir = null): bool {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* This function checks whether the specified algorithm is a block algorithm
* @link http://php.net/manual/en/function.mcrypt-module-is-block-algorithm.php
* @param string $algorithm <p>
* The algorithm to check.
* </p>
* @param string $lib_dir [optional] <p>
* The optional <i>lib_dir</i> parameter can contain the
* location where the algorithm module is on the system.
* </p>
* @return bool This function returns <b>TRUE</b> if the specified algorithm is a block
* algorithm, or <b>FALSE</b> if it is a stream one.
*/
function mcrypt_module_is_block_algorithm(string $algorithm, string $lib_dir = null): bool {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns if the specified mode outputs blocks or not
* @link http://php.net/manual/en/function.mcrypt-module-is-block-mode.php
* @param string $mode One of the <b>MCRYPT_MODE_modename</b> constants, or one of the following strings: "ecb", "cbc", "cfb", "ofb", "nofb" or "stream".</p>
* @param string $lib_dir [optional] <p>
* The optional <i>lib_dir</i> parameter can contain the
* location where the algorithm module is on the system.
* </p>
* @return bool This function returns <b>TRUE</b> if the mode outputs blocks of bytes or
* <b>FALSE</b> if it outputs just bytes. (e.g. <b>TRUE</b> for cbc and ecb, and
* <b>FALSE</b> for cfb and stream).
*/
function mcrypt_module_is_block_mode(string $mode, string $lib_dir = null): bool {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns the blocksize of the specified algorithm
* @link http://php.net/manual/en/function.mcrypt-module-get-algo-block-size.php
* @param string $algorithm <p>
* The algorithm name.
* </p>
* @param string $lib_dir [optional] <p>
* This optional parameter can contain the location where the mode module
* is on the system.
* </p>
* @return int the block size of the algorithm specified in bytes.
*/
function mcrypt_module_get_algo_block_size(string $algorithm, string $lib_dir = null): int {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns the maximum supported keysize of the opened mode
* @link http://php.net/manual/en/function.mcrypt-module-get-algo-key-size.php
* @param string $algorithm <p>
* The algorithm name.
* </p>
* @param string $lib_dir [optional] <p>
* This optional parameter can contain the location where the mode module
* is on the system.
* </p>
* @return int This function returns the maximum supported key size of the
* algorithm specified in bytes.
*/
function mcrypt_module_get_algo_key_size(string $algorithm, string $lib_dir = null): int {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Returns an array with the supported keysizes of the opened algorithm
* @link http://php.net/manual/en/function.mcrypt-module-get-supported-key-sizes.php
* @param string $algorithm <p>
* The algorithm to be used.
* </p>
* @param string $lib_dir [optional] <p>
* The optional <i>lib_dir</i> parameter can contain the
* location where the algorithm module is on the system.
* </p>
* @return array an array with the key sizes supported by the specified algorithm.
* If it returns an empty array then all key sizes between 1 and
* <b>mcrypt_module_get_algo_key_size</b> are supported by the
* algorithm.
*/
function mcrypt_module_get_supported_key_sizes(string $algorithm, string $lib_dir = null): array {}
/**
* (PHP 4 >= 4.0.2, PHP 5, PHP 7)<br/>
* Closes the mcrypt module
* @link http://php.net/manual/en/function.mcrypt-module-close.php
* @param resource $td <p>
* The encryption descriptor.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mcrypt_module_close($td): bool {}
define ('MCRYPT_ENCRYPT', 0);
define ('MCRYPT_DECRYPT', 1);
define ('MCRYPT_DEV_RANDOM', 0);
define ('MCRYPT_DEV_URANDOM', 1);
define ('MCRYPT_RAND', 2);
define ('MCRYPT_3DES', "tripledes");
define ('MCRYPT_ARCFOUR_IV', "arcfour-iv");
define ('MCRYPT_ARCFOUR', "arcfour");
define ('MCRYPT_BLOWFISH', "blowfish");
define ('MCRYPT_BLOWFISH_COMPAT', "blowfish-compat");
define ('MCRYPT_CAST_128', "cast-128");
define ('MCRYPT_CAST_256', "cast-256");
define ('MCRYPT_CRYPT', "crypt");
define ('MCRYPT_DES', "des");
define ('MCRYPT_ENIGNA', "crypt");
define ('MCRYPT_GOST', "gost");
define ('MCRYPT_LOKI97', "loki97");
define ('MCRYPT_PANAMA', "panama");
define ('MCRYPT_RC2', "rc2");
define ('MCRYPT_RIJNDAEL_128', "rijndael-128");
define ('MCRYPT_RIJNDAEL_192', "rijndael-192");
define ('MCRYPT_RIJNDAEL_256', "rijndael-256");
define ('MCRYPT_SAFER64', "safer-sk64");
define ('MCRYPT_SAFER128', "safer-sk128");
define ('MCRYPT_SAFERPLUS', "saferplus");
define ('MCRYPT_SERPENT', "serpent");
define ('MCRYPT_THREEWAY', "threeway");
define ('MCRYPT_TRIPLEDES', "tripledes");
define ('MCRYPT_TWOFISH', "twofish");
define ('MCRYPT_WAKE', "wake");
define ('MCRYPT_XTEA', "xtea");
define ('MCRYPT_IDEA', "idea");
define ('MCRYPT_MARS', "mars");
define ('MCRYPT_RC6', "rc6");
define ('MCRYPT_SKIPJACK', "skipjack");
define ('MCRYPT_MODE_CBC', "cbc");
define ('MCRYPT_MODE_CFB', "cfb");
define ('MCRYPT_MODE_ECB', "ecb");
define ('MCRYPT_MODE_NOFB', "nofb");
define ('MCRYPT_MODE_OFB', "ofb");
define ('MCRYPT_MODE_STREAM', "stream");
// End of mcrypt v.7.0.4-7ubuntu2
?>