|
43 | 43 | <constant>OPENSSL_KEYTYPE_RSA</constant>, |
44 | 44 | <constant>OPENSSL_KEYTYPE_DSA</constant>, |
45 | 45 | <constant>OPENSSL_KEYTYPE_DH</constant>, |
46 | | - <constant>OPENSSL_KEYTYPE_EC</constant> or -1 meaning unknown). |
| 46 | + <constant>OPENSSL_KEYTYPE_EC</constant>, |
| 47 | + <constant>OPENSSL_KEYTYPE_X25519</constant>, |
| 48 | + <constant>OPENSSL_KEYTYPE_ED25519</constant>, |
| 49 | + <constant>OPENSSL_KEYTYPE_X448</constant>, |
| 50 | + <constant>OPENSSL_KEYTYPE_ED448</constant>, |
| 51 | + or <literal>-1</literal> meaning unknown). |
47 | 52 | </para> |
48 | 53 | <para> |
49 | 54 | Depending on the key type used, additional details may be returned. Note that |
|
174 | 179 | </listitem> |
175 | 180 | <listitem> |
176 | 181 | <simpara> |
177 | | - <constant>OPENSSL_KEYTYPE_EC</constant>, an additional array key named <literal>"ec"</literal>, |
178 | | - containing the key data is returned. |
| 182 | + <constant>OPENSSL_KEYTYPE_X25519</constant>, |
| 183 | + <constant>OPENSSL_KEYTYPE_ED25519</constant>, |
| 184 | + <constant>OPENSSL_KEYTYPE_X448</constant>, |
| 185 | + or <constant>OPENSSL_KEYTYPE_ED448</constant> |
| 186 | + an additional array key named |
| 187 | + <literal>"x25519"</literal>, |
| 188 | + <literal>"ed25519"</literal>, |
| 189 | + <literal>"x448"</literal>, |
| 190 | + or <literal>"ed448"</literal> respectively, |
| 191 | + is returned, containing the key data. |
179 | 192 | </simpara> |
180 | 193 | <informaltable> |
181 | 194 | <tgroup cols="2"> |
|
187 | 200 | </thead> |
188 | 201 | <tbody> |
189 | 202 | <row> |
190 | | - <entry><literal>"curve_name"</literal></entry> |
191 | | - <entry>name of curve, see <function>openssl_get_curve_names</function></entry> |
192 | | - </row> |
193 | | - <row> |
194 | | - <entry><literal>"curve_oid"</literal></entry> |
195 | | - <entry>ASN1 Object identifier (OID) for EC curve.</entry> |
196 | | - </row> |
197 | | - <row> |
198 | | - <entry><literal>"x"</literal></entry> |
199 | | - <entry>x coordinate (public)</entry> |
200 | | - </row> |
201 | | - <row> |
202 | | - <entry><literal>"y"</literal></entry> |
203 | | - <entry>y coordinate (public)</entry> |
| 203 | + <entry><literal>"priv_key"</literal></entry> |
| 204 | + <entry>private key</entry> |
204 | 205 | </row> |
205 | 206 | <row> |
206 | | - <entry><literal>"d"</literal></entry> |
207 | | - <entry>private key</entry> |
| 207 | + <entry><literal>"pub_key"</literal></entry> |
| 208 | + <entry>public key</entry> |
208 | 209 | </row> |
209 | 210 | </tbody> |
210 | 211 | </tgroup> |
|
224 | 225 | </row> |
225 | 226 | </thead> |
226 | 227 | <tbody> |
| 228 | + <row> |
| 229 | + <entry>8.4.0</entry> |
| 230 | + <entry> |
| 231 | + Added support for Curve25519 and Curve448 based keys. |
| 232 | + Specifically the <literal>x25519</literal>, <literal>ed25519</literal>, |
| 233 | + <literal>x448</literal> and <literal>ed448</literal> fields have been introduced. |
| 234 | + </entry> |
| 235 | + </row> |
227 | 236 | <row> |
228 | 237 | <entry>8.0.0</entry> |
229 | 238 | <entry> |
|
0 commit comments