vrana Mon Apr 26 14:02:38 2004 EDT
Modified files: /phpdoc/en/reference/openssl/functions openssl-private-decrypt.xml openssl-private-encrypt.xml openssl-public-decrypt.xml openssl-public-encrypt.xml Log: Initial documentation http://cvs.php.net/diff.php/phpdoc/en/reference/openssl/functions/openssl-private-decrypt.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc/en/reference/openssl/functions/openssl-private-decrypt.xml diff -u phpdoc/en/reference/openssl/functions/openssl-private-decrypt.xml:1.3 phpdoc/en/reference/openssl/functions/openssl-private-decrypt.xml:1.4 --- phpdoc/en/reference/openssl/functions/openssl-private-decrypt.xml:1.3 Tue Dec 10 14:13:48 2002 +++ phpdoc/en/reference/openssl/functions/openssl-private-decrypt.xml Mon Apr 26 14:02:37 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/openssl.xml, last change in rev 1.19 --> <refentry id="function.openssl-private-decrypt"> <refnamediv> @@ -15,16 +15,20 @@ <methodparam><type>mixed</type><parameter>key</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>padding</parameter></methodparam> </methodsynopsis> + &warn.experimental.func; <para> <function>openssl_private_decrypt</function> decrypts <parameter>data</parameter> that was previous encrypted via - <function>openssl_private_encrypt</function> and stores the result into + <function>openssl_public_encrypt</function> and stores the result into <parameter>decrypted</parameter>. <parameter>key</parameter> must be the private key corresponding that was used to encrypt the data. <parameter>padding</parameter> defaults to OPENSSL_PKCS1_PADDING, - but can also be one of OPENSSL_SSLV23_PADDING, OPENSSL_PKCS1_OAEP_PADDING + but can also be one of OPENSSL_SSLV23_PADDING, OPENSSL_PKCS1_OAEP_PADDING, OPENSSL_NO_PADDING. </para> + <para> + &return.success; + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc/en/reference/openssl/functions/openssl-private-encrypt.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc/en/reference/openssl/functions/openssl-private-encrypt.xml diff -u phpdoc/en/reference/openssl/functions/openssl-private-encrypt.xml:1.3 phpdoc/en/reference/openssl/functions/openssl-private-encrypt.xml:1.4 --- phpdoc/en/reference/openssl/functions/openssl-private-encrypt.xml:1.3 Mon Jan 5 08:17:42 2004 +++ phpdoc/en/reference/openssl/functions/openssl-private-encrypt.xml Mon Apr 26 14:02:37 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/openssl.xml, last change in rev 1.19 --> <refentry id="function.openssl-private-encrypt"> <refnamediv> @@ -17,7 +17,14 @@ </methodsynopsis> &warn.experimental.func; <para> - &warn.undocumented.func; + <function>openssl_private_encrypt</function> encrypts <parameter>data</parameter> + with private <parameter>key</parameter> and stores the result into + <parameter>crypted</parameter>. Encrypted data can be decrypted via + <methodname>openssl_public_decrypt</methodname>. <parameter>padding</parameter> + defaults to OPENSSL_PKCS1_PADDING, but can also be OPENSSL_NO_PADDING. + </para> + <para> + &return.success; </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc/en/reference/openssl/functions/openssl-public-decrypt.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc/en/reference/openssl/functions/openssl-public-decrypt.xml diff -u phpdoc/en/reference/openssl/functions/openssl-public-decrypt.xml:1.3 phpdoc/en/reference/openssl/functions/openssl-public-decrypt.xml:1.4 --- phpdoc/en/reference/openssl/functions/openssl-public-decrypt.xml:1.3 Mon Jan 5 08:17:42 2004 +++ phpdoc/en/reference/openssl/functions/openssl-public-decrypt.xml Mon Apr 26 14:02:37 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/openssl.xml, last change in rev 1.19 --> <refentry id="function.openssl-public-decrypt"> <refnamediv> @@ -11,13 +11,22 @@ <methodsynopsis> <type>bool</type><methodname>openssl_public_decrypt</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> - <methodparam><type>string</type><parameter>&crypted</parameter></methodparam> - <methodparam><type>resource</type><parameter>key</parameter></methodparam> + <methodparam><type>string</type><parameter>&decrypted</parameter></methodparam> + <methodparam><type>mixed</type><parameter>key</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>padding</parameter></methodparam> </methodsynopsis> &warn.experimental.func; <para> - &warn.undocumented.func; + <function>openssl_public_decrypt</function> decrypts + <parameter>data</parameter> that was previous encrypted via + <function>openssl_private_encrypt</function> and stores the result into + <parameter>decrypted</parameter>. <parameter>key</parameter> must be the + public key corresponding that was used to encrypt the + data. <parameter>padding</parameter> defaults to OPENSSL_PKCS1_PADDING, + but can also be OPENSSL_NO_PADDING. + </para> + <para> + &return.success; </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc/en/reference/openssl/functions/openssl-public-encrypt.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc/en/reference/openssl/functions/openssl-public-encrypt.xml diff -u phpdoc/en/reference/openssl/functions/openssl-public-encrypt.xml:1.3 phpdoc/en/reference/openssl/functions/openssl-public-encrypt.xml:1.4 --- phpdoc/en/reference/openssl/functions/openssl-public-encrypt.xml:1.3 Mon Jan 5 08:17:42 2004 +++ phpdoc/en/reference/openssl/functions/openssl-public-encrypt.xml Mon Apr 26 14:02:38 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/openssl.xml, last change in rev 1.19 --> <refentry id="function.openssl-public-encrypt"> <refnamediv> @@ -17,7 +17,16 @@ </methodsynopsis> &warn.experimental.func; <para> - &warn.undocumented.func; + <function>openssl_public_encrypt</function> encrypts <parameter>data</parameter> + with public <parameter>key</parameter> and stores the result into + <parameter>crypted</parameter>. Encrypted data can be decrypted via + <methodname>openssl_private_decrypt</methodname>. <parameter>padding</parameter> + defaults to OPENSSL_PKCS1_PADDING, but can also be one of + OPENSSL_SSLV23_PADDING, OPENSSL_PKCS1_OAEP_PADDING, + OPENSSL_NO_PADDING. + </para> + <para> + &return.success; </para> </refsect1> </refentry>