Doc #78628 [Com]: AES-256-XTS cipher method does not work

From: Date: Mon, 31 Jul 2023 09:22:39 +0000
Subject: Doc #78628 [Com]: AES-256-XTS cipher method does not work
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19658@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78628&edit=1

 ID:                 78628
 Comment by:         nguyenhoangthanhd3325 at gmail dot com
 Reported by:        alec@php.net
 Summary:            AES-256-XTS cipher method does not work
 Status:             Open
 Type:               Documentation Problem
 Package:            OpenSSL related
 Operating System:   Linux
 PHP Version:        7.3.10
 Block user comment: N
 Private report:     N

 New Comment:

Wow i found it really nice thanks for sharing such things with us. 

(https://github.com.php)(https://www.myaarpmedicare.dev/)


Previous Comments:
------------------------------------------------------------------------
[2023-01-23 08:30:00] alisauxbpdsn53 at gmail dot com

That was so amazing. 

(https://www.kohlsfeedback.org/)github.com

------------------------------------------------------------------------
[2019-12-08 18:47:11] bukka@php.net

Yeah I think this is more documentation issue. Some ciphers require different handling so we
shouldn't state that "penssl_encrypt() accepts methods returned from
openssl_get_cipher_methods()". In a similar way chacha20-poly1305 doesn't work as AEAD -
requested in https://bugs.php.net/bug.php?id=76935 .

------------------------------------------------------------------------
[2019-12-02 09:07:02] alec@php.net

I don't really have a use-case, but documentation says that openssl_encrypt() accepts methods
returned from openssl_get_cipher_methods(). No mention about some being not implemented or buggy.

The function throws E_WARNING in some cases, maybe that's another case for E_WARNING. Or maybe
you have to just make it working.

------------------------------------------------------------------------
[2019-12-01 19:44:59] bukka@php.net

I think XTS needs a bit more handling so it's not fully supported. We could change this to the
request to add support for it but wondering what the actual use case for XTS is in PHP world?
It's mainly meant for disk encryption from what I know about this mode.

------------------------------------------------------------------------
[2019-10-04 11:06:27] alec@php.net

Additional info:
$ openssl list -cipher-algorithms | grep XTS
AES-128-XTS
AES-256-XTS

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=78628


--
Edit this bug report at https://bugs.php.net/bug.php?id=78628&edit=1


Thread (13 messages)

« previous php.doc.bugs (#19658) next »