# 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_verify.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: EVP_PKEY_verify.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: EVP_PKEY_verify.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: EVP_PKEY_verify.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_VERIFY 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_PKEY_VERIFY" 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_verify_init, EVP_PKEY_verify_init_ex, EVP_PKEY_verify_init_ex2, " "EVP_PKEY_verify, EVP_PKEY_verify_message_init, " "EVP_PKEY_verify_message_update, EVP_PKEY_verify_message_final, " "EVP_PKEY_CTX_set_signature - signature verification 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_verify_init(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_verify_init_ex(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_verify_init_ex2(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_verify_message_init(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_CTX_set_signature(EVP_PKEY_CTX *pctx,\n" "\\& const unsigned char *sig, size_t siglen);\n" "\\& int EVP_PKEY_verify_message_update(EVP_PKEY_CTX *ctx,\n" "\\& unsigned char *in, size_t inlen);\n" "\\& int EVP_PKEY_verify_message_final(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_verify(EVP_PKEY_CTX *ctx,\n" "\\& const 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 verification 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 is the same as " "B, but works with an explicitly fetched " "B I. A context I without a pre-loaded key cannot " "be used with this function. Depending on what algorithm was fetched, " "certain details revolving around the treatment of the input to " "B may be pre-determined, and in that case, those details " "may normally not be changed. See \"NOTES\" below for a deeper explanation." msgstr "" #. type: Plain text #: archlinux debian-unstable msgid "" "\\&B initializes a public key algorithm " "context \\&I for verifying 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 debian-unstable msgid "" "\\&B specifies the I bytes long " "signature \\&I to be verified against by " "B. It I be used together with " "B and " "\\&B. See \"NOTES\" below for a deeper " "explanation." msgstr "" #. type: Plain text #: archlinux msgid "" "\\&B adds I bytes from I to the " "data to be processed for verification. 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 debian-unstable msgid "" "\\&B verifies the processed data, given " "only I. The signature to verify against must have been given with " "\\&B." msgstr "" #. type: Plain text #: archlinux debian-unstable msgid "" "\\&B is a one-shot function that performs the same thing " "as \\&B call with I and I as " "parameters, followed by a single B call " "with I and \\&I, followed by B " "call." 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 verifying it (they expect the input to be a " "digest), while others compress the data, typically by internally producing a " "digest, and signing the result, which is then verified against a given " "signature. 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 digest " "as input, while ED25519 can be expected to process the input with a hash, " "i.e. to produce the 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, " "or \\&B\\|(3) and associated functions." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Performing multiple verifications" 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 "On EVP_PKEY_CTX_set_signature()" msgstr "" #. type: Plain text #: archlinux msgid "" "Some signature algorithms (such as LMS) require the signature verification " "data be specified before verifying the message. Other algorithms allow the " "signature to be specified late. To allow either way (which may depend on " "the application\\*(Aqs flow of input), the signature to be verified against " "I be specified using this function when using " "B and B " "to perform the verification." 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. " "However, unlike other functions, the return value 0 from " "B, \\&B and " "B only indicates that the signature did not " "verify successfully (that is tbs did not match the original data or the " "signature was of invalid form) it is not an indication of a more serious " "error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "A negative value indicates an error other that signature verification " "failure. In particular a return value of -2 indicates 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 "Verify signature using 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" "\\& unsigned char *md, *sig;\n" "\\& size_t mdlen, siglen;\n" "\\& EVP_PKEY *verify_key;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes verify_key, sig, siglen md and mdlen are already set up\n" "\\& * and that verify_key is an RSA public key\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(verify_key, NULL /* no engine */);\n" "\\& if (ctx == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_verify_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" "\\& /* Perform operation */\n" "\\& ret = EVP_PKEY_verify(ctx, sig, siglen, md, mdlen);\n" "\\&\n" "\\& /*\n" "\\& * ret == 1 indicates success, 0 verify failure and E 0 for some\n" "\\& * other error.\n" "\\& */\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 "" "Verify 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 verify_key, sig, siglen, md and mdlen are already set up\n" "\\& * and that verify_key is an RSA public key\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_verify_init_ex2(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine buffer length */\n" "\\& if (EVP_PKEY_verify(ctx, sig, siglen, md, mdlen) E= 0)\n" "\\& /* Error or signature doesn\\*(Aqt verify */\n" "\\&\n" "\\& /* Perform operation */\n" "\\& ret = EVP_PKEY_verify(ctx, sig, siglen, md, mdlen);\n" "\\&\n" "\\& /*\n" "\\& * ret == 1 indicates success, 0 verify failure and E 0 for some\n" "\\& * other error.\n" "\\& */\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 "" "Verify 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 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_verify_message_init(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Perform operation */\n" "\\& ret = EVP_PKEY_verify(ctx, sig, siglen, in, inlen);\n" "\\&\n" "\\& /*\n" "\\& * ret == 1 indicates success, 0 verify failure and E 0 for some\n" "\\& * other error.\n" "\\& */\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_verify_message_init(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* We have the signature, specify it early */\n" "\\& EVP_PKEY_CTX_set_signature(ctx, sig, siglen);\n" "\\&\n" "\\& /* Perform operation */\n" "\\& while (inlen E 0) {\n" "\\& if (EVP_PKEY_verify_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" "\\& ret = EVP_PKEY_verify_message_final(ctx);\n" "\\&\n" "\\& /*\n" "\\& * ret == 1 indicates success, 0 verify failure and E 0 for some\n" "\\& * other error.\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)" 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, 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-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_VERIFY 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie msgid "" "\\&B initializes a public key algorithm " "context \\&I for verifying 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 #: debian-trixie msgid "" "\\&B specifies the I bytes long " "signature \\&I to be verified against by B. " "It I be used together with B and " "\\&B. See \"NOTES\" below for a deeper explanation." msgstr "" #. type: Plain text #: debian-trixie msgid "" "\\&B adds I bytes from I to the data to " "be processed for verification. 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 msgid "" "\\&B verifies the processed data, given only " "I. The signature to verify against must have been given with " "\\&B." msgstr "" #. type: Plain text #: debian-trixie msgid "" "\\&B is a one-shot function that performs the same thing " "as \\&B call with I and I as " "parameters, followed by a single B call with " "I and I, followed by B call." 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, or " "\\&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 "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Some signature algorithms (such as LMS) require the signature verification " "data be specified before verifying the message. Other algorithms allow the " "signature to be specified late. To allow either way (which may depend on " "the application's flow of input), the signature to be verified against " "I be specified using this function when using " "B and B " "to perform the verification." msgstr "" #. type: Plain text #: debian-trixie msgid "Copyright 2006-2024 The OpenSSL Project Authors. All Rights Reserved." msgstr "" #. type: Plain text #: debian-unstable msgid "" "\\&B adds I bytes from I to the " "data to be processed for verification. 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 ""