# 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_EncryptInit.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: EVP_EncryptInit.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: EVP_EncryptInit.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: EVP_EncryptInit.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_ENCRYPTINIT 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_ENCRYPTINIT" 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_CIPHER_fetch, EVP_CIPHER_up_ref, EVP_CIPHER_free, EVP_CIPHER_CTX_new, " "EVP_CIPHER_CTX_reset, EVP_CIPHER_CTX_free, EVP_CIPHER_CTX_dup, " "EVP_CIPHER_CTX_copy, EVP_EncryptInit_ex, EVP_EncryptInit_ex2, " "EVP_EncryptUpdate, EVP_EncryptFinal_ex, EVP_DecryptInit_ex, " "EVP_DecryptInit_ex2, EVP_DecryptUpdate, EVP_DecryptFinal_ex, " "EVP_CipherInit_ex, EVP_CipherInit_ex2, EVP_CipherInit_SKEY, " "EVP_CipherUpdate, EVP_CipherFinal_ex, EVP_CIPHER_CTX_set_key_length, " "EVP_CIPHER_CTX_ctrl, EVP_EncryptInit, EVP_EncryptFinal, EVP_DecryptInit, " "EVP_DecryptFinal, EVP_CipherInit, EVP_CipherFinal, EVP_Cipher, " "EVP_CIPHER_can_pipeline, EVP_CipherPipelineEncryptInit, " "EVP_CipherPipelineDecryptInit, EVP_CipherPipelineUpdate, " "EVP_CipherPipelineFinal, EVP_get_cipherbyname, EVP_get_cipherbynid, " "EVP_get_cipherbyobj, EVP_CIPHER_is_a, EVP_CIPHER_get0_name, " "EVP_CIPHER_get0_description, EVP_CIPHER_names_do_all, " "EVP_CIPHER_get0_provider, EVP_CIPHER_get_nid, EVP_CIPHER_get_params, " "EVP_CIPHER_gettable_params, EVP_CIPHER_get_block_size, " "EVP_CIPHER_get_key_length, EVP_CIPHER_get_iv_length, EVP_CIPHER_get_flags, " "EVP_CIPHER_get_mode, EVP_CIPHER_get_type, EVP_CIPHER_CTX_cipher, " "EVP_CIPHER_CTX_get0_cipher, EVP_CIPHER_CTX_get1_cipher, " "EVP_CIPHER_CTX_get0_name, EVP_CIPHER_CTX_get_nid, EVP_CIPHER_CTX_get_params, " "EVP_CIPHER_gettable_ctx_params, EVP_CIPHER_CTX_gettable_params, " "EVP_CIPHER_CTX_set_params, EVP_CIPHER_settable_ctx_params, " "EVP_CIPHER_CTX_settable_params, EVP_CIPHER_CTX_get_block_size, " "EVP_CIPHER_CTX_get_key_length, EVP_CIPHER_CTX_get_iv_length, " "EVP_CIPHER_CTX_get_tag_length, EVP_CIPHER_CTX_flags, " "EVP_CIPHER_CTX_set_flags, EVP_CIPHER_CTX_clear_flags, " "EVP_CIPHER_CTX_test_flags, EVP_CIPHER_CTX_get_type, EVP_CIPHER_CTX_get_mode, " "EVP_CIPHER_CTX_get_num, EVP_CIPHER_CTX_set_num, " "EVP_CIPHER_CTX_is_encrypting, EVP_CIPHER_param_to_asn1, " "EVP_CIPHER_asn1_to_param, EVP_CIPHER_CTX_set_padding, EVP_enc_null, " "EVP_CIPHER_do_all_provided, EVP_CIPHER_nid, EVP_CIPHER_name, " "EVP_CIPHER_block_size, EVP_CIPHER_key_length, EVP_CIPHER_iv_length, " "EVP_CIPHER_flags, EVP_CIPHER_mode, EVP_CIPHER_type, " "EVP_CIPHER_CTX_encrypting, EVP_CIPHER_CTX_nid, EVP_CIPHER_CTX_block_size, " "EVP_CIPHER_CTX_key_length, EVP_CIPHER_CTX_iv_length, " "EVP_CIPHER_CTX_tag_length, EVP_CIPHER_CTX_num, EVP_CIPHER_CTX_type, " "EVP_CIPHER_CTX_mode \\&- EVP cipher routines" 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_CIPHER *EVP_CIPHER_fetch(OSSL_LIB_CTX *ctx, const char *algorithm,\n" "\\& const char *properties);\n" "\\& int EVP_CIPHER_up_ref(EVP_CIPHER *cipher);\n" "\\& void EVP_CIPHER_free(EVP_CIPHER *cipher);\n" "\\& EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);\n" "\\& int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx);\n" "\\& void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx);\n" "\\& EVP_CIPHER_CTX *EVP_CIPHER_CTX_dup(const EVP_CIPHER_CTX *in);\n" "\\& int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);\n" "\\&\n" "\\& int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& ENGINE *impl, const unsigned char *key, const unsigned char *iv);\n" "\\& int EVP_EncryptInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& const unsigned char *key, const unsigned char *iv,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n" "\\& int *outl, const unsigned char *in, int inl);\n" "\\& int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);\n" "\\&\n" "\\& int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& ENGINE *impl, const unsigned char *key, const unsigned char *iv);\n" "\\& int EVP_DecryptInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& const unsigned char *key, const unsigned char *iv,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n" "\\& int *outl, const unsigned char *in, int inl);\n" "\\& int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl);\n" "\\&\n" "\\& int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc);\n" "\\& int EVP_CipherInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& const unsigned char *key, const unsigned char *iv,\n" "\\& int enc, const OSSL_PARAM params[]);\n" "\\& int EVP_CipherInit_SKEY(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n" "\\& EVP_SKEY *skey, const unsigned char *iv, size_t iv_len,\n" "\\& int enc, const OSSL_PARAM params[]);\n" "\\& int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n" "\\& int *outl, const unsigned char *in, int inl);\n" "\\& int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl);\n" "\\&\n" "\\& int EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& const unsigned char *key, const unsigned char *iv);\n" "\\& int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);\n" "\\&\n" "\\& int EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& const unsigned char *key, const unsigned char *iv);\n" "\\& int EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl);\n" "\\&\n" "\\& int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n" "\\& const unsigned char *key, const unsigned char *iv, int enc);\n" "\\& int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl);\n" "\\&\n" "\\& int EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,\n" "\\& const unsigned char *in, unsigned int inl);\n" "\\&\n" "\\& int EVP_CIPHER_can_pipeline(const EVP_CIPHER *cipher, int enc);\n" "\\& int EVP_CipherPipelineEncryptInit(EVP_CIPHER_CTX *ctx,\n" "\\& const EVP_CIPHER *cipher,\n" "\\& const unsigned char *key, size_t keylen,\n" "\\& size_t numpipes,\n" "\\& const unsigned char **iv, size_t ivlen);\n" "\\& int EVP_CipherPipelineDecryptInit(EVP_CIPHER_CTX *ctx,\n" "\\& const EVP_CIPHER *cipher,\n" "\\& const unsigned char *key, size_t keylen,\n" "\\& size_t numpipes,\n" "\\& const unsigned char **iv, size_t ivlen);\n" "\\& int EVP_CipherPipelineUpdate(EVP_CIPHER_CTX *ctx,\n" "\\& unsigned char **out, size_t *outl,\n" "\\& const size_t *outsize,\n" "\\& const unsigned char **in, const size_t *inl);\n" "\\& int EVP_CipherPipelineFinal(EVP_CIPHER_CTX *ctx,\n" "\\& unsigned char **outm, size_t *outl,\n" "\\& const size_t *outsize);\n" "\\&\n" "\\& int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *x, int padding);\n" "\\& int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen);\n" "\\& int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int cmd, int p1, void *p2);\n" "\\& int EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key);\n" "\\& void EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags);\n" "\\& void EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags);\n" "\\& int EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags);\n" "\\&\n" "\\& const EVP_CIPHER *EVP_get_cipherbyname(const char *name);\n" "\\& const EVP_CIPHER *EVP_get_cipherbynid(int nid);\n" "\\& const EVP_CIPHER *EVP_get_cipherbyobj(const ASN1_OBJECT *a);\n" "\\&\n" "\\& int EVP_CIPHER_get_nid(const EVP_CIPHER *e);\n" "\\& int EVP_CIPHER_is_a(const EVP_CIPHER *cipher, const char *name);\n" "\\& int EVP_CIPHER_names_do_all(const EVP_CIPHER *cipher,\n" "\\& void (*fn)(const char *name, void *data),\n" "\\& void *data);\n" "\\& const char *EVP_CIPHER_get0_name(const EVP_CIPHER *cipher);\n" "\\& const char *EVP_CIPHER_get0_description(const EVP_CIPHER *cipher);\n" "\\& const OSSL_PROVIDER *EVP_CIPHER_get0_provider(const EVP_CIPHER *cipher);\n" "\\& int EVP_CIPHER_get_block_size(const EVP_CIPHER *e);\n" "\\& int EVP_CIPHER_get_key_length(const EVP_CIPHER *e);\n" "\\& int EVP_CIPHER_get_iv_length(const EVP_CIPHER *e);\n" "\\& unsigned long EVP_CIPHER_get_flags(const EVP_CIPHER *e);\n" "\\& unsigned long EVP_CIPHER_get_mode(const EVP_CIPHER *e);\n" "\\& int EVP_CIPHER_get_type(const EVP_CIPHER *cipher);\n" "\\&\n" "\\& const EVP_CIPHER *EVP_CIPHER_CTX_get0_cipher(const EVP_CIPHER_CTX *ctx);\n" "\\& EVP_CIPHER *EVP_CIPHER_CTX_get1_cipher(const EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_get_nid(const EVP_CIPHER_CTX *ctx);\n" "\\& const char *EVP_CIPHER_CTX_get0_name(const EVP_CIPHER_CTX *ctx);\n" "\\&\n" "\\& int EVP_CIPHER_get_params(EVP_CIPHER *cipher, OSSL_PARAM params[]);\n" "\\& int EVP_CIPHER_CTX_set_params(EVP_CIPHER_CTX *ctx, const OSSL_PARAM params[]);\n" "\\& int EVP_CIPHER_CTX_get_params(EVP_CIPHER_CTX *ctx, OSSL_PARAM params[]);\n" "\\& const OSSL_PARAM *EVP_CIPHER_gettable_params(const EVP_CIPHER *cipher);\n" "\\& const OSSL_PARAM *EVP_CIPHER_settable_ctx_params(const EVP_CIPHER *cipher);\n" "\\& const OSSL_PARAM *EVP_CIPHER_gettable_ctx_params(const EVP_CIPHER *cipher);\n" "\\& const OSSL_PARAM *EVP_CIPHER_CTX_settable_params(EVP_CIPHER_CTX *ctx);\n" "\\& const OSSL_PARAM *EVP_CIPHER_CTX_gettable_params(EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_get_block_size(const EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_get_key_length(const EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_get_iv_length(const EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_get_tag_length(const EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_get_type(const EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_get_mode(const EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_get_num(const EVP_CIPHER_CTX *ctx);\n" "\\& int EVP_CIPHER_CTX_set_num(EVP_CIPHER_CTX *ctx, int num);\n" "\\& int EVP_CIPHER_CTX_is_encrypting(const EVP_CIPHER_CTX *ctx);\n" "\\&\n" "\\& int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\n" "\\& int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\n" "\\&\n" "\\& void EVP_CIPHER_do_all_provided(OSSL_LIB_CTX *libctx,\n" "\\& void (*fn)(EVP_CIPHER *cipher, void *arg),\n" "\\& void *arg);\n" "\\&\n" "\\& #define EVP_CIPHER_nid EVP_CIPHER_get_nid\n" "\\& #define EVP_CIPHER_name EVP_CIPHER_get0_name\n" "\\& #define EVP_CIPHER_block_size EVP_CIPHER_get_block_size\n" "\\& #define EVP_CIPHER_key_length EVP_CIPHER_get_key_length\n" "\\& #define EVP_CIPHER_iv_length EVP_CIPHER_get_iv_length\n" "\\& #define EVP_CIPHER_flags EVP_CIPHER_get_flags\n" "\\& #define EVP_CIPHER_mode EVP_CIPHER_get_mode\n" "\\& #define EVP_CIPHER_type EVP_CIPHER_get_type\n" "\\& #define EVP_CIPHER_CTX_encrypting EVP_CIPHER_CTX_is_encrypting\n" "\\& #define EVP_CIPHER_CTX_nid EVP_CIPHER_CTX_get_nid\n" "\\& #define EVP_CIPHER_CTX_block_size EVP_CIPHER_CTX_get_block_size\n" "\\& #define EVP_CIPHER_CTX_key_length EVP_CIPHER_CTX_get_key_length\n" "\\& #define EVP_CIPHER_CTX_iv_length EVP_CIPHER_CTX_get_iv_length\n" "\\& #define EVP_CIPHER_CTX_tag_length EVP_CIPHER_CTX_get_tag_length\n" "\\& #define EVP_CIPHER_CTX_num EVP_CIPHER_CTX_get_num\n" "\\& #define EVP_CIPHER_CTX_type EVP_CIPHER_CTX_get_type\n" "\\& #define EVP_CIPHER_CTX_mode EVP_CIPHER_CTX_get_mode\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following function has been deprecated since OpenSSL 3.0, and can be " "hidden entirely by defining B with a suitable version " "value, see B\\|(7):" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\\& const EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx);\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following function has been deprecated since OpenSSL 1.1.0, and can be " "hidden entirely by defining B with a suitable version " "value, see B\\|(7):" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\\& int EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The EVP cipher routines are a high-level interface to certain symmetric " "ciphers." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The B type is a structure for cipher method implementation." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Item" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_fetch()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Fetches the cipher implementation for the given I from any " "provider offering it, within the criteria given by the I. See " "\"ALGORITHM FETCHING\" in B\\|(7) for further information." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The returned value must eventually be freed with B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Fetched B structures are reference counted." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_up_ref()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Increments the reference count for an B structure." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_free()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Decrements the reference count for the fetched B structure. If " "the reference count drops to 0 then the structure is freed. If the argument " "is NULL, nothing is done." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_new()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Allocates and returns a cipher context." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_free()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Clears all information from a cipher context and frees any allocated memory " "associated with it, including I itself. This function should be called " "after all operations using a cipher are complete so sensitive information " "does not remain in memory. If the argument is NULL, nothing is done." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_dup()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Can be used to duplicate the cipher state from I. This is useful to " "avoid multiple B calls or if large amounts of data are " "to be fed which only differ in the last few bytes." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_copy()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Can be used to copy the cipher state from I to I." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_ctrl()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&I B and " "\\&B is the mechanism that should be used to " "set and get parameters that are used by providers." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Performs cipher-specific control actions on context I. The control " "command is indicated in I and any additional arguments in I and " "I. \\&B must be called after " "B. Other restrictions may apply depending on the " "control type and cipher implementation." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If this function happens to be used with a fetched B, it will " "translate the controls that are known to OpenSSL into B\\|(3) " "parameters with keys defined by OpenSSL and call " "B or \\&B as is " "appropriate for each control command." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "See \"CONTROLS\" below for more information, including what translations are " "being done." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get_params()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Retrieves the requested list of algorithm I from a CIPHER " "I. See \"PARAMETERS\" below for more information." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_get_params()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Retrieves the requested list of I from CIPHER context I. See " "\"PARAMETERS\" below for more information." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_set_params()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the list of I into a CIPHER context I. See \"PARAMETERS\" " "below for more information." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_gettable_params()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Get a constant B\\|(3) array that describes the retrievable " "parameters that can be used with B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_gettable_ctx_params() and EVP_CIPHER_CTX_gettable_params()" msgstr "" #. type: Plain text #: archlinux msgid "" "Get a constant B\\|(3) array that describes the retrievable " "parameters that can be used with B. " "\\&B returns the parameters that can be " "retrieved from the algorithm, whereas B " "returns the parameters that can be retrieved in the context\\*(Aqs current " "state." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_settable_ctx_params() and EVP_CIPHER_CTX_settable_params()" msgstr "" #. type: Plain text #: archlinux msgid "" "Get a constant B\\|(3) array that describes the settable " "parameters that can be used with B. " "\\&B returns the parameters that can be " "set from the algorithm, whereas B returns " "the parameters that can be set in the context\\*(Aqs current state." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_EncryptInit_ex2()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets up cipher context I for encryption with cipher I. I " "B be NULL. \\&I is typically supplied by calling " "B. I may also be set using legacy functions such " "as B, but this is not recommended for new applications. " "I is the symmetric key to use and I is the IV to use (if " "necessary), the actual number of bytes used for the key and IV depends on " "the cipher. The parameters I will be set on the context after " "initialisation. It is possible to set all parameters to NULL except I " "in an initial call and supply the remaining parameters in subsequent calls, " "all of which have I set to NULL. This is done when the default cipher " "parameters are not appropriate. For B the IV will be " "generated internally if it is not specified." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_EncryptInit_ex()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This legacy function is similar to B when I is " "NULL. The implementation of the I from the I engine will be " "used if it exists." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_EncryptUpdate()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Encrypts I bytes from the buffer I and writes the encrypted version " "to \\&I. The pointers I and I may point to the same location, " "in which case the encryption will be done in-place. However, in-place " "encryption is guaranteed to work only if the encryption context (I) has " "processed data in multiples of the block size. If the context contains an " "incomplete data block from previous operations, in-place encryption will " "fail. I B be NULL." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If I and I point to different locations, the two buffers must be " "disjoint, otherwise the operation might fail or the outcome might be " "undefined." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This function can be called multiple times to encrypt successive blocks of " "data. The amount of data written depends on the block alignment of the " "encrypted data. For most ciphers and modes, the amount of data written can " "be anything from zero bytes to (inl + cipher_block_size - 1) bytes. For " "wrap cipher modes, the amount of data written can be anything from zero " "bytes to (inl + cipher_block_size) bytes. For stream ciphers, the amount of " "data written can be anything from zero bytes to inl bytes. Thus, the buffer " "pointed to by I must contain sufficient room for the operation being " "performed. The actual number of bytes written is placed in I." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If padding is enabled (the default) then B encrypts " "the \"final\" data, that is any data that remains in a partial block. It " "uses standard block padding (aka PKCS padding) as described in the NOTES " "section, below. The encrypted final data is written to I which should " "have sufficient space for one cipher block. The number of bytes written is " "placed in I. After this function is called the encryption operation is " "finished and no further calls to B should be made." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If padding is disabled then B will not encrypt any " "more data and it will return an error if any data remains in a partial " "block: that is if the total data length is not a multiple of the block size." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B, B, B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_DecryptInit_ex2(), EVP_DecryptInit_ex(), EVP_DecryptUpdate() and EVP_DecryptFinal_ex()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "These functions are the corresponding decryption operations. " "\\&B will return an error code if padding is enabled and " "the final block is not correctly formatted. The parameters and restrictions " "are identical to the encryption operations. I B be NULL." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B, B, B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CipherInit_ex2(), EVP_CipherInit_ex(), EVP_CipherUpdate() and EVP_CipherFinal_ex()" msgstr "" #. type: Plain text #: archlinux msgid "" "These functions can be used for decryption or encryption. The operation " "performed depends on the value of the I parameter. It should be set to " "1 for encryption, 0 for decryption and -1 to leave the value unchanged (the " "actual value of \\*(Aqenc\\*(Aq being supplied in a previous call)." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CipherInit_SKEY()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This function is similar to B but accepts a symmetric " "key object of type I as a key." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_reset()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Clears all information from a cipher context and free up any allocated " "memory associated with it, except the I itself. This function should be " "called anytime I is reused by another \\&B / " "B / B series of calls." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B, B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_EncryptInit(), EVP_DecryptInit() and EVP_CipherInit()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Behave in a similar way to B, B " "and \\&B except if the I is not a fetched cipher " "they use the default implementation of the I." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B, B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_EncryptFinal(), EVP_DecryptFinal() and EVP_CipherFinal()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Identical to B, B and " "\\&B. In previous releases they also cleaned up the " "I, but this is no longer done and B must be " "called to free any context resources." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_Cipher()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Encrypts or decrypts a maximum I amount of bytes from I and leaves " "the result in I." msgstr "" #. type: Plain text #: archlinux msgid "" "For legacy ciphers - If the cipher doesn\\*(Aqt have the flag " "\\&B set, then I must be a multiple of " "\\&B. If it isn\\*(Aqt, the result is " "undefined. If the cipher has that flag set, then I can be any size." msgstr "" #. type: Plain text #: archlinux msgid "" "Due to the constraints of the API contract of this function it " "shouldn\\*(Aqt be used in applications, please consider using " "B and \\&B instead." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_can_pipeline()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This function checks if a B fetched using B " "supports cipher pipelining. If the cipher supports pipelining, it returns 1, " "otherwise 0. This function will return 0 for non-fetched ciphers such as " "B. There are currently no built-in ciphers that support " "pipelining." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Cipher pipelining support allows an application to submit multiple chunks of " "data in one set of B/EVP_CipherFinal calls, thereby " "allowing the provided implementation to take advantage of parallel " "computing. This is beneficial for hardware accelerators as pipeline " "amortizes the latency over multiple chunks." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For non-fetched ciphers, B or " "\\&B may be directly called, which will " "perform a fetch and return an error if a pipeline supported implementation " "is not found." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B, B, B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CipherPipelineEncryptInit(), EVP_CipherPipelineDecryptInit(), EVP_CipherPipelineUpdate() and EVP_CipherPipelineFinal()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "These functions can be used to perform multiple encryption or decryption " "operations in parallel. B may be called to check " "if the cipher supports pipelining. These functions are analogous to " "\\&B, B, B " "and \\&B but take an array of pointers for iv, input and " "output buffers." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The I, of length I, is the symmetric key to use. The " "I parameter specifies the number of parallel operations to " "perform. The \\&I cannot exceed B. The I " "parameter is an array of buffer pointers, containing IVs. The array size " "must be equal to I. The size of each IV buffer must be equal to " "I. When IV is not provided, \\&I must be NULL, rather than an " "array of NULL pointers. The I parameters takes an array of buffer " "pointers, each pointing to a buffer containing the input data. The buffers " "can be of different sizes. The I parameter is an array of size_t, each " "specifying the size of the corresponding input buffer. The I and " "I parameters are arrays of buffer pointers, each pointing to a buffer " "where the output data will be written. The I parameter is an array " "of size_t, each specifying the size of the corresponding output buffer. The " "I parameter is an array of size_t which will be updated with the size " "of the output data written to the corresponding output buffer. For size " "requirement of the output buffers, see the description of " "B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function can be called multiple times to " "encrypt successive blocks of data. For AAD data, the I, and I " "parameter should be NULL, rather than an array of NULL pointers." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B, B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_get_cipherbyname(), EVP_get_cipherbynid() and EVP_get_cipherbyobj()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Returns an B structure when passed a cipher name, a cipher " "B or an B structure respectively." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B will return NULL for algorithms such as " "\"AES-128-SIV\", \"AES-128-CBC-CTS\" and \"CAMELLIA-128-CBC-CTS\" which were " "previously only accessible via low level interfaces." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function is present for backwards " "compatibility with OpenSSL prior to version 3 and is different to the " "B function since it does not attempt to \"fetch\" an " "implementation of the cipher. Additionally, it only knows about ciphers " "that are built-in to OpenSSL and have an associated NID. Similarly " "B and B also return objects " "without an associated implementation." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When the cipher objects returned by these functions are used (such as in a " "call to B) an implementation of the cipher will be " "implicitly fetched from the loaded providers. This fetch could fail if no " "suitable implementation is available. Use B instead to " "explicitly fetch the algorithm and an associated implementation from a " "provider." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "See \"ALGORITHM FETCHING\" in B\\|(7) for more information about " "fetching." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The cipher objects returned from these functions do not need to be freed " "with \\&B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get_nid() and EVP_CIPHER_CTX_get_nid()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Return the NID of a cipher when passed an B or B " "structure. The actual NID value is an internal value which may not have a " "corresponding OBJECT IDENTIFIER. NID_undef is returned in the event that " "the nid is unknown or if the cipher has not been properly initialized via a " "call to \\&B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B, B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_set_flags(), EVP_CIPHER_CTX_clear_flags() and EVP_CIPHER_CTX_test_flags()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets, clears and tests I flags. See \"FLAGS\" below for more " "information." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For provided ciphers B should be called only " "after the fetched cipher has been assigned to the I. It is recommended " "to use \"PARAMETERS\" instead." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_set_padding()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Enables or disables padding. This function should be called after the " "context is set up for encryption or decryption with " "B, \\&B, " "B, or B. By default encryption " "operations are padded using standard block padding and the padding is " "checked and removed when decrypting. If the I parameter is zero then no " "padding is performed, the total amount of data encrypted or decrypted must " "then be a multiple of the block size or an error will occur. I B be NULL." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get_key_length() and EVP_CIPHER_CTX_get_key_length()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Return the key length of a cipher when passed an B or " "\\&B structure. The constant B is the " "maximum key length for all ciphers. Note: although " "B is fixed for a given cipher, the value of " "B may be different for variable key length " "ciphers." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_set_key_length()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the key length of the cipher context. If the cipher is a fixed length " "cipher then attempting to set the key length to any value other than the " "fixed value is an error." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get_iv_length() and EVP_CIPHER_CTX_get_iv_length()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Return the IV length of a cipher when passed an B or " "\\&B. It will return zero if the cipher does not use an IV, " "if the cipher has not yet been initialized within the B, or " "if the passed cipher is NULL. The constant B is the " "maximum IV length for all ciphers." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_get_tag_length()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Returns the tag length of an AEAD cipher when passed a B. It " "will return zero if the cipher does not support a tag. It returns a default " "value if the tag length has not been set." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get_block_size() and EVP_CIPHER_CTX_get_block_size()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Return the block size of a cipher when passed an B or " "\\&B structure. The constant B is also " "the maximum block length for all ciphers. A value of 0 is returned if, with " "B, the cipher \\&I is NULL, or, with " "B, the context \\&I is NULL or has not " "been properly initialized with a call to \\&B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get_type() and EVP_CIPHER_CTX_get_type()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Return the type of the passed cipher or context. This \"type\" is the actual " "NID of the cipher OBJECT IDENTIFIER and as such it ignores the cipher " "parameters (40 bit RC2 and 128 bit RC2 have the same NID). If the cipher " "does not have an object identifier or does not have ASN1 support this " "function will return \\&B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_is_a()" msgstr "" #. type: Plain text #: archlinux msgid "" "Returns 1 if I is an implementation of an algorithm that\\*(Aqs " "identifiable with I, otherwise 0. If I is a legacy cipher " "(it\\*(Aqs the return value from the likes of B rather than " "the result of an \\&B), only cipher names registered " "with the default library context (see B\\|(3)) will be " "considered." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get0_name() and EVP_CIPHER_CTX_get0_name()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Return the name of the passed cipher or context. For fetched ciphers with " "multiple names, only one of them is returned. See also " "B. \\&I B be NULL." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_names_do_all()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Traverses all names for the I, and calls I with each name and " "\\&I. This is only useful with fetched Bs." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get0_description()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Returns a description of the cipher, meant for display and human " "consumption. The description is at the discretion of the cipher " "implementation." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get0_provider()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Returns an B pointer to the provider that implements the " "given \\&B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_get0_cipher()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Returns the B structure when passed an B " "structure. \\&B is the same except the " "ownership is passed to the caller. Both functions return NULL on error." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get_mode() and EVP_CIPHER_CTX_get_mode()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Return the block cipher mode: EVP_CIPH_ECB_MODE, EVP_CIPH_CBC_MODE, " "EVP_CIPH_CFB_MODE, EVP_CIPH_OFB_MODE, EVP_CIPH_CTR_MODE, EVP_CIPH_GCM_MODE, " "EVP_CIPH_CCM_MODE, EVP_CIPH_XTS_MODE, EVP_CIPH_WRAP_MODE, EVP_CIPH_OCB_MODE " "or EVP_CIPH_SIV_MODE. If the cipher is a stream cipher then " "EVP_CIPH_STREAM_CIPHER is returned." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_get_flags()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Returns any flags associated with the cipher. See \"FLAGS\" for a list of " "currently defined flags." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B and B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_get_num() and EVP_CIPHER_CTX_set_num()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the cipher specific \"num\" parameter for the associated " "I. Built-in ciphers typically use this to track how much of the " "current underlying block has been \"used\" already." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_is_encrypting()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Reports whether the I is being used for encryption or decryption." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_flags()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "A deprecated macro calling " "CW<\\*(C`EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(ctx))\\*(C'>. Do " "not use." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_param_to_asn1()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the AlgorithmIdentifier \"parameter\" based on the passed cipher. This " "will typically include any parameters and an IV. The cipher IV (if any) must " "be set when this call is made. This call should be made before the cipher is " "actually \"used\" (before any B, B " "calls for example). This function may fail if the cipher does not have any " "ASN1 support, or if an uninitialized cipher is passed to it." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_asn1_to_param()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the cipher parameters based on an ASN1 AlgorithmIdentifier " "\"parameter\". The precise effect depends on the cipher. In the case of " "B, for example, it will set the IV and effective key length. This " "function should be called after the base cipher type is set but before the " "key is set. For example B will be called with the IV and " "key set to NULL, B will be called and finally " "\\&B again with all parameters except the key set to NULL. " "It is possible for this function to fail if the cipher does not have any " "ASN1 support or the parameters cannot be set (for example the RC2 effective " "key length is not supported." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_rand_key()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Generates a random key of the appropriate length based on the cipher " "context. The B can provide its own random key generation " "routine to support keys of a specific form. I must point to a buffer at " "least as big as the value returned by B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_do_all_provided()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Traverses all ciphers implemented by all activated providers in the given " "library context I, and for each of the implementations, calls the " "given function I with the implementation method and the given I as " "argument." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "PARAMETERS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "See B\\|(3) for information about passing parameters." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Gettable EVP_CIPHER parameters" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Subsection" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When B is called it internally calls " "B and caches the results." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B can be used with the following B\\|" "(3) keys:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"mode\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"mode\" (OSSL_CIPHER_PARAM_MODE) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the mode for the associated cipher algorithm I. See " "\"B and B\" for a list of " "valid modes. Use B to retrieve the cached value." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"keylen\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"keylen\" (OSSL_CIPHER_PARAM_KEYLEN) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the key length for the associated cipher algorithm I. Use " "B to retrieve the cached value." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"ivlen\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"ivlen\" (OSSL_CIPHER_PARAM_IVLEN) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the IV length for the associated cipher algorithm I. Use " "B to retrieve the cached value." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"blocksize\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"blocksize\" (OSSL_CIPHER_PARAM_BLOCK_SIZE) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the block size for the associated cipher algorithm I. The " "block size should be 1 for stream ciphers. Note that the block size for a " "cipher may be different to the block size for the underlying encryption/" "decryption primitive. For example AES in CTR mode has a block size of 1 " "(because it operates like a stream cipher), even though AES has a block size " "of 16. Use B to retrieve the cached value." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"aead\" (B) EintegerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"aead\" (OSSL_CIPHER_PARAM_AEAD) EintegerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets 1 if this is an AEAD cipher algorithm, otherwise it gets 0. Use " "(EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) to retrieve the " "cached value." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"custom-iv\" (B) EintegerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"custom-iv\" (OSSL_CIPHER_PARAM_CUSTOM_IV) EintegerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets 1 if the cipher algorithm I has a custom IV, otherwise it gets " "0. Storing and initializing the IV is left entirely to the implementation, " "if a custom IV is used. Use (EVP_CIPHER_get_flags(cipher) & " "EVP_CIPH_CUSTOM_IV) to retrieve the cached value." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"cts\" (B) EintegerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"cts\" (OSSL_CIPHER_PARAM_CTS) EintegerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets 1 if the cipher algorithm I uses ciphertext stealing, otherwise " "it gets 0. This is currently used to indicate that the cipher is a one shot " "that only allows a single call to B. Use " "(EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_CTS) to retrieve the cached " "value." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls-multi\" (B) EintegerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls-multi\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK) EintegerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets 1 if the cipher algorithm I supports interleaving of crypto " "blocks, otherwise it gets 0. The interleaving is an optimization only " "applicable to certain TLS ciphers. Use (EVP_CIPHER_get_flags(cipher) & " "EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK) to retrieve the cached value." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"has-randkey\" (B) EintegerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"has-randkey\" (OSSL_CIPHER_PARAM_HAS_RANDKEY) EintegerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets 1 if the cipher algorithm I supports the gettable " "EVP_CIPHER_CTX parameter B. Only DES and 3DES " "set this to 1, all other OpenSSL ciphers return 0." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"decrypt-only\" (Binteger>" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"decrypt-only\" (OSSL_CIPHER_PARAM_DECRYPT_ONLY) Einteger" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets 1 if the cipher algorithm I implementation supports only the " "decryption operation such as the 3DES ciphers in the fips provider. " "Otherwise gets 0 or the parameter might not be present at all." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Gettable and Settable EVP_CIPHER_CTX parameters" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following B\\|(3) keys can be used with both " "B and B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"padding\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"padding\" (OSSL_CIPHER_PARAM_PADDING) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the padding mode for the cipher context I. Padding is " "enabled if the value is 1, and disabled if the value is 0. See also " "B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"num\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"num\" (OSSL_CIPHER_PARAM_NUM) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the cipher specific \"num\" parameter for the cipher context " "I. Built-in ciphers typically use this to track how much of the " "current underlying block has been \"used\" already. See also " "B and B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the key length for the cipher context I. The length of " "the \"keylen\" parameter should not exceed that of a B. See also " "B and B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tag\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tag\" (OSSL_CIPHER_PARAM_AEAD_TAG) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the AEAD tag for the associated cipher context I. See " "\"AEAD INTERFACE\" in B\\|(3)." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"pipeline-tag\" (B) Eoctet ptrE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"pipeline-tag\" (OSSL_CIPHER_PARAM_PIPELINE_AEAD_TAG) Eoctet ptrE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the AEAD tag when using cipher pipelining. The pointer must " "point to an array of buffers, where the aead tag will be read from or " "written to. The array size must be equal to I used in " "\\&B or B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"keybits\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"keybits\" (OSSL_CIPHER_PARAM_RC2_KEYBITS) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the effective keybits used for a RC2 cipher. The length of the " "\"keybits\" parameter should not exceed that of a B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"rounds\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"rounds\" (OSSL_CIPHER_PARAM_ROUNDS) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the number of rounds to be used for a cipher. This is used by " "the RC5 cipher." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"algorithm-id\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"algorithm-id\" (OSSL_CIPHER_PARAM_ALGORITHM_ID) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Used to get the DER encoded AlgorithmIdentifier from the cipher " "implementation. Functions like B\\|(3) use this " "parameter." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"algorithm-id-params\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"algorithm-id-params\" (OSSL_CIPHER_PARAM_ALGORITHM_ID_PARAMS) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Used to pass the DER encoded AlgorithmIdentifier parameter to or from the " "cipher implementation. Functions like B\\|" "(3) and \\&B\\|(3) use this parameter." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"alg_id_params\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"alg_id_params\" (OSSL_CIPHER_PARAM_ALGORITHM_ID_PARAMS_OLD) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "An deprecated alias for \"algorithm-id-params\", only used by " "\\&B\\|(3) and B\\|(3)." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"cts_mode\" (B) EUTF8 stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"cts_mode\" (OSSL_CIPHER_PARAM_CTS_MODE) EUTF8 stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets or sets the cipher text stealing mode. For all modes the output size is " "the same as the input size. The input length must be greater than or equal " "to the block size. (The block size for AES and CAMELLIA is 16 bytes)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Valid values for the mode are:" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "CS1" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The NIST variant of cipher text stealing. For input lengths that are " "multiples of the block size it is equivalent to using a \"AES-XXX-CBC\" or " "\"CAMELLIA-XXX-CBC\" cipher otherwise the second last cipher text block is a " "partial block." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "CS2" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For input lengths that are multiples of the block size it is equivalent to " "using a \"AES-XXX-CBC\" or \"CAMELLIA-XXX-CBC\" cipher, otherwise it is the " "same as \"CS3\" mode." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "CS3" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The Kerberos5 variant of cipher text stealing which always swaps the last " "cipher text block with the previous block (which may be a partial or full " "block depending on the input length). If the input length is exactly one " "full block then this is equivalent to using a \"AES-XXX-CBC\" or \"CAMELLIA-" "XXX-CBC\" cipher." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The default is \"CS1\". This is only supported for \"AES-128-CBC-CTS\", " "\"AES-192-CBC-CTS\", \"AES-256-CBC-CTS\", \"CAMELLIA-128-CBC-CTS\", " "\"CAMELLIA-192-CBC-CTS\" and \"CAMELLIA-256-CBC-CTS\"." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_interleave\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_interleave\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_INTERLEAVE) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets or gets the number of records being sent in one go for a tls1 " "multiblock cipher operation (either 4 or 8 records)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Gettable EVP_CIPHER_CTX parameters" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following B\\|(3) keys can be used with " "B:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"ivlen\" (B and EB) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"ivlen\" (OSSL_CIPHER_PARAM_IVLEN and EOSSL_CIPHER_PARAM_AEAD_IVLEN) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the IV length for the cipher context I. The length of the " "\"ivlen\" parameter should not exceed that of a B. See also " "B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"iv\" (B) Eoctet string OR octet ptrE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"iv\" (OSSL_CIPHER_PARAM_IV) Eoctet string OR octet ptrE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the IV used to initialize the associated cipher context I. See " "also B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"updated-iv\" (B) Eoctet string OR octet ptrE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"updated-iv\" (OSSL_CIPHER_PARAM_UPDATED_IV) Eoctet string OR octet ptrE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the updated pseudo-IV state for the associated cipher context, e.g., " "the previous ciphertext block for CBC mode or the iteratively encrypted IV " "value for OFB mode. Note that octet pointer access is deprecated and is " "provided only for backwards compatibility with historical libcrypto APIs. " "See also B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"randkey\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"randkey\" (OSSL_CIPHER_PARAM_RANDOM_KEY) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets an implementation specific randomly generated key for the associated " "cipher context I. This is currently only supported by DES and 3DES " "(which set the key to odd parity)." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"taglen\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"taglen\" (OSSL_CIPHER_PARAM_AEAD_TAGLEN) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the tag length to be used for an AEAD cipher for the associated cipher " "context I. It gets a default value if it has not been set. The length " "of the \"taglen\" parameter should not exceed that of a B. See also " "B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsaadpad\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsaadpad\" (OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the length of the tag that will be added to a TLS record for the AEAD " "tag for the associated cipher context I. The length of the " "\"tlsaadpad\" parameter should not exceed that of a B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsivgen\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsivgen\" (OSSL_CIPHER_PARAM_AEAD_TLS1_GET_IV_GEN) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the invocation field generated for encryption. Can only be called " "after \"tlsivfixed\" is set. This is only used for GCM mode." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_enclen\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_enclen\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_ENC_LEN) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Get the total length of the record returned from the \"tls1multi_enc\" " "operation." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_maxbufsz\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_maxbufsz\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_MAX_BUFSIZE) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Gets the maximum record length for a TLS1 multiblock cipher operation. The " "length of the \"tls1multi_maxbufsz\" parameter should not exceed that of a " "B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_aadpacklen\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_aadpacklen\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_AAD_PACKLEN) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Gets the result of running the \"tls1multi_aad\" operation." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls-mac\" (B) Eoctet ptrE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls-mac\" (OSSL_CIPHER_PARAM_TLS_MAC) Eoctet ptrE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Used to pass the TLS MAC data." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"fips-indicator\" (B) EintegerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"fips-indicator\" (OSSL_CIPHER_PARAM_FIPS_APPROVED_INDICATOR) EintegerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "This option is used by the OpenSSL FIPS provider." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "A getter that returns 1 if the operation is FIPS approved, or 0 otherwise. " "This may be used after calling a cipher final operation such as " "\\&B. It may return 0 if the \"encrypt-check\" option " "is set to 0." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"iv-generated\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"iv-generated\" (OSSL_CIPHER_PARAM_AEAD_IV_GENERATED) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "An indicator that returns 1 if an IV was generated internally during " "encryption, or O otherwise. This may be used by GCM ciphers after calling a " "cipher final operation such as B. GCM should " "generate an IV internally if the IV is not specified during a cipher " "initialisation call such as B. See FIPS 140-3 IG C.H " "for information related to IV requirements." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Settable EVP_CIPHER_CTX parameters" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following B\\|(3) keys can be used with " "B:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"mackey\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"mackey\" (OSSL_CIPHER_PARAM_AEAD_MAC_KEY) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the MAC key used by composite AEAD ciphers such as AES-CBC-HMAC-SHA256." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"speed\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"speed\" (OSSL_CIPHER_PARAM_SPEED) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the speed option for the associated cipher context. This is only " "supported by AES SIV ciphers which disallow multiple operations by default. " "Setting \"speed\" to 1 allows another encrypt or decrypt operation to be " "performed. This is used for performance testing." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"use-bits\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"use-bits\" (OSSL_CIPHER_PARAM_USE_BITS) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Determines if the input length I passed to B, " "\\&B and B is the number of bits or " "number of bytes. Setting \"use-bits\" to 1 uses bits. The default is in " "bytes. This is only used for B ciphers." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This can be set using EVP_CIPHER_CTX_set_flags(ctx, " "EVP_CIPH_FLAG_LENGTH_BITS)." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls-version\" (B) EintegerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls-version\" (OSSL_CIPHER_PARAM_TLS_VERSION) EintegerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Sets the TLS version." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls-mac-size\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls-mac-size\" (OSSL_CIPHER_PARAM_TLS_MAC_SIZE) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Set the TLS MAC size." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsaad\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsaad\" (OSSL_CIPHER_PARAM_AEAD_TLS1_AAD) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets TLSv1.2 AAD information for the associated cipher context I. " "TLSv1.2 AAD information is always 13 bytes in length and is as defined for " "the \"additional_data\" field described in section 6.2.3.3 of RFC5246." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsivfixed\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsivfixed\" (OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the fixed portion of an IV for an AEAD cipher used in a TLS record " "encryption/ decryption for the associated cipher context. TLS record " "encryption/decryption always occurs \"in place\" so that the input and " "output buffers are always the same memory location. AEAD IVs in TLSv1.2 " "consist of an implicit \"fixed\" part and an explicit part that varies with " "every record. Setting a TLS fixed IV changes a cipher to encrypt/decrypt " "TLS records. TLS records are encrypted/decrypted using a single " "OSSL_FUNC_cipher_cipher call per record. For a record decryption the first " "bytes of the input buffer will be the explicit part of the IV and the final " "bytes of the input buffer will be the AEAD tag. The length of the explicit " "part of the IV and the tag length will depend on the cipher in use and will " "be defined in the RFC for the relevant ciphersuite. In order to allow for " "\"in place\" decryption the plaintext output should be written to the same " "location in the output buffer that the ciphertext payload was read from, " "i.e. immediately after the explicit IV." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When encrypting a record the first bytes of the input buffer should be empty " "to allow space for the explicit IV, as will the final bytes where the tag " "will be written. The length of the input buffer will include the length of " "the explicit IV, the payload, and the tag bytes. The cipher implementation " "should generate the explicit IV and write it to the beginning of the output " "buffer, do \"in place\" encryption of the payload and write that to the " "output buffer, and finally add the tag onto the end of the output buffer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Whether encrypting or decrypting the value written to I<*outl> in the " "OSSL_FUNC_cipher_cipher call should be the length of the payload excluding " "the explicit IV length and the tag length." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsivinv\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tlsivinv\" (OSSL_CIPHER_PARAM_AEAD_TLS1_SET_IV_INV) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the invocation field used for decryption. Can only be called after " "\"tlsivfixed\" is set. This is only used for GCM mode." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_enc\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_enc\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_ENC) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Triggers a multiblock TLS1 encrypt operation for a TLS1 aware cipher that " "supports sending 4 or 8 records in one go. The cipher performs both the MAC " "and encrypt stages and constructs the record headers itself. " "\"tls1multi_enc\" supplies the output buffer for the encrypt operation, " "\"tls1multi_encin\" & \"tls1multi_interleave\" must also be set in order to " "supply values to the encrypt operation." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_encin\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_encin\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_ENC_IN) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Supplies the data to encrypt for a TLS1 multiblock cipher operation." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_maxsndfrag\" (B) Eunsigned integerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_maxsndfrag\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_MAX_SEND_FRAGMENT) Eunsigned integerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the maximum send fragment size for a TLS1 multiblock cipher operation. " "It must be set before using \"tls1multi_maxbufsz\". The length of the " "\"tls1multi_maxsndfrag\" parameter should not exceed that of a B." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_aad\" (B) Eoctet stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"tls1multi_aad\" (OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_AAD) Eoctet stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the authenticated additional data used by a TLS1 multiblock cipher " "operation. The supplied data consists of 13 bytes of record data " "containing: Bytes 0-7: The sequence number of the first record Byte 8: The " "record type Byte 9-10: The protocol version Byte 11-12: Input length (Always " "0)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\"tls1multi_interleave\" must also be set for this operation." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"xts_standard\" (B) EUTF8 stringE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"xts_standard\" (OSSL_CIPHER_PARAM_XTS_STANDARD) EUTF8 stringE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the XTS standard to use with SM4-XTS algorithm. XTS mode has two " "implementations, one is standardized in IEEE Std. 1619-2007 and has been " "widely used (e.g., XTS AES), the other is proposed recently (GB/T 17964-2021 " "implemented in May 2022) and is currently only used in SM4." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The main difference between them is the multiplication by the primitive " "element α to calculate the tweak values. The IEEE Std 1619-2007 noted that " "the multiplication \"is a left shift of each byte by one bit with carry " "propagating from one byte to the next one\", which means that in each byte, " "the leftmost bit is the most significant bit. But in GB/T 17964-2021, the " "rightmost bit is the most significant bit, thus the multiplication becomes a " "right shift of each byte by one bit with carry propagating from one byte to " "the next one." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "GB" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The GB/T 17964-2021 variant of SM4-XTS algorithm." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "IEEE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The IEEE Std. 1619-2007 variant of SM4-XTS algorithm." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The default value is \"GB\"." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"encrypt-check\" (B) EintegerE" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\"encrypt-check\" (OSSL_CIPHER_PARAM_FIPS_ENCRYPT_CHECK) EintegerE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If required this parameter should be set early via an cipher encrypt init " "function such as B. The default value of 1 causes an " "error when an encryption operation is triggered. Setting this to 0 will " "ignore the error and set the approved \"fips-indicator\" to 0. This option " "breaks FIPS compliance if it causes the approved \"fips-indicator\" to " "return 0." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "CONTROLS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The Mappings from B identifiers to PARAMETERS are " "listed in the following section. See the \"PARAMETERS\" section for more " "details." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B can be used to send the following standard " "controls:" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_AEAD_SET_IVLEN and EVP_CTRL_GET_IVLEN" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B and " "\\&B get called with an B\\|(3) " "item with the key \"ivlen\" (B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_AEAD_SET_IV_FIXED" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with an B\\|(3) item with the key \"tlsivfixed\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_AEAD_SET_MAC_KEY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with an B\\|(3) item with the key \"mackey\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_AEAD_SET_TAG and EVP_CTRL_AEAD_GET_TAG" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B and " "\\&B get called with an B\\|(3) " "item with the key \"tag\" (B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_CCM_SET_L" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with an B\\|(3) item with the key \"ivlen\" " "(B) with a value of (15 - L)" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_COPY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "There is no OSSL_PARAM mapping for this. Use B " "instead." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_GCM_SET_IV_INV" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with an B\\|(3) item with the key \"tlsivinv\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_RAND_KEY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with an B\\|(3) item with the key \"randkey\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_SET_KEY_LENGTH" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with an B\\|(3) item with the key \"keylen\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_SET_RC2_KEY_BITS and EVP_CTRL_GET_RC2_KEY_BITS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B and " "\\&B get called with an B\\|(3) " "item with the key \"keybits\" (B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_SET_RC5_ROUNDS and EVP_CTRL_GET_RC5_ROUNDS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B and " "\\&B get called with an B\\|(3) " "item with the key \"rounds\" (B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_SET_SPEED" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with an B\\|(3) item with the key \"speed\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_GCM_IV_GEN" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with an B\\|(3) item with the key \"tlsivgen\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_AEAD_TLS1_AAD" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B get " "called with an B\\|(3) item with the key \"tlsaad\" " "(B) followed by " "B with a key of \"tlsaadpad\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, \\&B " "gets called with an B\\|(3) item with the key " "OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_MAX_SEND_FRAGMENT followed by " "B with a key of \"tls1multi_maxbufsz\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_TLS1_1_MULTIBLOCK_AAD" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with B\\|(3) items with the keys \"tls1multi_aad\" " "(B) and \"tls1multi_interleave\" " "(B) followed by " "B with keys of \"tls1multi_aadpacklen\" " "(B) and " "\"tls1multi_interleave\" (B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a fetched B, B gets " "called with B\\|(3) items with the keys \"tls1multi_enc\" " "(B), \"tls1multi_encin\" " "(B) and \"tls1multi_interleave\" " "(B), followed by " "B with a key of \"tls1multi_enclen\" " "(B)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "FLAGS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B and " "B. can be used to manipulate and test these " "B flags:" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_NO_PADDING" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Used by B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "See also \"Gettable and Settable EVP_CIPHER_CTX parameters\" \"padding\"" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_FLAG_LENGTH_BITS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "See \"Settable EVP_CIPHER_CTX parameters\" \"use-bits\"." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_FLAG_WRAP_ALLOW" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Used for Legacy purposes only. This flag needed to be set to indicate the " "cipher handled wrapping." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B uses the following flags that have mappings to " "\"Gettable EVP_CIPHER parameters\":" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_FLAG_AEAD_CIPHER" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "See \"Gettable EVP_CIPHER parameters\" \"aead\"." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_CUSTOM_IV" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "See \"Gettable EVP_CIPHER parameters\" \"custom-iv\"." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_FLAG_CTS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "See \"Gettable EVP_CIPHER parameters\" \"cts\"." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK;" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "See \"Gettable EVP_CIPHER parameters\" \"tls-multi\"." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_RAND_KEY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "See \"Gettable EVP_CIPHER parameters\" \"has-randkey\"." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B uses the following flags for legacy purposes only:" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_VARIABLE_LENGTH" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_FLAG_CUSTOM_CIPHER" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_ALWAYS_CALL_INIT" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_CTRL_INIT" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_CUSTOM_KEY_LENGTH" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_CUSTOM_COPY" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPH_FLAG_DEFAULT_ASN1" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "See B\\|(3) for further information related to " "the above flags." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns a pointer to a B for success " "and NULL for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns 1 for success or 0 otherwise." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns a pointer to a newly created " "\\&B for success and NULL for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns a new EVP_CIPHER_CTX if successful or " "NULL on failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns 1 if successful or 0 for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B and " "B return 1 for success and 0 for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B return 1 for success " "and 0 for failure. \\&B returns 0 if the decrypt " "failed or 1 for success." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B and " "B return 1 for success and 0 for failure. " "\\&B returns 0 for an encryption/decryption failure or " "1 for success." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns 1 on success and E= 0 on failure, if the flag " "\\&B is not set for the cipher, or if the " "cipher has not been initialized via a call to B. " "\\&B returns the number of bytes written to I for " "encryption/decryption, or the number of bytes authenticated in a call " "specifying AAD for an AEAD cipher, if the flag " "B is set for the cipher." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns 1 if the cipher can be used in a " "pipeline, 0 otherwise." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B " "return 1 for success and 0 for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B return 1 " "for success and 0 for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns 1 for success and 0 for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B and " "B return an B structure or NULL on error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B return a NID." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B " "return the block size, or 0 on error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B " "return the key length." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B always returns 1." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B " "return the IV length, zero if the cipher does not use an IV and a negative " "value on error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B return the tag length or zero if the " "cipher does not use a tag." msgstr "" #. type: Plain text #: archlinux msgid "" "\\&B and B return the NID " "of the cipher\\*(Aqs OBJECT IDENTIFIER or NID_undef if it has no defined " "OBJECT IDENTIFIER." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns an B structure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns a nonnegative num value or " "\\&B if the implementation does not support the " "call or on any other error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns 1 on success and 0 if the " "implementation does not support the call or on any other error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns 1 if the I is set up for " "encryption 0 otherwise." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B return " "greater than zero for success and zero or a negative number on failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns 1 for success and zero or a negative " "number for failure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns 1 if the callback was called for all " "names. A return value of 0 means that the callback was not called for any " "names." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B and " "\\&B return 1 for success and 0 for failure." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "CIPHER LISTING" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "All algorithms have a fixed key length unless otherwise stated." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Refer to \"SEE ALSO\" for the full list of ciphers available through the EVP " "interface." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "B" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_enc_null()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Null cipher: does nothing." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "AEAD INTERFACE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The EVP interface for Authenticated Encryption with Associated Data (AEAD) " "modes are subtly altered and several additional I operations are " "supported depending on the mode specified." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "To specify additional authenticated data (AAD), a call to " "B, \\&B or B " "should be made with the output parameter I set to NULL. In this case, " "on success, the parameter \\&I is set to the number of AAD bytes " "processed in that call (that is, the value of I), and does not include " "any plaintext or ciphertext bytes processed by other calls." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If no AAD is used, this call can be omitted. See the mode-specific notes " "below for any exceptions." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When decrypting, the return value of B or " "B indicates whether the operation was successful. If it " "does not indicate success, the authentication operation has failed and any " "output data B be used as it is corrupted." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Please note that the number of authenticated bytes returned by " "\\&B depends on the cipher used. Stream ciphers, such as " "ChaCha20 or ciphers in GCM mode, can handle 1 byte at a time, resulting in " "an effective \"block\" size of 1. Conversely, ciphers in OCB mode must " "process data one block at a time, and the block size is returned." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Regardless of the returned size, it is safe to pass unpadded data to an " "\\&B call in a single operation." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "GCM and OCB Modes" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The following Is are supported in GCM and OCB modes." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, ivlen, NULL)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the IV length. This call can only be made before specifying an IV. If " "not called a default IV length is used." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For GCM AES and OCB AES the default is 12 (i.e. 96 bits). For OCB mode the " "maximum is 15." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Writes CW<\\*(C`taglen\\*(C'> bytes of the tag value to the buffer indicated " "by CW<\\*(C`tag\\*(C'>. This call can only be made when encrypting data and " "B all data has been processed (e.g. after an B " "call)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For OCB, CW<\\*(C`taglen\\*(C'> must either be 16 or the value previously " "set via \\&B." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, taglen, tag)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When decrypting, this call sets the expected tag to CW<\\*(C`taglen\\*(C'> " "bytes from CW<\\*(C`tag\\*(C'>. \\&CW<\\*(C`taglen\\*(C'> must be between 1 " "and 16 inclusive. The tag must be set prior to any call to " "B or \\&B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "For GCM, this call is only valid when decrypting data." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For OCB, this call is valid when decrypting data to set the expected tag, " "and when encrypting to set the desired tag length." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In OCB mode, calling this with CW<\\*(C`tag\\*(C'> set to " "CW<\\*(C`NULL\\*(C'> sets the tag length. The tag length can only be set " "before specifying an IV. If this is not called prior to setting the IV, then " "a default tag length is used." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For OCB AES, the default tag length is 16 (i.e. 128 bits). It is also the " "maximum tag length for OCB." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "CCM Mode" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The EVP interface for CCM mode is similar to that of the GCM mode but with a " "few additional requirements and different I values." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For CCM mode, the total plaintext or ciphertext length B be passed to " "\\&B, B or B " "with the output and input parameters (I and I) set to NULL and the " "length passed in the I parameter." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The following Is are supported in CCM mode." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This call is made to set the expected B tag value when decrypting or " "the length of the tag (with the CW<\\*(C`tag\\*(C'> parameter set to NULL) " "when encrypting. The tag length is often referred to as B. If not set a " "default value is used (12 for AES). When decrypting, the tag needs to be set " "before passing in data to be decrypted, but as in GCM and OCB mode, it can " "be set after passing additional authenticated data (see \"AEAD INTERFACE\")." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_CCM_SET_L, ivlen, NULL)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Sets the CCM B value. If not set a default is used (8 for AES)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the CCM nonce (IV) length. This call can only be made before specifying " "a nonce value. The nonce length is given by B<15 - L> so it is 7 by default " "for AES." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SIV Mode" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Both the AES-SIV and AES-GCM-SIV ciphers fall under this mode." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For SIV mode ciphers the behaviour of the EVP interface is subtly altered " "and several additional ctrl operations are supported." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "To specify any additional authenticated data (AAD) and/or a Nonce, a call to " "\\&B, B or B " "should be made with the output parameter I set to NULL." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "RFC5297 states that the Nonce is the last piece of AAD before the actual " "encrypt/decrypt takes place. The API does not differentiate the Nonce from " "other AAD." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When decrypting the return value of B or " "B indicates if the operation was successful. If it does " "not indicate success the authentication operation has failed and any output " "data B be used as it is corrupted." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The API does not store the SIV (Synthetic Initialization Vector) in the " "cipher text. Instead, it is stored as the tag within the EVP_CIPHER_CTX. " "The SIV must be retrieved from the context after encryption, and set into " "the context before decryption." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This differs from RFC5297 in that the cipher output from encryption, and the " "cipher input to decryption, does not contain the SIV. This also means that " "the plain text and cipher text lengths are identical." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following ctrls are supported in SIV mode, and are used to get and set " "the Synthetic Initialization Vector:" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag);" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Writes I bytes of the tag value (the Synthetic Initialization " "Vector) to the buffer indicated by I. This call can only be made when " "encrypting data and B all data has been processed (e.g. after an " "B call). For SIV mode the taglen must be 16." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, taglen, tag);" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the expected tag (the Synthetic Initialization Vector) to I " "bytes from I. This call is only legal when decrypting data and must be " "made B any data is processed (e.g. before any B " "calls). For SIV mode the taglen must be 16." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "SIV mode makes two passes over the input data, thus, only one call to " "\\&B, B or B " "should be made with I set to a non-NULL value. A call to " "B or \\&B is not required, but will " "indicate if the update operation succeeded." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "ChaCha20-Poly1305" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following Is are supported for the ChaCha20-Poly1305 AEAD " "algorithm." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the nonce length. This call is now redundant since the only valid value " "is the default length of 12 (i.e. 96 bits). Prior to OpenSSL 3.0 a nonce of " "less than 12 bytes could be used to automatically pad the iv with leading 0 " "bytes to make it 12 bytes in length." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&CW<\\*(C`taglen\\*(C'> specified here must be 16 (B, " "i.e. 128-bits) or less." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sets the expected tag to CW<\\*(C`taglen\\*(C'> bytes from " "CW<\\*(C`tag\\*(C'>. The tag length can only be set before specifying an " "IV. \\&CW<\\*(C`taglen\\*(C'> must be between 1 and 16 " "(B) inclusive. This call is only valid when decrypting " "data." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Where possible the B interface to symmetric ciphers should be used in " "preference to the low-level interfaces. This is because the code then " "becomes transparent to the cipher used and much more flexible. Additionally, " "the \\&B interface will ensure the use of platform specific " "cryptographic acceleration such as AES-NI (the low-level interfaces do not " "provide the guarantee)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "PKCS padding works by adding B padding bytes of value B to make the " "total length of the encrypted data a multiple of the block size. Padding is " "always added so if the data is already a multiple of the block size B " "will equal the block size. For example if the block size is 8 and 11 bytes " "are to be encrypted then 5 padding bytes of value 5 will be added." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When decrypting the final block is checked to see if it has the correct form." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Although the decryption operation can produce an error if padding is " "enabled, it is not a strong test that the input data or key is correct. A " "random block has better than 1 in 256 chance of being of the correct format " "and problems with the input data earlier on will not produce a final decrypt " "error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If padding is disabled then the decryption operation will always succeed if " "the total amount of data decrypted is a multiple of the block size." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The functions B, B, " "\\&B, B, B, " "\\&B, B and B are " "obsolete but are retained for compatibility with existing code. New code " "should use B, B, " "B, \\&B, " "B and B because they can reuse " "an existing context without allocating and freeing it up on each call." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "There are some differences between functions B and " "\\&B, significant in some circumstances. " "B fills the passed context object with zeros. As a " "consequence, B does not allow step-by-step initialization " "of the ctx when the I and I are passed in separate calls. It also " "means that the flags set for the CTX are removed, and it is especially " "important for the \\&B flag treated " "specially in \\&B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Ignoring failure returns of the B initialization functions " "can lead to subsequent undefined behavior when calling the functions that " "update or finalize the context. The only valid calls on the " "B when initialization fails are calls that attempt another " "initialization of the context or release the context." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, and B are implemented as " "macros." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "BUGS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B only refer to the internal " "ciphers with default key lengths. If custom ciphers exceed these values the " "results are unpredictable. This is because it has become standard practice " "to define a generic key as a fixed unsigned char array containing " "\\&B bytes." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The ASN1 code is incomplete (and sometimes inaccurate) it has only been " "tested for certain common S/MIME ciphers (RC2, DES, triple DES) in CBC mode." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Encrypt a string using IDEA:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int do_crypt(char *outfile)\n" "\\& {\n" "\\& unsigned char outbuf[1024];\n" "\\& int outlen, tmplen;\n" "\\& /*\n" "\\& * Bogus key and IV: we\\*(Aqd normally set these from\n" "\\& * another source.\n" "\\& */\n" "\\& unsigned char key[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};\n" "\\& unsigned char iv[] = {1,2,3,4,5,6,7,8};\n" "\\& char intext[] = \"Some Crypto Text\";\n" "\\& EVP_CIPHER_CTX *ctx;\n" "\\& FILE *out;\n" "\\&\n" "\\& ctx = EVP_CIPHER_CTX_new();\n" "\\& if (!EVP_EncryptInit_ex2(ctx, EVP_idea_cbc(), key, iv, NULL)) {\n" "\\& /* Error */\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return 0;\n" "\\& }\n" "\\&\n" "\\& if (!EVP_EncryptUpdate(ctx, outbuf, &outlen, intext, strlen(intext))) {\n" "\\& /* Error */\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return 0;\n" "\\& }\n" "\\& /*\n" "\\& * Buffer passed to EVP_EncryptFinal() must be after data just\n" "\\& * encrypted to avoid overwriting it.\n" "\\& */\n" "\\& if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) {\n" "\\& /* Error */\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return 0;\n" "\\& }\n" "\\& outlen += tmplen;\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& /*\n" "\\& * Need binary mode for fopen because encrypted data is\n" "\\& * binary data. Also cannot use strlen() on it because\n" "\\& * it won\\*(Aqt be NUL terminated and may contain embedded\n" "\\& * NULs.\n" "\\& */\n" "\\& out = fopen(outfile, \"wb\");\n" "\\& if (out == NULL) {\n" "\\& /* Error */\n" "\\& return 0;\n" "\\& }\n" "\\& fwrite(outbuf, 1, outlen, out);\n" "\\& fclose(out);\n" "\\& return 1;\n" "\\& }\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The ciphertext from the above example can be decrypted using the B " "utility with the command line (shown on two lines for clarity):" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& openssl idea -d \\e\n" "\\& -K 000102030405060708090A0B0C0D0E0F -iv 0102030405060708 Efilename\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "General encryption and decryption function example using FILE I/O and AES128 " "with a 128-bit key:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int do_crypt(FILE *in, FILE *out, int do_encrypt)\n" "\\& {\n" "\\& /* Allow enough space in output buffer for additional block */\n" "\\& unsigned char inbuf[1024], outbuf[1024 + EVP_MAX_BLOCK_LENGTH];\n" "\\& int inlen, outlen;\n" "\\& EVP_CIPHER_CTX *ctx;\n" "\\& /*\n" "\\& * Bogus key and IV: we\\*(Aqd normally set these from\n" "\\& * another source.\n" "\\& */\n" "\\& unsigned char key[] = \"0123456789abcdeF\";\n" "\\& unsigned char iv[] = \"1234567887654321\";\n" "\\&\n" "\\& /* Don\\*(Aqt set key or IV right away; we want to check lengths */\n" "\\& ctx = EVP_CIPHER_CTX_new();\n" "\\& if (!EVP_CipherInit_ex2(ctx, EVP_aes_128_cbc(), NULL, NULL,\n" "\\& do_encrypt, NULL)) {\n" "\\& /* Error */\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return 0;\n" "\\& }\n" "\\& OPENSSL_assert(EVP_CIPHER_CTX_get_key_length(ctx) == 16);\n" "\\& OPENSSL_assert(EVP_CIPHER_CTX_get_iv_length(ctx) == 16);\n" "\\&\n" "\\& /* Now we can set key and IV */\n" "\\& if (!EVP_CipherInit_ex2(ctx, NULL, key, iv, do_encrypt, NULL)) {\n" "\\& /* Error */\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return 0;\n" "\\& }\n" "\\&\n" "\\& for (;;) {\n" "\\& inlen = fread(inbuf, 1, 1024, in);\n" "\\& if (inlen E= 0)\n" "\\& break;\n" "\\& if (!EVP_CipherUpdate(ctx, outbuf, &outlen, inbuf, inlen)) {\n" "\\& /* Error */\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return 0;\n" "\\& }\n" "\\& fwrite(outbuf, 1, outlen, out);\n" "\\& }\n" "\\& if (!EVP_CipherFinal_ex(ctx, outbuf, &outlen)) {\n" "\\& /* Error */\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return 0;\n" "\\& }\n" "\\& fwrite(outbuf, 1, outlen, out);\n" "\\&\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return 1;\n" "\\& }\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Encryption using AES-CBC with a 256-bit key with \"CS1\" ciphertext stealing." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int encrypt(const unsigned char *key, const unsigned char *iv,\n" "\\& const unsigned char *msg, size_t msg_len, unsigned char *out)\n" "\\& {\n" "\\& /*\n" "\\& * This assumes that key size is 32 bytes and the iv is 16 bytes.\n" "\\& * For ciphertext stealing mode the length of the ciphertext \"out\" will be\n" "\\& * the same size as the plaintext size \"msg_len\".\n" "\\& * The \"msg_len\" can be any size E= 16.\n" "\\& */\n" "\\& int ret = 0, encrypt = 1, outlen, len;\n" "\\& EVP_CIPHER_CTX *ctx = NULL;\n" "\\& EVP_CIPHER *cipher = NULL;\n" "\\& OSSL_PARAM params[2];\n" "\\&\n" "\\& ctx = EVP_CIPHER_CTX_new();\n" "\\& cipher = EVP_CIPHER_fetch(NULL, \"AES-256-CBC-CTS\", NULL);\n" "\\& if (ctx == NULL || cipher == NULL)\n" "\\& goto err;\n" "\\&\n" "\\& /*\n" "\\& * The default is \"CS1\" so this is not really needed,\n" "\\& * but would be needed to set either \"CS2\" or \"CS3\".\n" "\\& */\n" "\\& params[0] = OSSL_PARAM_construct_utf8_string(OSSL_CIPHER_PARAM_CTS_MODE,\n" "\\& \"CS1\", 0);\n" "\\& params[1] = OSSL_PARAM_construct_end();\n" "\\&\n" "\\& if (!EVP_CipherInit_ex2(ctx, cipher, key, iv, encrypt, params))\n" "\\& goto err;\n" "\\&\n" "\\& /* NOTE: CTS mode does not support multiple calls to EVP_CipherUpdate() */\n" "\\& if (!EVP_CipherUpdate(ctx, out, &outlen, msg, msg_len))\n" "\\& goto err;\n" "\\& if (!EVP_CipherFinal_ex(ctx, out + outlen, &len))\n" "\\& goto err;\n" "\\& ret = 1;\n" "\\& err:\n" "\\& EVP_CIPHER_free(cipher);\n" "\\& EVP_CIPHER_CTX_free(ctx);\n" "\\& return ret;\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\\|(7), \\&B\\|(7), \"ALGORITHM FETCHING\" in B\\|" "(7), \\&B\\|(7), \\&B\\|(7)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Supported ciphers are listed in:" 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), \\&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 "Support for OCB mode was added in OpenSSL 1.1.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B was made opaque in OpenSSL 1.1.0. As a result, " "\\&B appeared and B " "disappeared. B remains as an alias for " "\\&B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function was deprecated in OpenSSL 3.0; use " "\\&B instead." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B, B, " "B, \\&B, B, " "B, \\&B, " "B, \\&B, " "B, \\&B, " "B, \\&B, " "B, \\&B " "and B functions were added in 3.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B, B, B, " "\\&B, B, " "B, \\&B, B, " "B, \\&B, " "B, \\&B, " "B, \\&B, " "B, and B functions were " "renamed to include CW<\\*(C`get\\*(C'> or CW<\\*(C`get0\\*(C'> in their " "names in OpenSSL 3.0, respectively. The old names are kept as non-deprecated " "alias macros." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function was renamed to " "\\&B in OpenSSL 3.0. The old name is kept as " "non-deprecated alias macro." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The B macro was deprecated in OpenSSL 1.1.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B was added in OpenSSL 3.2." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B was added in OpenSSL 3.5." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Prior to OpenSSL 3.5, passing a NULL I to " "\\&B would result in a NULL pointer " "dereference, rather than a 0 return value indicating an error." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2000-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_ENCRYPTINIT 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Get a constant B\\|(3) array that describes the retrievable " "parameters that can be used with B. " "\\&B returns the parameters that can be " "retrieved from the algorithm, whereas B " "returns the parameters that can be retrieved in the context's current state." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Get a constant B\\|(3) array that describes the settable " "parameters that can be used with B. " "\\&B returns the parameters that can be " "set from the algorithm, whereas B returns " "the parameters that can be set in the context's current state." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "These functions can be used for decryption or encryption. The operation " "performed depends on the value of the I parameter. It should be set to " "1 for encryption, 0 for decryption and -1 to leave the value unchanged (the " "actual value of 'enc' being supplied in a previous call)." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "For legacy ciphers - If the cipher doesn't have the flag " "\\&B set, then I must be a multiple of " "\\&B. If it isn't, the result is undefined. " "If the cipher has that flag set, then I can be any size." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Due to the constraints of the API contract of this function it shouldn't be " "used in applications, please consider using B and " "\\&B instead." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Returns 1 if I is an implementation of an algorithm that's " "identifiable with I, otherwise 0. If I is a legacy cipher " "(it's the return value from the likes of B rather than the " "result of an \\&B), only cipher names registered with " "the default library context (see B\\|(3)) will be considered." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "\\&B and B return the NID " "of the cipher's OBJECT IDENTIFIER or NID_undef if it has no defined OBJECT " "IDENTIFIER." msgstr ""