# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:23+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" # #-#-#-#-# archlinux: EVP_PKEY_keygen.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: EVP_PKEY_keygen.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: EVP_PKEY_keygen.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: EVP_PKEY_keygen.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Title" msgstr "" # #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: archlinux #, no-wrap msgid "EVP_PKEY_KEYGEN 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_PKEY_KEYGEN" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2026-04-07" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "3.6.2" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "OpenSSL" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "EVP_PKEY_Q_keygen, EVP_PKEY_keygen_init, EVP_PKEY_paramgen_init, " "EVP_PKEY_generate, EVP_PKEY_CTX_set_cb, EVP_PKEY_CTX_get_cb, " "EVP_PKEY_CTX_get_keygen_info, EVP_PKEY_CTX_set_app_data, " "EVP_PKEY_CTX_get_app_data, EVP_PKEY_gen_cb, EVP_PKEY_paramgen, " "EVP_PKEY_keygen \\&- key and parameter generation and check functions" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Header" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\&\n" "\\& EVP_PKEY *EVP_PKEY_Q_keygen(OSSL_LIB_CTX *libctx, const char *propq,\n" "\\& const char *type, ...);\n" "\\&\n" "\\& int EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_generate(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\n" "\\& int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\n" "\\& int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\n" "\\&\n" "\\& typedef int EVP_PKEY_gen_cb(EVP_PKEY_CTX *ctx);\n" "\\&\n" "\\& void EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb);\n" "\\& EVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx);\n" "\\&\n" "\\& int EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx);\n" "\\&\n" "\\& void EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data);\n" "\\& void *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux msgid "" "Generating keys is sometimes straight forward, just generate the key\\*(Aqs " "numbers and be done with it. However, there are certain key types that need " "key parameters, often called domain parameters but not necessarily limited " "to that, that also need to be generated. In addition to this, the caller " "may want to set user provided generation parameters that further affect key " "parameter or key generation, such as the desired key size." msgstr "" #. type: Plain text #: archlinux msgid "" "To flexibly allow all that\\*(Aqs just been described, key parameter and key " "generation is divided into an initialization of a key algorithm context, " "functions to set user provided parameters, and finally the key parameter or " "key generation function itself." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The key algorithm context must be created using B\\|(3) or " "variants thereof, see that manual for details." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B initializes a public key algorithm context " "I for a key generation operation." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is similar to B " "except key parameters are generated." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "After initialization, generation parameters may be provided with " "\\&B\\|(3) or B\\|(3), or any " "other function described in those manuals." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B performs the generation operation, the resulting " "key parameters or key are written to I<*ppkey>. If I<*ppkey> is NULL when " "this function is called, it will be allocated, and should be freed by the " "caller when no longer useful, using B\\|(3)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B do exactly the same thing " "as \\&B, after checking that the corresponding " "B or B was used to " "initialize I. These are older functions that are kept for backward " "compatibility. It is safe to use B instead." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The function B sets the key or parameter generation " "callback to I. The function B returns the key or " "parameter generation callback." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The function B returns parameters associated " "with the generation operation. If I is -1 the total number of " "parameters available is returned. Any non negative value returns the value " "of that parameter. B with a nonnegative " "value for \\&I should only be called within the generation callback." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If the callback returns 0 then the key generation operation is aborted and " "an error occurs. This might occur during a time consuming operation where a " "user clicks on a \"cancel\" button." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The functions B and " "B associate an opaque, application-defined " "pointer with an EVP_PKEY_CTX object." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This pointer is not interpreted by the library and is reserved entirely for " "use by the application. It may be used to store arbitrary context or state " "that needs to be accessible wherever the corresponding EVP_PKEY_CTX is " "available." msgstr "" #. type: Plain text #: archlinux msgid "" "\\&B abstracts from the explicit use of B " "while providing a \\*(Aqquick\\*(Aq but limited way of generating a new " "asymmetric key pair. It provides shorthands for simple and common cases of " "key generation. As usual, the library context I and property query " "I can be given for fetching algorithms from providers. If I is " "CW<\\*(C`RSA\\*(C'>, a B parameter must be given to specify the size " "of the RSA key. If I is CW<\\*(C`EC\\*(C'>, a string parameter must " "be given to specify the name of the EC curve. If I is: " "\\&CW<\\*(C`ED25519\\*(C'>, \\&CW<\\*(C`ED448\\*(C'>, " "\\&CW<\\*(C`SM2\\*(C'>, \\&CW<\\*(C`X25519\\*(C'>, \\&CW<\\*(C`X448\\*(C'>, " "\\&CW<\\*(C`ML-DSA-44\\*(C'>, \\&CW<\\*(C`ML-DSA-65\\*(C'>, \\&CW<\\*(C`ML-" "DSA-87\\*(C'>, \\&CW<\\*(C`ML-KEM-512\\*(C'>, \\&CW<\\*(C`ML-KEM-768\\*(C'>, " "or \\&CW<\\*(C`ML-KEM-1024\\*(C'> no further parameters are needed. Other " "key types may be possible if they are supplied by the loaded providers. " "B may be usable with such key types as long as they do " "not require further parameters." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B, " "B and \\&B return 1 for success and " "0 or a negative value for failure. In particular a return value of -2 " "indicates the operation is not supported by the public key algorithm." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns an B, or NULL on failure." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "After the call to B or B " "algorithm specific control operations can be performed to set any " "appropriate parameters for the operation." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The functions B and B can be called " "more than once on the same context if several operations are performed using " "the same parameters." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The meaning of the parameters passed to the callback will depend on the " "algorithm and the specific implementation of the algorithm. Some might not " "give any useful information at all during key or parameter generation. " "Others might not even call the callback." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The operation performed by key or parameter generation depends on the " "algorithm used. In some cases (e.g. EC with a supplied named curve) the " "\"generation\" option merely sets the appropriate fields in an EVP_PKEY " "structure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In OpenSSL an EVP_PKEY structure containing a private key also contains the " "public key components and parameters (if any). An OpenSSL private key is " "equivalent to what some libraries call a \"key pair\". A private key can be " "used in functions which require the use of a public key or parameters." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Generate a 2048 bit RSA key:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& EVP_PKEY *pkey = NULL;\n" "\\&\n" "\\& ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL);\n" "\\& if (!ctx)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_keygen_init(ctx) E= 0)\n" "\\& /* Error */\n" "\\& if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, 2048) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Generate key */\n" "\\& if (EVP_PKEY_keygen(ctx, &pkey) E= 0)\n" "\\& /* Error */\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Generate a key from a set of parameters:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& ENGINE *eng;\n" "\\& EVP_PKEY *pkey = NULL, *param;\n" "\\&\n" "\\& /* Assumed param, eng are set up already */\n" "\\& ctx = EVP_PKEY_CTX_new(param, eng);\n" "\\& if (!ctx)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_keygen_init(ctx) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Generate key */\n" "\\& if (EVP_PKEY_keygen(ctx, &pkey) E= 0)\n" "\\& /* Error */\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Example of generation callback for OpenSSL public key implementations:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& /* Application data is a BIO to output status to */\n" "\\&\n" "\\& EVP_PKEY_CTX_set_app_data(ctx, status_bio);\n" "\\&\n" "\\& static int genpkey_cb(EVP_PKEY_CTX *ctx)\n" "\\& {\n" "\\& char c = \\*(Aq*\\*(Aq;\n" "\\& BIO *b = EVP_PKEY_CTX_get_app_data(ctx);\n" "\\& int p = EVP_PKEY_CTX_get_keygen_info(ctx, 0);\n" "\\&\n" "\\& if (p == 0)\n" "\\& c = \\*(Aq.\\*(Aq;\n" "\\& if (p == 1)\n" "\\& c = \\*(Aq+\\*(Aq;\n" "\\& if (p == 2)\n" "\\& c = \\*(Aq*\\*(Aq;\n" "\\& if (p == 3)\n" "\\& c = \\*(Aq\\en\\*(Aq;\n" "\\& BIO_write(b, &c, 1);\n" "\\& (void)BIO_flush(b);\n" "\\& return 1;\n" "\\& }\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B\\|(3), B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|(3)" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, int B, " "B, \\&B, B, " "B, \\&B, " "B, \\&B and " "B were added in OpenSSL 1.0.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B were added in OpenSSL " "3.0." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2006-2026 The OpenSSL Project Authors. All Rights Reserved." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Licensed under the Apache License 2.0 (the \"License\"). You may not use " "this file except in compliance with the License. You can obtain a copy in " "the file LICENSE in the source distribution or at Ehttps://" "www.openssl.org/source/license.htmlE." msgstr "" #. ======================================================================== #. type: IX #: debian-trixie debian-unstable #, no-wrap msgid "EVP_PKEY_KEYGEN 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Generating keys is sometimes straight forward, just generate the key's " "numbers and be done with it. However, there are certain key types that need " "key parameters, often called domain parameters but not necessarily limited " "to that, that also need to be generated. In addition to this, the caller " "may want to set user provided generation parameters that further affect key " "parameter or key generation, such as the desired key size." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "To flexibly allow all that's just been described, key parameter and key " "generation is divided into an initialization of a key algorithm context, " "functions to set user provided parameters, and finally the key parameter or " "key generation function itself." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "\\&B abstracts from the explicit use of B " "while providing a 'quick' but limited way of generating a new asymmetric key " "pair. It provides shorthands for simple and common cases of key " "generation. As usual, the library context I and property query " "I can be given for fetching algorithms from providers. If I is " "CW<\\*(C`RSA\\*(C'>, a B parameter must be given to specify the size " "of the RSA key. If I is CW<\\*(C`EC\\*(C'>, a string parameter must " "be given to specify the name of the EC curve. If I is: " "\\&CW<\\*(C`ED25519\\*(C'>, \\&CW<\\*(C`ED448\\*(C'>, " "\\&CW<\\*(C`SM2\\*(C'>, \\&CW<\\*(C`X25519\\*(C'>, \\&CW<\\*(C`X448\\*(C'>, " "\\&CW<\\*(C`ML-DSA-44\\*(C'>, \\&CW<\\*(C`ML-DSA-65\\*(C'>, \\&CW<\\*(C`ML-" "DSA-87\\*(C'>, \\&CW<\\*(C`ML-KEM-512\\*(C'>, \\&CW<\\*(C`ML-KEM-768\\*(C'>, " "or \\&CW<\\*(C`ML-KEM-1024\\*(C'> no further parameters are needed. Other " "key types may be possible if they are supplied by the loaded providers. " "B may be usable with such key types as long as they do " "not require further parameters." msgstr ""