1--TEST--
2mcrypt_enc_get_algorithms_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_algorithms_name($td) . "\n";
9$td  = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_ECB, '');
10echo mcrypt_enc_get_algorithms_name($td) . "\n";
11$td  = mcrypt_module_open(MCRYPT_RC2, '', MCRYPT_MODE_CBC, '');
12echo mcrypt_enc_get_algorithms_name($td) . "\n";
13$td  = mcrypt_module_open(MCRYPT_BLOWFISH, '', MCRYPT_MODE_CBC, '');
14echo mcrypt_enc_get_algorithms_name($td) . "\n";
15$td  = mcrypt_module_open('des', '', 'ecb', '');
16echo mcrypt_enc_get_algorithms_name($td) . "\n";
17--EXPECT--
18Rijndael-128
19Rijndael-128
20RC2
21Blowfish
22DES