Skip to content

Commit 5b16bf1

Browse files
committed
drop null value, deprecated in 8.1
1 parent 6cf8c80 commit 5b16bf1

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

tests/mcrypt_rijndael128_128BitKey.phpt

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ $data = 'This is the secret message which must be encrypted';
3232

3333
// keys up to 128 bits (16 bytes)
3434
$keys = array(
35-
null,
3635
'',
3736
'12345678',
3837
'1234567890123456'
3938
);
4039
// rijndael128 is a block cipher of 128 bits (16 bytes)
4140
$ivs = array(
42-
null,
4341
'',
4442
'12345678',
4543
'1234567890123456',
@@ -72,61 +70,47 @@ foreach ($ivs as $iv) {
7270

7371
key length=0
7472

75-
Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 45
76-
77-
Warning: mcrypt_encrypt(): Key of size 0 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d
78-
string(0) ""
79-
80-
key length=0
81-
82-
Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 45
73+
Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line %d
8374

8475
Warning: mcrypt_encrypt(): Key of size 0 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d
8576
string(0) ""
8677

8778
key length=8
8879

89-
Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 45
80+
Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line %d
9081

9182
Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d
9283
string(0) ""
9384

9485
key length=16
9586

96-
Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 45
87+
Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line %d
9788
string(128) "dc8f957ec530acf10cd95ba7da7b6405380fe19a2941e9a8de54680512f18491bc374e5464885ae6c2ae2aa7a6cdd2fbe12a06bbc4bd59dbbfaa15f09044f101"
9889

9990
--- testing different iv lengths
10091

10192
iv length=0
10293

103-
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53
104-
105-
Warning: mcrypt_decrypt(): Received initialization vector of size 0, but size 16 is required for this encryption mode in %s on line %d
106-
string(0) ""
107-
108-
iv length=0
109-
110-
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53
94+
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line %d
11195

11296
Warning: mcrypt_decrypt(): Received initialization vector of size 0, but size 16 is required for this encryption mode in %s on line %d
11397
string(0) ""
11498

11599
iv length=8
116100

117-
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53
101+
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line %d
118102

119103
Warning: mcrypt_decrypt(): Received initialization vector of size 8, but size 16 is required for this encryption mode in %s on line %d
120104
string(0) ""
121105

122106
iv length=16
123107

124-
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53
108+
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line %d
125109
string(32) "42adc8c0db19473f2c684ff2d6e828a5"
126110

127111
iv length=17
128112

129-
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53
113+
Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line %d
130114

131115
Warning: mcrypt_decrypt(): Received initialization vector of size 17, but size 16 is required for this encryption mode in %s on line %d
132116
string(0) ""

0 commit comments

Comments
 (0)