Lines Matching refs:test
16 foreach ($tests as $idx => $test) {
18 $pt = openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
19 $test['iv'], $test['tag'], $test['aad']);
20 var_dump($test['pt'] === $pt);
24 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
25 NULL, $test['tag'], $test['aad']));
28 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
29 str_repeat('x', 32), $test['tag'], $test['aad']));
32 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
33 $test['iv'], $test['tag']));
36 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
37 $test['iv'], str_repeat('x', 16), $test['aad']));