From 3866b702c672024a7bff59dc369e08d911c7bb36 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 26 Apr 2004 19:57:47 +0000 Subject: [PATCH] Purpose, see also git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@157194 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../openssl/functions/openssl-private-decrypt.xml | 10 +++++++++- .../openssl/functions/openssl-private-encrypt.xml | 10 +++++++++- .../openssl/functions/openssl-public-decrypt.xml | 10 +++++++++- .../openssl/functions/openssl-public-encrypt.xml | 11 ++++++++++- 4 files changed, 37 insertions(+), 4 deletions(-) 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. +