1--TEST--
2mcrypt_enc_get_modes_name
3--SKIPIF--
4<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
5--FILE--
6<?php
7$td  = mcrypt_module_open('rijndael-128', '', MCRYPT_MODE_ECB, '');
8echo mcrypt_enc_get_modes_name($td) . "\n";
9$td  = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_CBC, '');
10echo mcrypt_enc_get_modes_name($td) . "\n";
11$td  = mcrypt_module_open(MCRYPT_WAKE, '', MCRYPT_MODE_STREAM, '');
12echo mcrypt_enc_get_modes_name($td) . "\n";
13$td  = mcrypt_module_open(MCRYPT_BLOWFISH, '', MCRYPT_MODE_OFB, '');
14echo mcrypt_enc_get_modes_name($td) . "\n";
15$td  = mcrypt_module_open('des', '', 'ecb', '');
16echo mcrypt_enc_get_modes_name($td) . "\n";
17$td  = mcrypt_module_open('des', '', 'cbc', '');
18echo mcrypt_enc_get_modes_name($td) . "\n";
19--EXPECT--
20ECB
21CBC
22STREAM
23OFB
24ECB
25CBC
26