diff --git a/reference/openssl/constants.xml b/reference/openssl/constants.xml
index b81e52ee1309..ef6710da1774 100644
--- a/reference/openssl/constants.xml
+++ b/reference/openssl/constants.xml
@@ -779,10 +779,10 @@
- If OPENSSL_RAW_DATA is set in the
- openssl_encrypt or openssl_decrypt,
- the returned data is returned as-is.
- When it is not specified, Base64 encoded data is returned to the caller.
+ Used with openssl_encrypt and
+ openssl_decrypt to indicate that data
+ should be in raw binary format rather than base64-encoded.
+ See the respective function descriptions for details.
diff --git a/reference/openssl/functions/openssl-decrypt.xml b/reference/openssl/functions/openssl-decrypt.xml
index 8c0e62ab6685..a112ba1354ed 100644
--- a/reference/openssl/functions/openssl-decrypt.xml
+++ b/reference/openssl/functions/openssl-decrypt.xml
@@ -66,10 +66,16 @@
options
- options can be one of
+ options is a bitwise disjunction of the flags
OPENSSL_RAW_DATA,
- OPENSSL_ZERO_PADDING
- or OPENSSL_DONT_ZERO_PAD_KEY.
+ OPENSSL_ZERO_PADDING,
+ and OPENSSL_DONT_ZERO_PAD_KEY.
+
+
+ When OPENSSL_RAW_DATA is set,
+ data is expected to be raw binary
+ ciphertext. When it is not set, data
+ is expected to be base64-encoded.
diff --git a/reference/openssl/functions/openssl-encrypt.xml b/reference/openssl/functions/openssl-encrypt.xml
index b729ebe58609..59d68f4eede5 100644
--- a/reference/openssl/functions/openssl-encrypt.xml
+++ b/reference/openssl/functions/openssl-encrypt.xml
@@ -67,9 +67,14 @@
options is a bitwise disjunction of the flags
- OPENSSL_RAW_DATA, and
- OPENSSL_ZERO_PADDING
- or OPENSSL_DONT_ZERO_PAD_KEY.
+ OPENSSL_RAW_DATA,
+ OPENSSL_ZERO_PADDING,
+ and OPENSSL_DONT_ZERO_PAD_KEY.
+
+
+ When OPENSSL_RAW_DATA is set, the
+ encrypted output is returned as raw binary data. When it
+ is not set, the return value is base64-encoded.