# 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_encrypt.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: EVP_PKEY_encrypt.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: EVP_PKEY_encrypt.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: EVP_PKEY_encrypt.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_ENCRYPT 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_PKEY_ENCRYPT" 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_encrypt_init_ex, EVP_PKEY_encrypt_init, EVP_PKEY_encrypt - encrypt " "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_encrypt_init(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_encrypt_init_ex(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_encrypt(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 B for an encryption operation." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function initializes a public key " "algorithm context using key B for an encryption operation and sets the " "algorithm specific B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function performs a public key encryption " "operation using B. The data to be encrypted is specified using the " "B and \\&B parameters. If B is B then the maximum size " "of the output buffer is written to the B parameter. If B is not " "B then before the call the B parameter should contain the " "length of the \\&B buffer, if the call is successful the encrypted data " "is written to \\&B and the amount of data written to B." 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 "EXAMPLES" msgstr "" #. type: Plain text #: archlinux msgid "" "Encrypt data using OAEP (for RSA keys). See also B\\|(3) or " "\\&B\\|(3) for means to load a public key. You may also simply set " "\\*(Aqeng = NULL;\\*(Aq to start with the default OpenSSL RSA implementation:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\& #include Eopenssl/engine.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 eng, key, in, inlen are already set up,\n" "\\& * and that key is an RSA public key\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(key, eng);\n" "\\& if (!ctx)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_encrypt_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_encrypt(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_encrypt(ctx, out, &outlen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Encrypted 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), \\&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-2021 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_ENCRYPT 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Encrypt data using OAEP (for RSA keys). See also B\\|(3) or " "\\&B\\|(3) for means to load a public key. You may also simply set " "'eng = NULL;' to start with the default OpenSSL RSA implementation:" msgstr ""