diff --git a/reference/openssl/functions/openssl-private-decrypt.xml b/reference/openssl/functions/openssl-private-decrypt.xml index 29e43693ad..0e00626148 100644 --- a/reference/openssl/functions/openssl-private-decrypt.xml +++ b/reference/openssl/functions/openssl-private-decrypt.xml @@ -1,5 +1,5 @@ - + @@ -29,6 +29,14 @@ &return.success; + + You can use this function e.g. to decrypt data which were supposed only to + you. + + + See also openssl_public_encrypt and + openssl_public_decrypt. + diff --git a/reference/openssl/functions/openssl-private-encrypt.xml b/reference/openssl/functions/openssl-private-encrypt.xml index 8208ff54b1..f3a184c394 100644 --- a/reference/openssl/functions/openssl-private-encrypt.xml +++ b/reference/openssl/functions/openssl-private-encrypt.xml @@ -1,5 +1,5 @@ - + @@ -26,6 +26,14 @@ &return.success; + + This function can be used e.g. to sign data (or its hash) to prove that it + is not written by someone else. + + + See also openssl_public_decrypt and + openssl_public_encrypt. + diff --git a/reference/openssl/functions/openssl-public-decrypt.xml b/reference/openssl/functions/openssl-public-decrypt.xml index 69693d4c6a..8213e772e6 100644 --- a/reference/openssl/functions/openssl-public-decrypt.xml +++ b/reference/openssl/functions/openssl-public-decrypt.xml @@ -1,5 +1,5 @@ - + @@ -28,6 +28,14 @@ &return.success; + + You can use this function e.g. to check if the message was written by the + owner of the private key. + + + See also openssl_private_encrypt and + openssl_private_decrypt. + diff --git a/reference/openssl/functions/openssl-public-encrypt.xml b/reference/openssl/functions/openssl-public-encrypt.xml index c1812b4794..689b11215e 100644 --- a/reference/openssl/functions/openssl-public-encrypt.xml +++ b/reference/openssl/functions/openssl-public-encrypt.xml @@ -1,5 +1,5 @@ - + @@ -28,6 +28,15 @@ &return.success; + + This function can be used e.g. to encrypt message which can be then read + only by owner of the private key. It can be also used to store secure data + in database. + + + See also openssl_private_decrypt and + openssl_private_encrypt. +