# 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_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: EVP_PKEY_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: EVP_PKEY_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: EVP_PKEY_sign.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_SIGN 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_PKEY_SIGN" 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_sign_init, EVP_PKEY_sign_init_ex, EVP_PKEY_sign_init_ex2, " "EVP_PKEY_sign, EVP_PKEY_sign_message_init, EVP_PKEY_sign_message_update, " "EVP_PKEY_sign_message_final - sign using a public key algorithm" 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" "\\& int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_sign_init_ex(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_init_ex2(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_message_init(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_message_update(EVP_PKEY_CTX *ctx,\n" "\\& unsigned char *in, size_t inlen);\n" "\\& int EVP_PKEY_sign_message_final(EVP_PKEY_CTX *ctx, unsigned char *sig,\n" "\\& size_t *siglen, size_t sigsize);\n" "\\& int EVP_PKEY_sign(EVP_PKEY_CTX *ctx,\n" "\\& unsigned char *sig, size_t *siglen,\n" "\\& const unsigned char *tbs, size_t tbslen);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B initializes a public key algorithm context I " "for signing using the algorithm given when the context was created using " "B\\|(3) or variants thereof. The algorithm is used to " "fetch a B method implicitly, see \"Implicit fetch\" in " "B\\|(7) for more information about implicit fetches." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is the same as B but " "additionally sets the passed parameters I on the context before " "returning." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B initializes a public key algorithm context " "I for signing a pre-computed message digest using the algorithm given " "by I and the key given through B\\|(3) or " "B\\|(3). A context I without a pre-loaded " "key cannot be used with this function. This function provides almost the " "same functionality as B, but is uniquely intended " "to be used with a pre-computed message digest, and allows pre-determining " "the exact conditions for that message digest, if a composite signature " "algorithm (such as RSA-SHA256) was fetched. Following a call to this " "function, setting parameters that modifies the digest implementation or " "padding is not normally supported." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B initializes a public key algorithm " "context I for signing an unlimited size message using the algorithm " "given by I and the key given through B\\|(3) or " "B\\|(3). Passing the message is supported both " "in a one-shot fashion using \\&B, and through the " "combination of B and " "B. This function enables using algorithms " "that can process input of arbitrary length, such as ED25519, RSA-SHA256 and " "similar." msgstr "" #. type: Plain text #: archlinux msgid "" "\\&B adds I bytes from I to the " "data to be processed for signature. The signature algorithm specification " "and implementation determine how the input bytes are processed and if " "there\\*(Aqs a limit on the total size of the input. See \"NOTES\" below " "for a deeper explanation." msgstr "" #. type: Plain text #: archlinux msgid "" "\\&B signs the processed data and places the " "data in \\&I, and the number of signature bytes in I<*siglen>, if the " "number of bytes doesn\\*(Aqt surpass the size given by I. " "\\&I may be NULL, and in that case, only I<*siglen> is updated with the " "number of signature bytes." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is a one-shot function that can be used with all the " "init functions above. When initialization was done with " "B, B or " "B, the data specified by I and I is " "signed after appropriate padding. When initialization was done with " "B, the data specified by I and I " "is digested by the implied message digest algorithm, and the result is " "signed after appropriate padding. If I is NULL then the maximum size " "of the output buffer is written to the \\&I parameter. If I is " "not NULL, then before the call the I parameter should contain the " "length of the I buffer, and if the call is successful the signature is " "written to I and the amount of data written to I." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "General" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Subsection" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Some signature implementations only accumulate the input data and do no " "further processing before signing it (they expect the input to be a digest), " "while others compress the data, typically by internally producing a digest, " "and signing the result. Some of them support both modes of operation at the " "same time. The caller is expected to know how the chosen algorithm is " "supposed to behave and under what conditions." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For example, an RSA implementation can be expected to only expect a message " "digest as input, while ED25519 can be expected to process the input with a " "hash, i.e. to produce the message digest internally, and while RSA-SHA256 " "can be expected to handle either mode of operation, depending on if the " "operation was initialized with B or with " "B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Similarly, an RSA implementation usually expects additional details to be " "set, like the message digest algorithm that the input is supposed to be " "digested with, as well as the padding mode (see " "B\\|(3) and " "\\&B\\|(3) and similar others), while an RSA-" "SHA256 implementation usually has these details pre-set and immutable." msgstr "" #. type: Plain text #: archlinux msgid "" "The functions described here can\\*(Aqt be used to combine separate " "algorithms. In particular, neither B\\|(3) " "nor the B parameter \"digest\" (B) " "can be used to combine a signature algorithm with a hash algorithm to " "process the input. In other words, it\\*(Aqs not possible to specify a " "I pre-loaded with an RSA pkey, or an I that fetched " "CW<\\*(C`RSA\\*(C'> and try to specify SHA256 separately to get the " "functionality of RSA-SHA256. If combining algorithms in that manner is " "desired, please use B\\|(3) and associated functions." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Performing multiple signatures" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When initialized using B or " "B, \\&B can be called more than " "once on the same context to have several one-shot operations performed using " "the same parameters." msgstr "" #. type: Plain text #: archlinux msgid "" "When initialized using B, it\\*(Aqs not " "possible to call B multiple times." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "All functions return 1 for success and 0 or a negative value for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In particular, B and its other variants may return -2 " "to indicate that the operation is not supported by the public key algorithm." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RSA with PKCS#1 padding for SHA256" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Sign data using RSA with PKCS#1 padding and a SHA256 digest as input:" 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" "\\& /* md is a SHA-256 digest in this example. */\n" "\\& unsigned char *md, *sig;\n" "\\& size_t mdlen = 32, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key and md are set up before the next\n" "\\& * step. signing_key must be an RSA private key and md must\n" "\\& * point to the SHA-256 digest to be signed.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& if (ctx == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_init(ctx) E= 0)\n" "\\& /* Error */\n" "\\& if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) E= 0)\n" "\\& /* Error */\n" "\\& if (EVP_PKEY_CTX_set_signature_md(ctx, EVP_sha256()) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RSA-SHA256 with a pre-computed digest" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sign a digest with RSA-SHA256 using one-shot functions. To be noted is that " "RSA-SHA256 is assumed to be an implementation of " "CW<\\*(C`sha256WithRSAEncryption\\*(C'>, for which the padding is pre-" "determined to be B, and the input digest is assumed to " "have been computed using SHA256." 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" "\\& /* md is a SHA-256 digest in this example. */\n" "\\& unsigned char *md, *sig;\n" "\\& size_t mdlen = 32, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key and md are set up before the next\n" "\\& * step. signing_key must be an RSA private key and md must\n" "\\& * point to the SHA-256 digest to be signed.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_init_ex2(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RSA-SHA256, one-shot" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sign a document with RSA-SHA256 using one-shot functions. To be noted is " "that RSA-SHA256 is assumed to be an implementation of " "\\&CW<\\*(C`sha256WithRSAEncryption\\*(C'>, for which the padding is pre-" "determined to be \\&B." 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" "\\& /* in is the input in this example. */\n" "\\& unsigned char *in, *sig;\n" "\\& /* inlen is the length of the input in this example. */\n" "\\& size_t inlen, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\& EVP_SIGNATURE *alg;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key, in and inlen are set up before\n" "\\& * the next step. signing_key must be an RSA private key,\n" "\\& * in must point to data to be digested and signed, and\n" "\\& * inlen must be the size of the data in bytes.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL || alg == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_message_init(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine sig buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RSA-SHA256, using update and final" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This is the same as the previous example, but allowing stream-like " "functionality." 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" "\\& /* in is the input in this example. */\n" "\\& unsigned char *in, *sig;\n" "\\& /* inlen is the length of the input in this example. */\n" "\\& size_t inlen, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\& EVP_SIGNATURE *alg;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key, in and inlen are set up before\n" "\\& * the next step. signing_key must be an RSA private key,\n" "\\& * in must point to data to be digested and signed, and\n" "\\& * inlen must be the size of the data in bytes.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL || alg == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_message_init(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& while (inlen E 0) {\n" "\\& if (EVP_PKEY_sign_message_update(ctx, in, inlen)) E= 0)\n" "\\& /* Error */\n" "\\& if (inlen E 256) {\n" "\\& inlen -= 256;\n" "\\& in += 256;\n" "\\& } else {\n" "\\& inlen = 0;\n" "\\& }\n" "\\& }\n" "\\&\n" "\\& /* Determine sig buffer length */\n" "\\& if (EVP_PKEY_sign_message_final(ctx, NULL, &siglen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign_message_final(ctx, sig, &siglen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\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)" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B and B functions were added in " "OpenSSL 1.0.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The B function was added in OpenSSL 3.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B, B, " "\\&B and B " "functions where added in OpenSSL 3.4." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2006-2025 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_SIGN 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "\\&B adds I bytes from I to the " "data to be processed for signature. The signature algorithm specification " "and implementation determine how the input bytes are processed and if " "there's a limit on the total size of the input. See \"NOTES\" below for a " "deeper explanation." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "\\&B signs the processed data and places the " "data in \\&I, and the number of signature bytes in I<*siglen>, if the " "number of bytes doesn't surpass the size given by I. \\&I may " "be NULL, and in that case, only I<*siglen> is updated with the number of " "signature bytes." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The functions described here can't be used to combine separate algorithms. " "In particular, neither B\\|(3) nor the " "B parameter \"digest\" (B) can be " "used to combine a signature algorithm with a hash algorithm to process the " "input. In other words, it's not possible to specify a I pre-loaded " "with an RSA pkey, or an I that fetched CW<\\*(C`RSA\\*(C'> and try to " "specify SHA256 separately to get the functionality of RSA-SHA256. If " "combining algorithms in that manner is desired, please use " "B\\|(3) and associated functions." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "When initialized using B, it's not possible to " "call B multiple times." msgstr ""