reference/openssl/functions/openssl-public-decrypt.xml
d1e3ea622e5d4f542cd36eca59a9f22aa0142633
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-public-decrypt">
3
+
<refentry xml:id="function.openssl-public-decrypt" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>openssl_public_decrypt</refname>
6
6
<refpurpose>Decrypts data with public key </refpurpose>
...
...
@@ -11,15 +11,15 @@
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>openssl_public_decrypt</methodname>
13
13
<methodparam><type>string</type><parameter>data</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter role="reference">decrypted</parameter></methodparam>
15
-
<methodparam><type>mixed</type><parameter>key</parameter></methodparam>
16
-
<methodparam choice="opt"><type>int</type><parameter>padding</parameter><initializer>OPENSSL_PKCS1_PADDING</initializer></methodparam>
14
+
<methodparam><type>string</type><parameter role="reference">decrypted_data</parameter></methodparam>
15
+
<methodparam><type class="union"><type>OpenSSLAsymmetricKey</type><type>OpenSSLCertificate</type><type>array</type><type>string</type></type><parameter>public_key</parameter></methodparam>
16
+
<methodparam choice="opt"><type>int</type><parameter>padding</parameter><initializer><constant>OPENSSL_PKCS1_PADDING</constant></initializer></methodparam>
17
17
</methodsynopsis>
18
18
<para>
19
19
<function>openssl_public_decrypt</function> decrypts
20
20
<parameter>data</parameter> that was previous encrypted via
21
21
<function>openssl_private_encrypt</function> and stores the result into
22
-
<parameter>decrypted</parameter>.
22
+
<parameter>decrypted_data</parameter>.
23
23
</para>
24
24
<para>
25
25
You can use this function e.g. to check if the message was written by the
...
...
@@ -39,17 +39,17 @@
39
39
</listitem>
40
40
</varlistentry>
41
41
<varlistentry>
42
-
<term><parameter>decrypted</parameter></term>
42
+
<term><parameter>decrypted_data</parameter></term>
43
43
<listitem>
44
44
<para>
45
45
</para>
46
46
</listitem>
47
47
</varlistentry>
48
48
<varlistentry>
49
-
<term><parameter>key</parameter></term>
49
+
<term><parameter>public_key</parameter></term>
50
50
<listitem>
51
51
<para>
52
-
<parameter>key</parameter> must be the public key corresponding that
52
+
<parameter>public_key</parameter> must be the public key corresponding that
53
53
was used to encrypt the data.
54
54
</para>
55
55
</listitem>
...
...
@@ -75,6 +75,31 @@
75
75
</para>
76
76
</refsect1>
77
77

78
+
<refsect1 role="changelog">
79
+
&reftitle.changelog;
80
+
<informaltable>
81
+
<tgroup cols="2">
82
+
<thead>
83
+
<row>
84
+
<entry>&Version;</entry>
85
+
<entry>&Description;</entry>
86
+
</row>
87
+
</thead>
88
+
<tbody>
89
+
<row>
90
+
<entry>8.0.0</entry>
91
+
<entry>
92
+
<parameter>public_key</parameter> accepts an <classname>OpenSSLAsymmetricKey</classname>
93
+
or <classname>OpenSSLCertificate</classname> instance now;
94
+
previously, a &resource; of type <literal>OpenSSL key</literal> or <literal>OpenSSL X.509</literal>
95
+
was accepted.
96
+
</entry>
97
+
</row>
98
+
</tbody>
99
+
</tgroup>
100
+
</informaltable>
101
+
</refsect1>
102
+

78
103
<refsect1 role="seealso">
79
104
&reftitle.seealso;
80
105
<para>
...
...
@@ -86,7 +111,6 @@
86
111
</refsect1>
87
112

88
113
</refentry>
89
-

90
114
<!-- Keep this comment at the end of the file
91
115
Local variables:
92
116
mode: sgml
93
117