Skip to content

[Sync-EN] Fix the OPENSSL_RAW_DATA description for encrypt and decrypt - #1796

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1653
Open

[Sync-EN] Fix the OPENSSL_RAW_DATA description for encrypt and decrypt#1796
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1653

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Syncs reference/openssl/constants.xml, reference/openssl/functions/openssl-decrypt.xml and reference/openssl/functions/openssl-encrypt.xml with php/doc-en#5268.

  • The OPENSSL_RAW_DATA constant said the data "is returned as-is" and that base64 is "returned to the caller", which only describes openssl_encrypt(). For openssl_decrypt() the flag describes the input format. The constant now states the general meaning and points at the function pages.
  • Both options descriptions say the parameter is a bitwise disjunction of the three flags, instead of "one of the constants", and each spells out its own direction: openssl_decrypt() expects raw binary ciphertext in data when the flag is set and base64 otherwise, while openssl_encrypt() returns raw binary output when set and base64 otherwise.

EN-Revision bumped to 7179e95e592583beae2f99ca71e6b326f559812b on the three files.

Fixes: #1653

@lacatoire
lacatoire requested a review from a team as a code owner August 31, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sync EN] Fix OPENSSL_RAW_DATA description for encrypt/decrypt

1 participant