{
    "content": [
        {
            "type": "text",
            "text": "# EVP_PKEY-X25519 (info)\n\n## NAME\n\nEVPPKEY-X25519, EVPPKEY-X448, EVPPKEY-ED25519, EVPPKEY-ED448, EVPKEYMGMT-X25519, EVPKEYMGMT-X448, EVPKEYMGMT-ED25519, EVPKEYMGMT-ED448 - EVPPKEY X25519, X448, ED25519 and ED448 keytype and algorithm support\n\n## DESCRIPTION\n\nThe X25519, X448, ED25519 and ED448 keytypes are implemented in\nOpenSSL's default and FIPS providers.  These implementations support\nthe associated key, containing the public key pub and the private key\npriv.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **CONFORMING TO**\n- **EXAMPLES**\n- **SEE ALSO**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "EVP_PKEY-X25519",
        "section": "",
        "mode": "info",
        "summary": "EVPPKEY-X25519, EVPPKEY-X448, EVPPKEY-ED25519, EVPPKEY-ED448, EVPKEYMGMT-X25519, EVPKEYMGMT-X448, EVPKEYMGMT-ED25519, EVPKEYMGMT-ED448 - EVPPKEY X25519, X448, ED25519 and ED448 keytype and algorithm support",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "An EVPPKEY context can be obtained by calling:",
            "EVPPKEYCTX *pctx =",
            "EVPPKEYCTXnewfromname(NULL, \"X25519\", NULL);",
            "EVPPKEYCTX *pctx =",
            "EVPPKEYCTXnewfromname(NULL, \"X448\", NULL);",
            "EVPPKEYCTX *pctx =",
            "EVPPKEYCTXnewfromname(NULL, \"ED25519\", NULL);",
            "EVPPKEYCTX *pctx =",
            "EVPPKEYCTXnewfromname(NULL, \"ED448\", NULL);",
            "An X25519 key can be generated like this:",
            "pkey = EVPPKEYQkeygen(NULL, NULL, \"X25519\");",
            "An X448, ED25519, or ED448 key can be generated likewise."
        ],
        "see_also": [
            {
                "name": "EVPKEYMGMT",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/EVPKEYMGMT/3/json"
            },
            {
                "name": "EVPPKEY",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/EVPPKEY/3/json"
            },
            {
                "name": "provider-keymgmt",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/provider-keymgmt/7/json"
            },
            {
                "name": "EVPKEYEXCH-X25519",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/EVPKEYEXCH-X25519/7/json"
            },
            {
                "name": "EVPKEYEXCH-X448",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/EVPKEYEXCH-X448/7/json"
            },
            {
                "name": "EVPSIGNATURE-ED25519",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/EVPSIGNATURE-ED25519/7/json"
            },
            {
                "name": "EVPSIGNATURE-ED448",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/EVPSIGNATURE-ED448/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 33,
                "subsections": []
            },
            {
                "name": "CONFORMING TO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 8,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "EVPPKEY-X25519, EVPPKEY-X448, EVPPKEY-ED25519, EVPPKEY-ED448,\nEVPKEYMGMT-X25519, EVPKEYMGMT-X448, EVPKEYMGMT-ED25519,\nEVPKEYMGMT-ED448 - EVPPKEY X25519, X448, ED25519 and ED448 keytype\nand algorithm support\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The X25519, X448, ED25519 and ED448 keytypes are implemented in\nOpenSSL's default and FIPS providers.  These implementations support\nthe associated key, containing the public key pub and the private key\npriv.\n\nNo additional parameters can be set during key generation.\n\nCommon X25519, X448, ED25519 and ED448 parameters\nIn addition to the common parameters that all keytypes should support\n(see \"Common parameters\" in provider-keymgmt(7)), the implementation of\nthese keytypes support the following.\n\n\"group\" (OSSLPKEYPARAMGROUPNAME) <UTF8 string>\nThis is only supported by X25519 and X448. The group name must be\n\"x25519\" or \"x448\" respectively for those algorithms. This is only\npresent for consistency with other key exchange algorithms and is\ntypically not needed.\n\n\"pub\" (OSSLPKEYPARAMPUBKEY) <octet string>\nThe public key value.\n\n\"priv\" (OSSLPKEYPARAMPRIVKEY) <octet string>\nThe private key value.\n\n\"encoded-pub-key\" (OSSLPKEYPARAMENCODEDPUBLICKEY) <octet string>\nUsed for getting and setting the encoding of a public key for the\nX25519 and X448 key types. Public keys are expected be encoded in a\nformat as defined by RFC7748.\n\nED25519 and ED448 parameters\n\"mandatory-digest\" (OSSLPKEYPARAMMANDATORYDIGEST) <UTF8 string>\nThe empty string, signifying that no digest may be specified.\n",
                "subsections": []
            },
            "CONFORMING TO": {
                "content": "RFC 8032\nRFC 8410\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "An EVPPKEY context can be obtained by calling:\n\nEVPPKEYCTX *pctx =\nEVPPKEYCTXnewfromname(NULL, \"X25519\", NULL);\n\nEVPPKEYCTX *pctx =\nEVPPKEYCTXnewfromname(NULL, \"X448\", NULL);\n\nEVPPKEYCTX *pctx =\nEVPPKEYCTXnewfromname(NULL, \"ED25519\", NULL);\n\nEVPPKEYCTX *pctx =\nEVPPKEYCTXnewfromname(NULL, \"ED448\", NULL);\n\nAn X25519 key can be generated like this:\n\npkey = EVPPKEYQkeygen(NULL, NULL, \"X25519\");\n\nAn X448, ED25519, or ED448 key can be generated likewise.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "EVPKEYMGMT(3), EVPPKEY(3), provider-keymgmt(7),\nEVPKEYEXCH-X25519(7), EVPKEYEXCH-X448(7), EVPSIGNATURE-ED25519(7),\nEVPSIGNATURE-ED448(7)\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.\n\nLicensed under the Apache License 2.0 (the \"License\").  You may not use\nthis file except in compliance with the License.  You can obtain a copy\nin the file LICENSE in the source distribution or at\n<https://www.openssl.org/source/license.html>.\n\n3.0.2                             2026-06-02             EVPPKEY-X25519(7SSL)",
                "subsections": []
            }
        }
    }
}