|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2019-10-04 11:06 UTC] alec@php.net
  [2019-12-01 19:44 UTC] bukka@php.net
  [2019-12-02 09:07 UTC] alec@php.net
  [2019-12-08 18:47 UTC] bukka@php.net
 
-Type: Bug
+Type: Documentation Problem
  [2019-12-08 18:47 UTC] bukka@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
Description: ------------ Tested with various PHP versions (7.3.9 and 7.4.0beta4 and some older 7.x) on Ubuntu 18.04. This originates from on of our users using PHP 7.3 on Debian Stable. $php -r "print_r(openssl_get_cipher_methods());" | grep -i xts [12] => aes-128-xts [35] => aes-256-xts However, if you see the test script openssl_enrypt() does not work, returns false. No error/warning. The same for AES-128-XTS. I'm not sure what is expected from OpenSSL in the system, but `openssl ciphers -v | grep XTS` returns nothing. Maybe that's not a bug, but I'd like to hear some explanation for this behavior. Test script: --------------- $iv = random_bytes(openssl_cipher_iv_length("aes-256-XTS")); echo openssl_encrypt("test", "aes-256-XTS", "key", OPENSSL_RAW_DATA, $iv) === false; Expected result: ---------------- 0 Actual result: -------------- 1