# 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_decrypt.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: EVP_PKEY_decrypt.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: EVP_PKEY_decrypt.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: EVP_PKEY_decrypt.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_DECRYPT 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_PKEY_DECRYPT" 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_decrypt_init, EVP_PKEY_decrypt_init_ex, EVP_PKEY_decrypt - decrypt " "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_decrypt_init(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_decrypt_init_ex(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx,\n" "\\& unsigned char *out, size_t *outlen,\n" "\\& const unsigned char *in, size_t inlen);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function initializes a public key algorithm " "context using key I for a decryption operation." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function initializes a public key " "algorithm context using key I for a decryption operation and sets the " "algorithm specific I." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function performs a public key decryption " "operation using I. The data to be decrypted is specified using the " "I and \\&I parameters. If I is NULL then the minimum " "required size of the output buffer is written to the I<*outlen> parameter." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If I is not NULL then before the call the I<*outlen> parameter must " "contain the length of the I buffer. If the call is successful the " "decrypted data is written to I and the amount of the decrypted data " "written to I<*outlen>, otherwise an error is returned." 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 algorithm specific control " "operations can be performed to set any appropriate parameters for the " "operation. These operations can be included in the " "B call." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The function B can be called more than once on the same " "context if several operations are performed using the same 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 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: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "WARNINGS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In OpenSSL versions before 3.2.0, when used in PKCS#1 v1.5 padding, both the " "return value from the B and the B provided " "information useful in mounting a Bleichenbacher attack against the used " "private key. They had to be processed in a side-channel free way." msgstr "" #. type: Plain text #: archlinux msgid "" "Since version 3.2.0, the B method when used with PKCS#1 " "v1.5 padding as implemented in the B provider implements the " "implicit rejection mechanism (see " "\\&B in B\\|" "(7)). That means it doesn\\*(Aqt return an error when it detects an error " "in padding, instead it returns a pseudo-randomly generated message, removing " "the need of side-channel secure code from applications using OpenSSL. If " "OpenSSL is configured to use a provider that doesn\\*(Aqt implement implicit " "rejection, the code still needs to handle the returned values using side-" "channel free code. Side-channel free handling of the error stack can be " "performed using either a pair of unconditional B\\|(3) and " "B\\|(3) calls or by using the B\\|(3) " "call." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Decrypt data using OAEP (for RSA keys):" 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" "\\& unsigned char *out, *in;\n" "\\& size_t outlen, inlen;\n" "\\& EVP_PKEY *key;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes key, eng, in, inlen are already set up\n" "\\& * and that key is an RSA private key\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(key, eng);\n" "\\& if (!ctx)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_decrypt_init(ctx) E= 0)\n" "\\& /* Error */\n" "\\& if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_OAEP_PADDING) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine buffer length */\n" "\\& if (EVP_PKEY_decrypt(ctx, NULL, &outlen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& out = OPENSSL_malloc(outlen);\n" "\\&\n" "\\& if (!out)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_decrypt(ctx, out, &outlen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Decrypted data is outlen bytes written to buffer out */\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 "These functions were added in OpenSSL 1.0.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-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_DECRYPT 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Since version 3.2.0, the B method when used with PKCS#1 " "v1.5 padding as implemented in the B provider implements the " "implicit rejection mechanism (see " "\\&B in B\\|" "(7)). That means it doesn't return an error when it detects an error in " "padding, instead it returns a pseudo-randomly generated message, removing " "the need of side-channel secure code from applications using OpenSSL. If " "OpenSSL is configured to use a provider that doesn't implement implicit " "rejection, the code still needs to handle the returned values using side-" "channel free code. Side-channel free handling of the error stack can be " "performed using either a pair of unconditional B\\|(3) and " "B\\|(3) calls or by using the B\\|(3) " "call." msgstr ""