sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget'/translations/zh_CN/crypto/api-skciphermodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/zh_TW/crypto/api-skciphermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/it_IT/crypto/api-skciphermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ja_JP/crypto/api-skciphermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ko_KR/crypto/api-skciphermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/sp_SP/crypto/api-skciphermodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h"Block Cipher Algorithm Definitionsh]h"Block Cipher Algorithm Definitions}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhA/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher.rsthKubh paragraph)}(hThese data structures define modular crypto algorithm implementations, managed via crypto_register_alg() and crypto_unregister_alg().h]hThese data structures define modular crypto algorithm implementations, managed via crypto_register_alg() and crypto_unregister_alg().}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:4: ./include/linux/crypto.hhKhhhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlecipher_alg (C struct) c.cipher_alghNtauh1hhhhhhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhNubhdesc)}(hhh](hdesc_signature)}(h cipher_algh]hdesc_signature_line)}(hstruct cipher_algh](hdesc_sig_keyword)}(hstructh]hstruct}(hhhhhNhNubah}(h]h ]kah"]h$]h&]uh1hhhhhhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKubhdesc_sig_space)}(h h]h }(hhhhhNhNubah}(h]h ]wah"]h$]h&]uh1hhhhhhhhKubh desc_name)}(h cipher_algh]h desc_sig_name)}(hhh]h cipher_alg}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jhhhhhhhKubeh}(h]h ]h"]h$]h&]j,j- add_permalinkuh1hsphinx_line_type declaratorhhhhhhhKubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhhhKhhhhubh desc_content)}(hhh]h)}(h)single-block symmetric ciphers definitionh]h)single-block symmetric ciphers definition}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjDhhubah}(h]h ]h"]h$]h&]uh1jBhhhhhhhKubeh}(h]h ](cstructeh"]h$]h&]domainj_objtypej`desctypej`noindex noindexentrynocontentsentryuh1hhhhhhhhNubh container)}(hX **Definition**:: struct cipher_alg { unsigned int cia_min_keysize; unsigned int cia_max_keysize; int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); }; **Members** ``cia_min_keysize`` Minimum key size supported by the transformation. This is the smallest key length supported by this transformation algorithm. This must be set to one of the pre-defined values as this is not hardware specific. Possible values for this field can be found via git grep "_MIN_KEY_SIZE" include/crypto/ ``cia_max_keysize`` Maximum key size supported by the transformation. This is the largest key length supported by this transformation algorithm. This must be set to one of the pre-defined values as this is not hardware specific. Possible values for this field can be found via git grep "_MAX_KEY_SIZE" include/crypto/ ``cia_setkey`` Set key for the transformation. This function is used to either program a supplied key into the hardware or store the key in the transformation context for programming it later. Note that this function does modify the transformation context. This function can be called multiple times during the existence of the transformation object, so one must make sure the key is properly reprogrammed into the hardware. This function is also responsible for checking the key length for validity. ``cia_encrypt`` Encrypt a single block. This function is used to encrypt a single block of data, which must be **cra_blocksize** big. This always operates on a full **cra_blocksize** and it is not possible to encrypt a block of smaller size. The supplied buffers must therefore also be at least of **cra_blocksize** size. Both the input and output buffers are always aligned to **cra_alignmask**. In case either of the input or output buffer supplied by user of the crypto API is not aligned to **cra_alignmask**, the crypto API will re-align the buffers. The re-alignment means that a new buffer will be allocated, the data will be copied into the new buffer, then the processing will happen on the new buffer, then the data will be copied back into the original buffer and finally the new buffer will be freed. In case a software fallback was put in place in the **cra_init** call, this function might need to use the fallback if the algorithm doesn't support all of the key sizes. In case the key was stored in transformation context, the key might need to be re-programmed into the hardware in this function. This function shall not modify the transformation context, as this function may be called in parallel with the same transformation object. ``cia_decrypt`` Decrypt a single block. This is a reverse counterpart to **cia_encrypt**, and the conditions are exactly the same.h](h)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjpubh:}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjlubh literal_block)}(hX?struct cipher_alg { unsigned int cia_min_keysize; unsigned int cia_max_keysize; int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); };h]hX?struct cipher_alg { unsigned int cia_min_keysize; unsigned int cia_max_keysize; int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); };}hjsbah}(h]h ]h"]h$]h&]j,j-uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjlubh)}(h **Members**h]ju)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjlubhdefinition_list)}(hhh](hdefinition_list_item)}(hX?``cia_min_keysize`` Minimum key size supported by the transformation. This is the smallest key length supported by this transformation algorithm. This must be set to one of the pre-defined values as this is not hardware specific. Possible values for this field can be found via git grep "_MIN_KEY_SIZE" include/crypto/ h](hterm)}(h``cia_min_keysize``h]hliteral)}(hjh]hcia_min_keysize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjubh definition)}(hhh]h)}(hX*Minimum key size supported by the transformation. This is the smallest key length supported by this transformation algorithm. This must be set to one of the pre-defined values as this is not hardware specific. Possible values for this field can be found via git grep "_MIN_KEY_SIZE" include/crypto/h]hX.Minimum key size supported by the transformation. This is the smallest key length supported by this transformation algorithm. This must be set to one of the pre-defined values as this is not hardware specific. Possible values for this field can be found via git grep “_MIN_KEY_SIZE” include/crypto/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hX>``cia_max_keysize`` Maximum key size supported by the transformation. This is the largest key length supported by this transformation algorithm. This must be set to one of the pre-defined values as this is not hardware specific. Possible values for this field can be found via git grep "_MAX_KEY_SIZE" include/crypto/ h](j)}(h``cia_max_keysize``h]j)}(hjh]hcia_max_keysize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjubj)}(hhh]h)}(hX)Maximum key size supported by the transformation. This is the largest key length supported by this transformation algorithm. This must be set to one of the pre-defined values as this is not hardware specific. Possible values for this field can be found via git grep "_MAX_KEY_SIZE" include/crypto/h]hX-Maximum key size supported by the transformation. This is the largest key length supported by this transformation algorithm. This must be set to one of the pre-defined values as this is not hardware specific. Possible values for this field can be found via git grep “_MAX_KEY_SIZE” include/crypto/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hX``cia_setkey`` Set key for the transformation. This function is used to either program a supplied key into the hardware or store the key in the transformation context for programming it later. Note that this function does modify the transformation context. This function can be called multiple times during the existence of the transformation object, so one must make sure the key is properly reprogrammed into the hardware. This function is also responsible for checking the key length for validity. h](j)}(h``cia_setkey``h]j)}(hj?h]h cia_setkey}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhj9ubj)}(hhh]h)}(hXSet key for the transformation. This function is used to either program a supplied key into the hardware or store the key in the transformation context for programming it later. Note that this function does modify the transformation context. This function can be called multiple times during the existence of the transformation object, so one must make sure the key is properly reprogrammed into the hardware. This function is also responsible for checking the key length for validity.h]hXSet key for the transformation. This function is used to either program a supplied key into the hardware or store the key in the transformation context for programming it later. Note that this function does modify the transformation context. This function can be called multiple times during the existence of the transformation object, so one must make sure the key is properly reprogrammed into the hardware. This function is also responsible for checking the key length for validity.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKhjubj)}(hX``cia_encrypt`` Encrypt a single block. This function is used to encrypt a single block of data, which must be **cra_blocksize** big. This always operates on a full **cra_blocksize** and it is not possible to encrypt a block of smaller size. The supplied buffers must therefore also be at least of **cra_blocksize** size. Both the input and output buffers are always aligned to **cra_alignmask**. In case either of the input or output buffer supplied by user of the crypto API is not aligned to **cra_alignmask**, the crypto API will re-align the buffers. The re-alignment means that a new buffer will be allocated, the data will be copied into the new buffer, then the processing will happen on the new buffer, then the data will be copied back into the original buffer and finally the new buffer will be freed. In case a software fallback was put in place in the **cra_init** call, this function might need to use the fallback if the algorithm doesn't support all of the key sizes. In case the key was stored in transformation context, the key might need to be re-programmed into the hardware in this function. This function shall not modify the transformation context, as this function may be called in parallel with the same transformation object. h](j)}(h``cia_encrypt``h]j)}(hjyh]h cia_encrypt}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjsubj)}(hhh]h)}(hXEncrypt a single block. This function is used to encrypt a single block of data, which must be **cra_blocksize** big. This always operates on a full **cra_blocksize** and it is not possible to encrypt a block of smaller size. The supplied buffers must therefore also be at least of **cra_blocksize** size. Both the input and output buffers are always aligned to **cra_alignmask**. In case either of the input or output buffer supplied by user of the crypto API is not aligned to **cra_alignmask**, the crypto API will re-align the buffers. The re-alignment means that a new buffer will be allocated, the data will be copied into the new buffer, then the processing will happen on the new buffer, then the data will be copied back into the original buffer and finally the new buffer will be freed. In case a software fallback was put in place in the **cra_init** call, this function might need to use the fallback if the algorithm doesn't support all of the key sizes. In case the key was stored in transformation context, the key might need to be re-programmed into the hardware in this function. This function shall not modify the transformation context, as this function may be called in parallel with the same transformation object.h](h_Encrypt a single block. This function is used to encrypt a single block of data, which must be }(hjhhhNhNubju)}(h**cra_blocksize**h]h cra_blocksize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh% big. This always operates on a full }(hjhhhNhNubju)}(h**cra_blocksize**h]h cra_blocksize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubht and it is not possible to encrypt a block of smaller size. The supplied buffers must therefore also be at least of }(hjhhhNhNubju)}(h**cra_blocksize**h]h cra_blocksize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh? size. Both the input and output buffers are always aligned to }(hjhhhNhNubju)}(h**cra_alignmask**h]h cra_alignmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubhd. In case either of the input or output buffer supplied by user of the crypto API is not aligned to }(hjhhhNhNubju)}(h**cra_alignmask**h]h cra_alignmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubhXa, the crypto API will re-align the buffers. The re-alignment means that a new buffer will be allocated, the data will be copied into the new buffer, then the processing will happen on the new buffer, then the data will be copied back into the original buffer and finally the new buffer will be freed. In case a software fallback was put in place in the }(hjhhhNhNubju)}(h **cra_init**h]hcra_init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubhXx call, this function might need to use the fallback if the algorithm doesn’t support all of the key sizes. In case the key was stored in transformation context, the key might need to be re-programmed into the hardware in this function. This function shall not modify the transformation context, as this function may be called in parallel with the same transformation object.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``cia_decrypt`` Decrypt a single block. This is a reverse counterpart to **cia_encrypt**, and the conditions are exactly the same.h](j)}(h``cia_decrypt``h]j)}(hjh]h cia_decrypt}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjubj)}(hhh]h)}(hrDecrypt a single block. This is a reverse counterpart to **cia_encrypt**, and the conditions are exactly the same.h](h9Decrypt a single block. This is a reverse counterpart to }(hj8hhhNhNubju)}(h**cia_encrypt**h]h cia_encrypt}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj8ubh*, and the conditions are exactly the same.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hKhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hKhjubeh}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhhhhhhhNubh)}(h**Description**h]ju)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjqubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhhhhubh)}(h,All fields are mandatory and must be filled.h]h,All fields are mandatory and must be filled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrypto_alg (C struct) c.crypto_alghNtauh1hhhhhhhhNubh)}(hhh](h)}(h crypto_algh]h)}(hstruct crypto_algh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h crypto_algh]j)}(hjh]h crypto_alg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hjhhhjhKubah}(h]jah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjhKhjhhubjC)}(hhh]h)}(h-definition of a cryptograpic cipher algorithmh]h-definition of a cryptograpic cipher algorithm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jBhjhhhjhKubeh}(h]h ](j_structeh"]h$]h&]jdj_jej jfj jgjhjiuh1hhhhhhhhNubjk)}(hX5**Definition**:: struct crypto_alg { struct list_head cra_list; struct list_head cra_users; u32 cra_flags; unsigned int cra_blocksize; unsigned int cra_ctxsize; unsigned int cra_alignmask; int cra_priority; refcount_t cra_refcnt; char cra_name[CRYPTO_MAX_ALG_NAME]; char cra_driver_name[CRYPTO_MAX_ALG_NAME]; const struct crypto_type *cra_type; union { struct cipher_alg cipher; } cra_u; int (*cra_init)(struct crypto_tfm *tfm); void (*cra_exit)(struct crypto_tfm *tfm); void (*cra_destroy)(struct crypto_alg *alg); struct module *cra_module; }; **Members** ``cra_list`` internally used ``cra_users`` internally used ``cra_flags`` Flags describing this transformation. See include/linux/crypto.h CRYPTO_ALG_* flags for the flags which go in here. Those are used for fine-tuning the description of the transformation algorithm. ``cra_blocksize`` Minimum block size of this transformation. The size in bytes of the smallest possible unit which can be transformed with this algorithm. The users must respect this value. In case of HASH transformation, it is possible for a smaller block than **cra_blocksize** to be passed to the crypto API for transformation, in case of any other transformation type, an error will be returned upon any attempt to transform smaller than **cra_blocksize** chunks. ``cra_ctxsize`` Size of the operational context of the transformation. This value informs the kernel crypto API about the memory size needed to be allocated for the transformation context. ``cra_alignmask`` For cipher, skcipher, lskcipher, and aead algorithms this is 1 less than the alignment, in bytes, that the algorithm implementation requires for input and output buffers. When the crypto API is invoked with buffers that are not aligned to this alignment, the crypto API automatically utilizes appropriately aligned temporary buffers to comply with what the algorithm needs. (For scatterlists this happens only if the algorithm uses the skcipher_walk helper functions.) This misalignment handling carries a performance penalty, so it is preferred that algorithms do not set a nonzero alignmask. Also, crypto API users may wish to allocate buffers aligned to the alignmask of the algorithm being used, in order to avoid the API having to realign them. Note: the alignmask is not supported for hash algorithms and is always 0 for them. ``cra_priority`` Priority of this transformation implementation. In case multiple transformations with same **cra_name** are available to the Crypto API, the kernel will use the one with highest **cra_priority**. ``cra_refcnt`` internally used ``cra_name`` Generic name (usable by multiple implementations) of the transformation algorithm. This is the name of the transformation itself. This field is used by the kernel when looking up the providers of particular transformation. ``cra_driver_name`` Unique name of the transformation provider. This is the name of the provider of the transformation. This can be any arbitrary value, but in the usual case, this contains the name of the chip or provider and the name of the transformation algorithm. ``cra_type`` Type of the cryptographic transformation. This is a pointer to struct crypto_type, which implements callbacks common for all transformation types. There are multiple options, such as :c:type:`crypto_skcipher_type`, :c:type:`crypto_ahash_type`, :c:type:`crypto_rng_type`. This field might be empty. In that case, there are no common callbacks. This is the case for: cipher. ``cra_u`` Callbacks implementing the transformation. This is a union of multiple structures. Depending on the type of transformation selected by **cra_type** and **cra_flags** above, the associated structure must be filled with callbacks. This field might be empty. This is the case for ahash, shash. ``cra_u.cipher`` Union member which contains a single-block symmetric cipher definition. See **struct** **cipher_alg**. ``cra_init`` Initialize the cryptographic transformation object. This function is used to initialize the cryptographic transformation object. This function is called only once at the instantiation time, right after the transformation context was allocated. In case the cryptographic hardware has some special requirements which need to be handled by software, this function shall check for the precise requirement of the transformation and put any software fallbacks in place. ``cra_exit`` Deinitialize the cryptographic transformation object. This is a counterpart to **cra_init**, used to remove various changes set in **cra_init**. ``cra_destroy`` internally used ``cra_module`` Owner of this transformation implementation. Set to THIS_MODULEh](h)}(h**Definition**::h](ju)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjubj)}(hX\struct crypto_alg { struct list_head cra_list; struct list_head cra_users; u32 cra_flags; unsigned int cra_blocksize; unsigned int cra_ctxsize; unsigned int cra_alignmask; int cra_priority; refcount_t cra_refcnt; char cra_name[CRYPTO_MAX_ALG_NAME]; char cra_driver_name[CRYPTO_MAX_ALG_NAME]; const struct crypto_type *cra_type; union { struct cipher_alg cipher; } cra_u; int (*cra_init)(struct crypto_tfm *tfm); void (*cra_exit)(struct crypto_tfm *tfm); void (*cra_destroy)(struct crypto_alg *alg); struct module *cra_module; };h]hX\struct crypto_alg { struct list_head cra_list; struct list_head cra_users; u32 cra_flags; unsigned int cra_blocksize; unsigned int cra_ctxsize; unsigned int cra_alignmask; int cra_priority; refcount_t cra_refcnt; char cra_name[CRYPTO_MAX_ALG_NAME]; char cra_driver_name[CRYPTO_MAX_ALG_NAME]; const struct crypto_type *cra_type; union { struct cipher_alg cipher; } cra_u; int (*cra_init)(struct crypto_tfm *tfm); void (*cra_exit)(struct crypto_tfm *tfm); void (*cra_destroy)(struct crypto_alg *alg); struct module *cra_module; };}hj0sbah}(h]h ]h"]h$]h&]j,j-uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhjubh)}(h **Members**h]ju)}(hjAh]hMembers}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jthj?ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhjubj)}(hhh](j)}(h``cra_list`` internally used h](j)}(h ``cra_list``h]j)}(hj`h]hcra_list}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM@hjZubj)}(hhh]h)}(hinternally usedh]hinternally used}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM@hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM@hjWubj)}(h``cra_users`` internally used h](j)}(h ``cra_users``h]j)}(hjh]h cra_users}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMAhjubj)}(hhh]h)}(hinternally usedh]hinternally used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjWubj)}(h``cra_flags`` Flags describing this transformation. See include/linux/crypto.h CRYPTO_ALG_* flags for the flags which go in here. Those are used for fine-tuning the description of the transformation algorithm. h](j)}(h ``cra_flags``h]j)}(hjh]h cra_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhjubj)}(hhh]h)}(hFlags describing this transformation. See include/linux/crypto.h CRYPTO_ALG_* flags for the flags which go in here. Those are used for fine-tuning the description of the transformation algorithm.h]hFlags describing this transformation. See include/linux/crypto.h CRYPTO_ALG_* flags for the flags which go in here. Those are used for fine-tuning the description of the transformation algorithm.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubj)}(hX``cra_blocksize`` Minimum block size of this transformation. The size in bytes of the smallest possible unit which can be transformed with this algorithm. The users must respect this value. In case of HASH transformation, it is possible for a smaller block than **cra_blocksize** to be passed to the crypto API for transformation, in case of any other transformation type, an error will be returned upon any attempt to transform smaller than **cra_blocksize** chunks. h](j)}(h``cra_blocksize``h]j)}(hj h]h cra_blocksize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhjubj)}(hhh]h)}(hXMinimum block size of this transformation. The size in bytes of the smallest possible unit which can be transformed with this algorithm. The users must respect this value. In case of HASH transformation, it is possible for a smaller block than **cra_blocksize** to be passed to the crypto API for transformation, in case of any other transformation type, an error will be returned upon any attempt to transform smaller than **cra_blocksize** chunks.h](hMinimum block size of this transformation. The size in bytes of the smallest possible unit which can be transformed with this algorithm. The users must respect this value. In case of HASH transformation, it is possible for a smaller block than }(hj%hhhNhNubju)}(h**cra_blocksize**h]h cra_blocksize}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj%ubh to be passed to the crypto API for transformation, in case of any other transformation type, an error will be returned upon any attempt to transform smaller than }(hj%hhhNhNubju)}(h**cra_blocksize**h]h cra_blocksize}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj%ubh chunks.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjWubj)}(h``cra_ctxsize`` Size of the operational context of the transformation. This value informs the kernel crypto API about the memory size needed to be allocated for the transformation context. h](j)}(h``cra_ctxsize``h]j)}(hjjh]h cra_ctxsize}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM hjdubj)}(hhh]h)}(hSize of the operational context of the transformation. This value informs the kernel crypto API about the memory size needed to be allocated for the transformation context.h]hSize of the operational context of the transformation. This value informs the kernel crypto API about the memory size needed to be allocated for the transformation context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhM hjWubj)}(hXW``cra_alignmask`` For cipher, skcipher, lskcipher, and aead algorithms this is 1 less than the alignment, in bytes, that the algorithm implementation requires for input and output buffers. When the crypto API is invoked with buffers that are not aligned to this alignment, the crypto API automatically utilizes appropriately aligned temporary buffers to comply with what the algorithm needs. (For scatterlists this happens only if the algorithm uses the skcipher_walk helper functions.) This misalignment handling carries a performance penalty, so it is preferred that algorithms do not set a nonzero alignmask. Also, crypto API users may wish to allocate buffers aligned to the alignmask of the algorithm being used, in order to avoid the API having to realign them. Note: the alignmask is not supported for hash algorithms and is always 0 for them. h](j)}(h``cra_alignmask``h]j)}(hjh]h cra_alignmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhjubj)}(hhh]h)}(hXDFor cipher, skcipher, lskcipher, and aead algorithms this is 1 less than the alignment, in bytes, that the algorithm implementation requires for input and output buffers. When the crypto API is invoked with buffers that are not aligned to this alignment, the crypto API automatically utilizes appropriately aligned temporary buffers to comply with what the algorithm needs. (For scatterlists this happens only if the algorithm uses the skcipher_walk helper functions.) This misalignment handling carries a performance penalty, so it is preferred that algorithms do not set a nonzero alignmask. Also, crypto API users may wish to allocate buffers aligned to the alignmask of the algorithm being used, in order to avoid the API having to realign them. Note: the alignmask is not supported for hash algorithms and is always 0 for them.h]hXDFor cipher, skcipher, lskcipher, and aead algorithms this is 1 less than the alignment, in bytes, that the algorithm implementation requires for input and output buffers. When the crypto API is invoked with buffers that are not aligned to this alignment, the crypto API automatically utilizes appropriately aligned temporary buffers to comply with what the algorithm needs. (For scatterlists this happens only if the algorithm uses the skcipher_walk helper functions.) This misalignment handling carries a performance penalty, so it is preferred that algorithms do not set a nonzero alignmask. Also, crypto API users may wish to allocate buffers aligned to the alignmask of the algorithm being used, in order to avoid the API having to realign them. Note: the alignmask is not supported for hash algorithms and is always 0 for them.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubj)}(h``cra_priority`` Priority of this transformation implementation. In case multiple transformations with same **cra_name** are available to the Crypto API, the kernel will use the one with highest **cra_priority**. h](j)}(h``cra_priority``h]j)}(hjh]h cra_priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhjubj)}(hhh]h)}(hPriority of this transformation implementation. In case multiple transformations with same **cra_name** are available to the Crypto API, the kernel will use the one with highest **cra_priority**.h](h[Priority of this transformation implementation. In case multiple transformations with same }(hjhhhNhNubju)}(h **cra_name**h]hcra_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubhK are available to the Crypto API, the kernel will use the one with highest }(hjhhhNhNubju)}(h**cra_priority**h]h cra_priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubj)}(h``cra_refcnt`` internally used h](j)}(h``cra_refcnt``h]j)}(hj<h]h cra_refcnt}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMBhj6ubj)}(hhh]h)}(hinternally usedh]hinternally used}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMBhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMBhjWubj)}(h``cra_name`` Generic name (usable by multiple implementations) of the transformation algorithm. This is the name of the transformation itself. This field is used by the kernel when looking up the providers of particular transformation. h](j)}(h ``cra_name``h]j)}(hjuh]hcra_name}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM!hjoubj)}(hhh]h)}(hGeneric name (usable by multiple implementations) of the transformation algorithm. This is the name of the transformation itself. This field is used by the kernel when looking up the providers of particular transformation.h]hGeneric name (usable by multiple implementations) of the transformation algorithm. This is the name of the transformation itself. This field is used by the kernel when looking up the providers of particular transformation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjWubj)}(hX ``cra_driver_name`` Unique name of the transformation provider. This is the name of the provider of the transformation. This can be any arbitrary value, but in the usual case, this contains the name of the chip or provider and the name of the transformation algorithm. h](j)}(h``cra_driver_name``h]j)}(hjh]hcra_driver_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM&hjubj)}(hhh]h)}(hUnique name of the transformation provider. This is the name of the provider of the transformation. This can be any arbitrary value, but in the usual case, this contains the name of the chip or provider and the name of the transformation algorithm.h]hUnique name of the transformation provider. This is the name of the provider of the transformation. This can be any arbitrary value, but in the usual case, this contains the name of the chip or provider and the name of the transformation algorithm.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjWubj)}(hX``cra_type`` Type of the cryptographic transformation. This is a pointer to struct crypto_type, which implements callbacks common for all transformation types. There are multiple options, such as :c:type:`crypto_skcipher_type`, :c:type:`crypto_ahash_type`, :c:type:`crypto_rng_type`. This field might be empty. In that case, there are no common callbacks. This is the case for: cipher. h](j)}(h ``cra_type``h]j)}(hjh]hcra_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM,hjubj)}(hhh]h)}(hXtType of the cryptographic transformation. This is a pointer to struct crypto_type, which implements callbacks common for all transformation types. There are multiple options, such as :c:type:`crypto_skcipher_type`, :c:type:`crypto_ahash_type`, :c:type:`crypto_rng_type`. This field might be empty. In that case, there are no common callbacks. This is the case for: cipher.h](hType of the cryptographic transformation. This is a pointer to struct crypto_type, which implements callbacks common for all transformation types. There are multiple options, such as }(hjhhhNhNubh)}(h:c:type:`crypto_skcipher_type`h]j)}(hj h]hcrypto_skcipher_type}(hjhhhNhNubah}(h]h ](xrefj_c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdoccrypto/api-skcipher refdomainj_reftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sb reftargetcrypto_skcipher_typeuh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM'hjubh, }(hjhhhNhNubh)}(h:c:type:`crypto_ahash_type`h]j)}(hj;h]hcrypto_ahash_type}(hj=hhhNhNubah}(h]h ](jj_c-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj$ refdomainj_reftypetype refexplicitrefwarnj*j.j2crypto_ahash_typeuh1hhj4hM'hjubh, }hjsbh)}(h:c:type:`crypto_rng_type`h]j)}(hj^h]hcrypto_rng_type}(hj`hhhNhNubah}(h]h ](jj_c-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocj$ refdomainj_reftypetype refexplicitrefwarnj*j.j2crypto_rng_typeuh1hhj4hM'hjubhg. This field might be empty. In that case, there are no common callbacks. This is the case for: cipher.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hM'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjWubj)}(hX-``cra_u`` Callbacks implementing the transformation. This is a union of multiple structures. Depending on the type of transformation selected by **cra_type** and **cra_flags** above, the associated structure must be filled with callbacks. This field might be empty. This is the case for ahash, shash. h](j)}(h ``cra_u``h]j)}(hjh]hcra_u}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM1hjubj)}(hhh]h)}(hX"Callbacks implementing the transformation. This is a union of multiple structures. Depending on the type of transformation selected by **cra_type** and **cra_flags** above, the associated structure must be filled with callbacks. This field might be empty. This is the case for ahash, shash.h](hCallbacks implementing the transformation. This is a union of multiple structures. Depending on the type of transformation selected by }(hjhhhNhNubju)}(h **cra_type**h]hcra_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh and }(hjhhhNhNubju)}(h **cra_flags**h]h cra_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh} above, the associated structure must be filled with callbacks. This field might be empty. This is the case for ahash, shash.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjWubj)}(hx``cra_u.cipher`` Union member which contains a single-block symmetric cipher definition. See **struct** **cipher_alg**. h](j)}(h``cra_u.cipher``h]j)}(hjh]h cra_u.cipher}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM>hjubj)}(hhh]h)}(hfUnion member which contains a single-block symmetric cipher definition. See **struct** **cipher_alg**.h](hLUnion member which contains a single-block symmetric cipher definition. See }(hjhhhNhNubju)}(h **struct**h]hstruct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh }(hjhhhNhNubju)}(h**cipher_alg**h]h cipher_alg}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM=hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM>hjWubj)}(hX``cra_init`` Initialize the cryptographic transformation object. This function is used to initialize the cryptographic transformation object. This function is called only once at the instantiation time, right after the transformation context was allocated. In case the cryptographic hardware has some special requirements which need to be handled by software, this function shall check for the precise requirement of the transformation and put any software fallbacks in place. h](j)}(h ``cra_init``h]j)}(hjSh]hcra_init}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM9hjMubj)}(hhh]h)}(hXInitialize the cryptographic transformation object. This function is used to initialize the cryptographic transformation object. This function is called only once at the instantiation time, right after the transformation context was allocated. In case the cryptographic hardware has some special requirements which need to be handled by software, this function shall check for the precise requirement of the transformation and put any software fallbacks in place.h]hXInitialize the cryptographic transformation object. This function is used to initialize the cryptographic transformation object. This function is called only once at the instantiation time, right after the transformation context was allocated. In case the cryptographic hardware has some special requirements which need to be handled by software, this function shall check for the precise requirement of the transformation and put any software fallbacks in place.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM2hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM9hjWubj)}(h``cra_exit`` Deinitialize the cryptographic transformation object. This is a counterpart to **cra_init**, used to remove various changes set in **cra_init**. h](j)}(h ``cra_exit``h]j)}(hjh]hcra_exit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM<hjubj)}(hhh]h)}(hDeinitialize the cryptographic transformation object. This is a counterpart to **cra_init**, used to remove various changes set in **cra_init**.h](hODeinitialize the cryptographic transformation object. This is a counterpart to }(hjhhhNhNubju)}(h **cra_init**h]hcra_init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh(, used to remove various changes set in }(hjhhhNhNubju)}(h **cra_init**h]hcra_init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM:hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjWubj)}(h ``cra_destroy`` internally used h](j)}(h``cra_destroy``h]j)}(hjh]h cra_destroy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMChjubj)}(hhh]h)}(hinternally usedh]hinternally used}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMChj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMChjWubj)}(hN``cra_module`` Owner of this transformation implementation. Set to THIS_MODULEh](j)}(h``cra_module``h]j)}(hj$ h]h cra_module}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj" ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM>hj ubj)}(hhh]h)}(h?Owner of this transformation implementation. Set to THIS_MODULEh]h?Owner of this transformation implementation. Set to THIS_MODULE}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhM?hj: ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj9 hM>hjWubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhhhhhhhNubh)}(h**Description**h]ju)}(hjg h]h Description}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1jthje ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMBhhhhubh)}(hThe struct crypto_alg describes a generic Crypto API algorithm and is common for all of the transformations. Any variable not documented here shall not be used by a cipher implementation as it is internal to the Crypto API.h]hThe struct crypto_alg describes a generic Crypto API algorithm and is common for all of the transformations. Any variable not documented here shall not be used by a cipher implementation as it is internal to the Crypto API.}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:7: ./include/linux/crypto.hhMDhhhhubeh}(h]"block-cipher-algorithm-definitionsah ]h"]"block cipher algorithm definitionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hSymmetric Key Cipher APIh]hSymmetric Key Cipher API}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK ubh)}(hSymmetric key cipher API is used with the ciphers of type CRYPTO_ALG_TYPE_SKCIPHER (listed as type "skcipher" in /proc/crypto).h]hSymmetric key cipher API is used with the ciphers of type CRYPTO_ALG_TYPE_SKCIPHER (listed as type “skcipher” in /proc/crypto).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:13: ./include/crypto/skcipher.hhKhj hhubh)}(hXAsynchronous cipher operations imply that the function invocation for a cipher request returns immediately before the completion of the operation. The cipher request is scheduled as a separate kernel thread and therefore load-balanced on the different CPUs via the process scheduler. To allow the kernel crypto API to inform the caller about the completion of a cipher request, the caller must provide a callback function. That function is invoked with the cipher handle when the request completes.h]hXAsynchronous cipher operations imply that the function invocation for a cipher request returns immediately before the completion of the operation. The cipher request is scheduled as a separate kernel thread and therefore load-balanced on the different CPUs via the process scheduler. To allow the kernel crypto API to inform the caller about the completion of a cipher request, the caller must provide a callback function. That function is invoked with the cipher handle when the request completes.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:13: ./include/crypto/skcipher.hhKhj hhubh)}(hTo support the asynchronous operation, additional information than just the cipher handle must be supplied to the kernel crypto API. That additional information is given by filling in the skcipher_request data structure.h]hTo support the asynchronous operation, additional information than just the cipher handle must be supplied to the kernel crypto API. That additional information is given by filling in the skcipher_request data structure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:13: ./include/crypto/skcipher.hhKhj hhubh)}(hXFor the symmetric key cipher API, the state is maintained with the tfm cipher handle. A single tfm can be used across multiple calls and in parallel. For asynchronous block cipher calls, context data supplied and only used by the caller can be referenced the request data structure in addition to the IV used for the cipher request. The maintenance of such state information would be important for a crypto driver implementer to have, because when calling the callback function upon completion of the cipher operation, that callback function may need some information about which operation just finished if it invoked multiple in parallel. This state information is unused by the kernel crypto API.h]hXFor the symmetric key cipher API, the state is maintained with the tfm cipher handle. A single tfm can be used across multiple calls and in parallel. For asynchronous block cipher calls, context data supplied and only used by the caller can be referenced the request data structure in addition to the IV used for the cipher request. The maintenance of such state information would be important for a crypto driver implementer to have, because when calling the callback function upon completion of the cipher operation, that callback function may need some information about which operation just finished if it invoked multiple in parallel. This state information is unused by the kernel crypto API.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:13: ./include/crypto/skcipher.hhKhj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"crypto_alloc_skcipher (C function)c.crypto_alloc_skcipherhNtauh1hhj hhhNhNubh)}(hhh](h)}(hYstruct crypto_skcipher * crypto_alloc_skcipher (const char *alg_name, u32 type, u32 mask)h]h)}(hWstruct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, u32 type, u32 mask)h](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj_reftype identifier reftargetj modnameN classnameNj*j-)}j0]j+ ASTIdentifier)}j/ crypto_alloc_skciphersbc.crypto_alloc_skcipherasbuh1hhj hhhj hMubh)}(h h]h }(hj= hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubhdesc_sig_punctuation)}(h*h]h*}(hjM hhhNhNubah}(h]h ]pah"]h$]h&]uh1jK hj hhhj hMubj)}(hcrypto_alloc_skcipherh]j)}(hj: h]hcrypto_alloc_skcipher}(hj` hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj hhhj hMubhdesc_parameterlist)}(h*(const char *alg_name, u32 type, u32 mask)h](hdesc_parameter)}(hconst char *alg_nameh](h)}(hconsth]hconst}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ ubhdesc_sig_keyword_type)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j hj{ ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ ubjL )}(hjO h]h*}(hj hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj{ ubj)}(halg_nameh]halg_name}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hju ubjz )}(hu32 typeh](h)}(hhh]j)}(hu32h]hu32}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj modnameN classnameNj*j-)}j0]j8 c.crypto_alloc_skcipherasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(htypeh]htype}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hju ubjz )}(hu32 maskh](h)}(hhh]j)}(hu32h]hu32}(hj+ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj( ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj- modnameN classnameNj*j-)}j0]j8 c.crypto_alloc_skcipherasbuh1hhj$ ubh)}(h h]h }(hjI hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ ubj)}(hmaskh]hmask}(hjW hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hju ubeh}(h]h ]h"]h$]h&]j,j-uh1js hj hhhj hMubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj hhhj hMubah}(h]j ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj hMhj hhubjC)}(hhh]h)}(h$allocate symmetric key cipher handleh]h$allocate symmetric key cipher handle}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM hj~ hhubah}(h]h ]h"]h$]h&]uh1jBhj hhhj hMubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej jfj jgjhjiuh1hhhhj hNhNubjk)}(hX"**Parameters** ``const char *alg_name`` is the cra_name / name or cra_driver_name / driver name of the skcipher cipher ``u32 type`` specifies the type of the cipher ``u32 mask`` specifies the mask for the cipher **Description** Allocate a cipher handle for an skcipher. The returned struct crypto_skcipher is the cipher handle that is required for any subsequent API invocation for that skcipher. **Return** allocated cipher handle in case of success; IS_ERR() is true in case of an error, PTR_ERR() returns the error code.h](h)}(h**Parameters**h]ju)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj ubj)}(hhh](j)}(hh``const char *alg_name`` is the cra_name / name or cra_driver_name / driver name of the skcipher cipher h](j)}(h``const char *alg_name``h]j)}(hj h]hconst char *alg_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM hj ubj)}(hhh]h)}(hNis the cra_name / name or cra_driver_name / driver name of the skcipher cipherh]hNis the cra_name / name or cra_driver_name / driver name of the skcipher cipher}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubj)}(h.``u32 type`` specifies the type of the cipher h](j)}(h ``u32 type``h]j)}(hj h]hu32 type}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM hj ubj)}(hhh]h)}(h specifies the type of the cipherh]h specifies the type of the cipher}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubj)}(h/``u32 mask`` specifies the mask for the cipher h](j)}(h ``u32 mask``h]j)}(hj5 h]hu32 mask}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3 ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj/ ubj)}(hhh]h)}(h!specifies the mask for the cipherh]h!specifies the mask for the cipher}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ hMhjK ubah}(h]h ]h"]h$]h&]uh1jhj/ ubeh}(h]h ]h"]h$]h&]uh1jhjJ hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]ju)}(hjp h]h Description}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjn ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj ubh)}(hAllocate a cipher handle for an skcipher. The returned struct crypto_skcipher is the cipher handle that is required for any subsequent API invocation for that skcipher.h]hAllocate a cipher handle for an skcipher. The returned struct crypto_skcipher is the cipher handle that is required for any subsequent API invocation for that skcipher.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj ubh)}(h **Return**h]ju)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj ubj)}(hhh]j)}(hsallocated cipher handle in case of success; IS_ERR() is true in case of an error, PTR_ERR() returns the error code.h](j)}(hDallocated cipher handle in case of success; IS_ERR() is true in caseh]hDallocated cipher handle in case of success; IS_ERR() is true in case}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj ubj)}(hhh]h)}(h.of an error, PTR_ERR() returns the error code.h]h.of an error, PTR_ERR() returns the error code.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!crypto_free_skcipher (C function)c.crypto_free_skcipherhNtauh1hhj hhhNhNubh)}(hhh](h)}(h7void crypto_free_skcipher (struct crypto_skcipher *tfm)h]h)}(h6void crypto_free_skcipher(struct crypto_skcipher *tfm)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMGubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMGubj)}(hcrypto_free_skcipherh]j)}(hcrypto_free_skcipherh]hcrypto_free_skcipher}(hj( hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj hhhj hMGubjt )}(h(struct crypto_skcipher *tfm)h]jz )}(hstruct crypto_skcipher *tfmh](h)}(hhh]hstruct}(hjD hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ ubh)}(h h]h }(hjQ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ ubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hjb hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjd modnameN classnameNj*j-)}j0]j7 )}j/ j* sbc.crypto_free_skcipherasbuh1hhj@ ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ ubjL )}(hjO h]h*}(hj hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj@ ubj)}(htfmh]htfm}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj< ubah}(h]h ]h"]h$]h&]j,j-uh1js hj hhhj hMGubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj hhhj hMGubah}(h]j ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj hMGhj hhubjC)}(hhh]h)}(hzeroize and free cipher handleh]hzeroize and free cipher handle}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMBhj hhubah}(h]h ]h"]h$]h&]uh1jBhj hhhj hMGubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej jfj jgjhjiuh1hhhhj hNhNubjk)}(h**Parameters** ``struct crypto_skcipher *tfm`` cipher handle to be freed **Description** If **tfm** is a NULL or error pointer, this function does nothing.h](h)}(h**Parameters**h]ju)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMFhj ubj)}(hhh]j)}(h:``struct crypto_skcipher *tfm`` cipher handle to be freed h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hjh]hstruct crypto_skcipher *tfm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMChjubj)}(hhh]h)}(hcipher handle to be freedh]hcipher handle to be freed}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChj ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]ju)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMEhj ubh)}(hBIf **tfm** is a NULL or error pointer, this function does nothing.h](hIf }(hjYhhhNhNubju)}(h**tfm**h]htfm}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jthjYubh8 is a NULL or error pointer, this function does nothing.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMEhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ crypto_has_skcipher (C function)c.crypto_has_skcipherhNtauh1hhj hhhNhNubh)}(hhh](h)}(hBint crypto_has_skcipher (const char *alg_name, u32 type, u32 mask)h]h)}(hAint crypto_has_skcipher(const char *alg_name, u32 type, u32 mask)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMfubj)}(hcrypto_has_skcipherh]j)}(hcrypto_has_skcipherh]hcrypto_has_skcipher}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhjhhhjhMfubjt )}(h*(const char *alg_name, u32 type, u32 mask)h](jz )}(hconst char *alg_nameh](h)}(hj h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjubj)}(halg_nameh]halg_name}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubjz )}(hu32 typeh](h)}(hhh]j)}(hu32h]hu32}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj9modnameN classnameNj*j-)}j0]j7 )}j/ jsbc.crypto_has_skcipherasbuh1hhj0ubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(htypeh]htype}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubjz )}(hu32 maskh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjmodnameN classnameNj*j-)}j0]jSc.crypto_has_skcipherasbuh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubeh}(h]h ]h"]h$]h&]j,j-uh1js hjhhhjhMfubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hjhhhjhMfubah}(h]jah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjhMfhjhhubjC)}(hhh]h)}(h+Search for the availability of an skcipher.h]h+Search for the availability of an skcipher.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM]hjhhubah}(h]h ]h"]h$]h&]uh1jBhjhhhjhMfubeh}(h]h ](j_functioneh"]h$]h&]jdj_jejjfjjgjhjiuh1hhhhj hNhNubjk)}(hX:**Parameters** ``const char *alg_name`` is the cra_name / name or cra_driver_name / driver name of the skcipher ``u32 type`` specifies the type of the skcipher ``u32 mask`` specifies the mask for the skcipher **Return** true when the skcipher is known to the kernel crypto API; false otherwiseh](h)}(h**Parameters**h]ju)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMahjubj)}(hhh](j)}(ha``const char *alg_name`` is the cra_name / name or cra_driver_name / driver name of the skcipher h](j)}(h``const char *alg_name``h]j)}(hjh]hconst char *alg_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM_hjubj)}(hhh]h)}(hGis the cra_name / name or cra_driver_name / driver name of the skcipherh]hGis the cra_name / name or cra_driver_name / driver name of the skcipher}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM^hj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hM_hjubj)}(h0``u32 type`` specifies the type of the skcipher h](j)}(h ``u32 type``h]j)}(hjRh]hu32 type}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM`hjLubj)}(hhh]h)}(h"specifies the type of the skcipherh]h"specifies the type of the skcipher}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM`hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM`hjubj)}(h1``u32 mask`` specifies the mask for the skcipher h](j)}(h ``u32 mask``h]j)}(hjh]hu32 mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMahjubj)}(hhh]h)}(h#specifies the mask for the skcipherh]h#specifies the mask for the skcipher}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]ju)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMchjubj)}(hhh]j)}(hItrue when the skcipher is known to the kernel crypto API; false otherwiseh](j)}(h?true when the skcipher is known to the kernel crypto API; falseh]h?true when the skcipher is known to the kernel crypto API; false}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMchjubj)}(hhh]h)}(h otherwiseh]h otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#crypto_skcipher_ivsize (C function)c.crypto_skcipher_ivsizehNtauh1hhj hhhNhNubh)}(hhh](h)}(hAunsigned int crypto_skcipher_ivsize (struct crypto_skcipher *tfm)h]h)}(h@unsigned int crypto_skcipher_ivsize(struct crypto_skcipher *tfm)h](j )}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj2hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhjDhMubj )}(hinth]hint}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj2hhhjDhMubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhjDhMubj)}(hcrypto_skcipher_ivsizeh]j)}(hcrypto_skcipher_ivsizeh]hcrypto_skcipher_ivsize}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj2hhhjDhMubjt )}(h(struct crypto_skcipher *tfm)h]jz )}(hstruct crypto_skcipher *tfmh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjmodnameN classnameNj*j-)}j0]j7 )}j/ jusbc.crypto_skcipher_ivsizeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjubj)}(htfmh]htfm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubah}(h]h ]h"]h$]h&]j,j-uh1js hj2hhhjDhMubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj.hhhjDhMubah}(h]j)ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjDhMhj+hhubjC)}(hhh]h)}(hobtain IV sizeh]hobtain IV size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jBhj+hhhjDhMubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej*jfj*jgjhjiuh1hhhhj hNhNubjk)}(h**Parameters** ``struct crypto_skcipher *tfm`` cipher handle **Description** The size of the IV for the skcipher referenced by the cipher handle is returned. This IV size may be zero if the cipher does not need an IV. **Return** IV size in bytesh](h)}(h**Parameters**h]ju)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj.ubj)}(hhh]j)}(h.``struct crypto_skcipher *tfm`` cipher handle h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hjSh]hstruct crypto_skcipher *tfm}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjMubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]ju)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj.ubh)}(hThe size of the IV for the skcipher referenced by the cipher handle is returned. This IV size may be zero if the cipher does not need an IV.h]hThe size of the IV for the skcipher referenced by the cipher handle is returned. This IV size may be zero if the cipher does not need an IV.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj.ubh)}(h **Return**h]ju)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj.ubh)}(hIV size in bytesh]hIV size in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&crypto_skcipher_blocksize (C function)c.crypto_skcipher_blocksizehNtauh1hhj hhhNhNubh)}(hhh](h)}(hDunsigned int crypto_skcipher_blocksize (struct crypto_skcipher *tfm)h]h)}(hCunsigned int crypto_skcipher_blocksize(struct crypto_skcipher *tfm)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhMubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hcrypto_skcipher_blocksizeh]j)}(hcrypto_skcipher_blocksizeh]hcrypto_skcipher_blocksize}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhjhhhjhMubjt )}(h(struct crypto_skcipher *tfm)h]jz )}(hstruct crypto_skcipher *tfmh](h)}(hhh]hstruct}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjsmodnameN classnameNj*j-)}j0]j7 )}j/ j9sbc.crypto_skcipher_blocksizeasbuh1hhjOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjOubj)}(htfmh]htfm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjKubah}(h]h ]h"]h$]h&]j,j-uh1js hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hjhhhjhMubah}(h]jah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjhMhjhhubjC)}(hhh]h)}(hobtain block size of cipherh]hobtain block size of cipher}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jBhjhhhjhMubeh}(h]h ](j_functioneh"]h$]h&]jdj_jejjfjjgjhjiuh1hhhhj hNhNubjk)}(hXE**Parameters** ``struct crypto_skcipher *tfm`` cipher handle **Description** The block size for the skcipher referenced with the cipher handle is returned. The caller may use that information to allocate appropriate memory for the data returned by the encryption or decryption operation **Return** block size of cipherh](h)}(h**Parameters**h]ju)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubj)}(hhh]j)}(h.``struct crypto_skcipher *tfm`` cipher handle h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hjh]hstruct crypto_skcipher *tfm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]ju)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jthjPubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(hThe block size for the skcipher referenced with the cipher handle is returned. The caller may use that information to allocate appropriate memory for the data returned by the encryption or decryption operationh]hThe block size for the skcipher referenced with the cipher handle is returned. The caller may use that information to allocate appropriate memory for the data returned by the encryption or decryption operation}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(h **Return**h]ju)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjwubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(hblock size of cipherh]hblock size of cipher}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#crypto_skcipher_setkey (C function)c.crypto_skcipher_setkeyhNtauh1hhj hhhNhNubh)}(hhh](h)}(h\int crypto_skcipher_setkey (struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen)h]h)}(h[int crypto_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMfubj)}(hcrypto_skcipher_setkeyh]j)}(hcrypto_skcipher_setkeyh]hcrypto_skcipher_setkey}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhjhhhjhMfubjt )}(hA(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen)h](jz )}(hstruct crypto_skcipher *tfmh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjmodnameN classnameNj*j-)}j0]j7 )}j/ jsbc.crypto_skcipher_setkeyasbuh1hhjubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjL )}(hjO h]h*}(hjGhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjubj)}(htfmh]htfm}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubjz )}(h const u8 *keyh](h)}(hj h]hconst}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjmodnameN classnameNj*j-)}j0]j5c.crypto_skcipher_setkeyasbuh1hhjiubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjiubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubjz )}(hunsigned int keylenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hkeylenh]hkeylen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubeh}(h]h ]h"]h$]h&]j,j-uh1js hjhhhjhMfubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hjhhhjhMfubah}(h]jah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjhMfhjhhubjC)}(hhh]h)}(hset key for cipherh]hset key for cipher}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMWhj<hhubah}(h]h ]h"]h$]h&]uh1jBhjhhhjhMfubeh}(h]h ](j_functioneh"]h$]h&]jdj_jejWjfjWjgjhjiuh1hhhhj hNhNubjk)}(hXL**Parameters** ``struct crypto_skcipher *tfm`` cipher handle ``const u8 *key`` buffer holding the key ``unsigned int keylen`` length of the key in bytes **Description** The caller provided key is set for the skcipher referenced by the cipher handle. Note, the key length determines the cipher type. Many block ciphers implement different cipher modes depending on the key size, such as AES-128 vs AES-192 vs. AES-256. When providing a 16 byte key for an AES cipher handle, AES-128 is performed. **Return** 0 if the setting of the key was successful; < 0 if an error occurredh](h)}(h**Parameters**h]ju)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jthj_ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM[hj[ubj)}(hhh](j)}(h.``struct crypto_skcipher *tfm`` cipher handle h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hjh]hstruct crypto_skcipher *tfm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMXhjzubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjwubj)}(h)``const u8 *key`` buffer holding the key h](j)}(h``const u8 *key``h]j)}(hjh]h const u8 *key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMYhjubj)}(hhh]h)}(hbuffer holding the keyh]hbuffer holding the key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjwubj)}(h3``unsigned int keylen`` length of the key in bytes h](j)}(h``unsigned int keylen``h]j)}(hjh]hunsigned int keylen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMZhjubj)}(hhh]h)}(hlength of the key in bytesh]hlength of the key in bytes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubh)}(h**Description**h]ju)}(hj-h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj+ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM\hj[ubh)}(hPThe caller provided key is set for the skcipher referenced by the cipher handle.h]hPThe caller provided key is set for the skcipher referenced by the cipher handle.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM\hj[ubh)}(hNote, the key length determines the cipher type. Many block ciphers implement different cipher modes depending on the key size, such as AES-128 vs AES-192 vs. AES-256. When providing a 16 byte key for an AES cipher handle, AES-128 is performed.h]hNote, the key length determines the cipher type. Many block ciphers implement different cipher modes depending on the key size, such as AES-128 vs AES-192 vs. AES-256. When providing a 16 byte key for an AES cipher handle, AES-128 is performed.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhM_hj[ubh)}(h **Return**h]ju)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jthjaubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMdhj[ubh)}(hD0 if the setting of the key was successful; < 0 if an error occurredh]hD0 if the setting of the key was successful; < 0 if an error occurred}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMdhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#crypto_skcipher_reqtfm (C function)c.crypto_skcipher_reqtfmhNtauh1hhj hhhNhNubh)}(hhh](h)}(hNstruct crypto_skcipher * crypto_skcipher_reqtfm (struct skcipher_request *req)h]h)}(hLstruct crypto_skcipher *crypto_skcipher_reqtfm(struct skcipher_request *req)h](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjmodnameN classnameNj*j-)}j0]j7 )}j/ crypto_skcipher_reqtfmsbc.crypto_skcipher_reqtfmasbuh1hhjhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjhhhjhMubj)}(hcrypto_skcipher_reqtfmh]j)}(hjh]hcrypto_skcipher_reqtfm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhjhhhjhMubjt )}(h(struct skcipher_request *req)h]jz )}(hstruct skcipher_request *reqh](h)}(hhh]hstruct}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hskcipher_requesth]hskcipher_request}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjBmodnameN classnameNj*j-)}j0]jc.crypto_skcipher_reqtfmasbuh1hhjubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjL )}(hjO h]h*}(hjlhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjubj)}(hreqh]hreq}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubah}(h]h ]h"]h$]h&]j,j-uh1js hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hjhhhjhMubah}(h]jah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjhMhjhhubjC)}(hhh]h)}(h!obtain cipher handle from requesth]h!obtain cipher handle from request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jBhjhhhjhMubeh}(h]h ](j_functioneh"]h$]h&]jdj_jejjfjjgjhjiuh1hhhhj hNhNubjk)}(hX**Parameters** ``struct skcipher_request *req`` skcipher_request out of which the cipher handle is to be obtained **Description** Return the crypto_skcipher handle when furnishing an skcipher_request data structure. **Return** crypto_skcipher handleh](h)}(h**Parameters**h]ju)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubj)}(hhh]j)}(hc``struct skcipher_request *req`` skcipher_request out of which the cipher handle is to be obtained h](j)}(h ``struct skcipher_request *req``h]j)}(hjh]hstruct skcipher_request *req}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubj)}(hhh]h)}(hAskcipher_request out of which the cipher handle is to be obtainedh]hAskcipher_request out of which the cipher handle is to be obtained}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]ju)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(hUReturn the crypto_skcipher handle when furnishing an skcipher_request data structure.h]hUReturn the crypto_skcipher handle when furnishing an skcipher_request data structure.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(h **Return**h]ju)}(hjFh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjDubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(hcrypto_skcipher handleh]hcrypto_skcipher handle}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$crypto_skcipher_encrypt (C function)c.crypto_skcipher_encrypthNtauh1hhj hhhNhNubh)}(hhh](h)}(h:int crypto_skcipher_encrypt (struct skcipher_request *req)h]h)}(h9int crypto_skcipher_encrypt(struct skcipher_request *req)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hcrypto_skcipher_encrypth]j)}(hcrypto_skcipher_encrypth]hcrypto_skcipher_encrypt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhjhhhjhMubjt )}(h(struct skcipher_request *req)h]jz )}(hstruct skcipher_request *reqh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hskcipher_requesth]hskcipher_request}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjmodnameN classnameNj*j-)}j0]j7 )}j/ jsbc.crypto_skcipher_encryptasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjubj)}(hreqh]hreq}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubah}(h]h ]h"]h$]h&]j,j-uh1js hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hjhhhjhMubah}(h]j~ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjhMhjhhubjC)}(hhh]h)}(hencrypt plaintexth]hencrypt plaintext}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1jBhjhhhjhMubeh}(h]h ](j_functioneh"]h$]h&]jdj_jejcjfjcjgjhjiuh1hhhhj hNhNubjk)}(hX**Parameters** ``struct skcipher_request *req`` reference to the skcipher_request handle that holds all information needed to perform the cipher operation **Description** Encrypt plaintext data using the skcipher_request handle. That data structure and how it is filled with data is discussed with the skcipher_request_* functions. **Return** 0 if the cipher operation was successful; < 0 if an error occurredh](h)}(h**Parameters**h]ju)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jthjkubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjgubj)}(hhh]j)}(h``struct skcipher_request *req`` reference to the skcipher_request handle that holds all information needed to perform the cipher operation h](j)}(h ``struct skcipher_request *req``h]j)}(hjh]hstruct skcipher_request *req}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubj)}(hhh]h)}(hjreference to the skcipher_request handle that holds all information needed to perform the cipher operationh]hjreference to the skcipher_request handle that holds all information needed to perform the cipher operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]ju)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjgubh)}(hEncrypt plaintext data using the skcipher_request handle. That data structure and how it is filled with data is discussed with the skcipher_request_* functions.h]hEncrypt plaintext data using the skcipher_request handle. That data structure and how it is filled with data is discussed with the skcipher_request_* functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjgubh)}(h **Return**h]ju)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjgubh)}(hB0 if the cipher operation was successful; < 0 if an error occurredh]hB0 if the cipher operation was successful; < 0 if an error occurred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$crypto_skcipher_decrypt (C function)c.crypto_skcipher_decrypthNtauh1hhj hhhNhNubh)}(hhh](h)}(h:int crypto_skcipher_decrypt (struct skcipher_request *req)h]h)}(h9int crypto_skcipher_decrypt(struct skcipher_request *req)h](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj0hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhjBhMubj)}(hcrypto_skcipher_decrypth]j)}(hcrypto_skcipher_decrypth]hcrypto_skcipher_decrypt}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj0hhhjBhMubjt )}(h(struct skcipher_request *req)h]jz )}(hstruct skcipher_request *reqh](h)}(hhh]hstruct}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hhh]j)}(hskcipher_requesth]hskcipher_request}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjmodnameN classnameNj*j-)}j0]j7 )}j/ jWsbc.crypto_skcipher_decryptasbuh1hhjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjmubj)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjiubah}(h]h ]h"]h$]h&]j,j-uh1js hj0hhhjBhMubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj,hhhjBhMubah}(h]j'ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjBhMhj)hhubjC)}(hhh]h)}(hdecrypt ciphertexth]hdecrypt ciphertext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jBhj)hhhjBhMubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej jfj jgjhjiuh1hhhhj hNhNubjk)}(hX**Parameters** ``struct skcipher_request *req`` reference to the skcipher_request handle that holds all information needed to perform the cipher operation **Description** Decrypt ciphertext data using the skcipher_request handle. That data structure and how it is filled with data is discussed with the skcipher_request_* functions. **Return** 0 if the cipher operation was successful; < 0 if an error occurredh](h)}(h**Parameters**h]ju)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubj)}(hhh]j)}(h``struct skcipher_request *req`` reference to the skcipher_request handle that holds all information needed to perform the cipher operation h](j)}(h ``struct skcipher_request *req``h]j)}(hj5h]hstruct skcipher_request *req}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhj/ubj)}(hhh]h)}(hjreference to the skcipher_request handle that holds all information needed to perform the cipher operationh]hjreference to the skcipher_request handle that holds all information needed to perform the cipher operation}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]ju)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jthjoubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(hDecrypt ciphertext data using the skcipher_request handle. That data structure and how it is filled with data is discussed with the skcipher_request_* functions.h]hDecrypt ciphertext data using the skcipher_request handle. That data structure and how it is filled with data is discussed with the skcipher_request_* functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(h **Return**h]ju)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubh)}(hB0 if the cipher operation was successful; < 0 if an error occurredh]hB0 if the cipher operation was successful; < 0 if an error occurred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:16: ./include/crypto/skcipher.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj hhhNhNubeh}(h]symmetric-key-cipher-apiah ]h"]symmetric key cipher apiah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h#Symmetric Key Cipher Request Handleh]h#Symmetric Key Cipher Request Handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXThe skcipher_request data structure contains all pointers to data required for the symmetric key cipher operation. This includes the cipher handle (which can be used by multiple skcipher_request instances), pointer to plaintext and ciphertext, asynchronous callback function, etc. It acts as a handle to the skcipher_request_* API calls in a similar way as skcipher handle to the crypto_skcipher_* API calls.h]hXThe skcipher_request data structure contains all pointers to data required for the symmetric key cipher operation. This includes the cipher handle (which can be used by multiple skcipher_request instances), pointer to plaintext and ciphertext, asynchronous callback function, etc. It acts as a handle to the skcipher_request_* API calls in a similar way as skcipher handle to the crypto_skcipher_* API calls.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:22: ./include/crypto/skcipher.hhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$crypto_skcipher_reqsize (C function)c.crypto_skcipher_reqsizehNtauh1hhjhhhNhNubh)}(hhh](h)}(hBunsigned int crypto_skcipher_reqsize (struct crypto_skcipher *tfm)h]h)}(hAunsigned int crypto_skcipher_reqsize(struct crypto_skcipher *tfm)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM$ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM$ubj )}(hinth]hint}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhM$ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM$ubj)}(hcrypto_skcipher_reqsizeh]j)}(hcrypto_skcipher_reqsizeh]hcrypto_skcipher_reqsize}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhjhhhjhM$ubjt )}(h(struct crypto_skcipher *tfm)h]jz )}(hstruct crypto_skcipher *tfmh](h)}(hhh]hstruct}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj~modnameN classnameNj*j-)}j0]j7 )}j/ jDsbc.crypto_skcipher_reqsizeasbuh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjZubj)}(htfmh]htfm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjVubah}(h]h ]h"]h$]h&]j,j-uh1js hjhhhjhM$ubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hjhhhjhM$ubah}(h]jah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjhM$hjhhubjC)}(hhh]h)}(h)obtain size of the request data structureh]h)obtain size of the request data structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jBhjhhhjhM$ubeh}(h]h ](j_functioneh"]h$]h&]jdj_jejjfjjgjhjiuh1hhhhjhNhNubjk)}(h\**Parameters** ``struct crypto_skcipher *tfm`` cipher handle **Return** number of bytesh](h)}(h**Parameters**h]ju)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM#hjubj)}(hhh]j)}(h.``struct crypto_skcipher *tfm`` cipher handle h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hj"h]hstruct crypto_skcipher *tfm}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM hjubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]ju)}(hj]h]hReturn}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj[ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM"hjubh)}(hnumber of bytesh]hnumber of bytes}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%skcipher_request_set_tfm (C function)c.skcipher_request_set_tfmhNtauh1hhjhhhNhNubh)}(hhh](h)}(hYvoid skcipher_request_set_tfm (struct skcipher_request *req, struct crypto_skcipher *tfm)h]h)}(hXvoid skcipher_request_set_tfm(struct skcipher_request *req, struct crypto_skcipher *tfm)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM1ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM1ubj)}(hskcipher_request_set_tfmh]j)}(hskcipher_request_set_tfmh]hskcipher_request_set_tfm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhjhhhjhM1ubjt )}(h;(struct skcipher_request *req, struct crypto_skcipher *tfm)h](jz )}(hstruct skcipher_request *reqh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hskcipher_requesth]hskcipher_request}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjmodnameN classnameNj*j-)}j0]j7 )}j/ jsbc.skcipher_request_set_tfmasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjL )}(hjO h]h*}(hj+hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjubj)}(hreqh]hreq}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubjz )}(hstruct crypto_skcipher *tfmh](h)}(hhh]hstruct}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjqmodnameN classnameNj*j-)}j0]jc.skcipher_request_set_tfmasbuh1hhjMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubjL )}(hjO h]h*}(hjhhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjMubj)}(htfmh]htfm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjubeh}(h]h ]h"]h$]h&]j,j-uh1js hjhhhjhM1ubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hjhhhjhM1ubah}(h]jah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjhM1hjhhubjC)}(hhh]h)}(h)update cipher handle reference in requesth]h)update cipher handle reference in request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM*hjhhubah}(h]h ]h"]h$]h&]uh1jBhjhhhjhM1ubeh}(h]h ](j_functioneh"]h$]h&]jdj_jejjfjjgjhjiuh1hhhhjhNhNubjk)}(hX***Parameters** ``struct skcipher_request *req`` request handle to be modified ``struct crypto_skcipher *tfm`` cipher handle that shall be added to the request handle **Description** Allow the caller to replace the existing skcipher handle in the request data structure with a different one.h](h)}(h**Parameters**h]ju)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM.hjubj)}(hhh](j)}(h?``struct skcipher_request *req`` request handle to be modified h](j)}(h ``struct skcipher_request *req``h]j)}(hj h]hstruct skcipher_request *req}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM+hj ubj)}(hhh]h)}(hrequest handle to be modifiedh]hrequest handle to be modified}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj( hM+hj) ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj( hM+hj ubj)}(hX``struct crypto_skcipher *tfm`` cipher handle that shall be added to the request handle h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hjL h]hstruct crypto_skcipher *tfm}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM,hjF ubj)}(hhh]h)}(h7cipher handle that shall be added to the request handleh]h7cipher handle that shall be added to the request handle}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja hM,hjb ubah}(h]h ]h"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]uh1jhja hM,hj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]ju)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM.hjubh)}(hlAllow the caller to replace the existing skcipher handle in the request data structure with a different one.h]hlAllow the caller to replace the existing skcipher handle in the request data structure with a different one.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#skcipher_request_alloc (C function)c.skcipher_request_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(hYstruct skcipher_request * skcipher_request_alloc (struct crypto_skcipher *tfm, gfp_t gfp)h]h)}(hWstruct skcipher_request *skcipher_request_alloc(struct crypto_skcipher *tfm, gfp_t gfp)h](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMNubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMNubh)}(hhh]j)}(hskcipher_requesth]hskcipher_request}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj modnameN classnameNj*j-)}j0]j7 )}j/ skcipher_request_allocsbc.skcipher_request_allocasbuh1hhj hhhj hMNubh)}(h h]h }(hj !hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMNubjL )}(hjO h]h*}(hj!hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj hhhj hMNubj)}(hskcipher_request_alloch]j)}(hj !h]hskcipher_request_alloc}(hj+!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj hhhj hMNubjt )}(h((struct crypto_skcipher *tfm, gfp_t gfp)h](jz )}(hstruct crypto_skcipher *tfmh](h)}(hhh]hstruct}(hjF!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjB!ubh)}(h h]h }(hjS!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjB!ubh)}(hhh]j)}(hcrypto_skcipherh]hcrypto_skcipher}(hjd!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhja!ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjf!modnameN classnameNj*j-)}j0]j!c.skcipher_request_allocasbuh1hhjB!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjB!ubjL )}(hjO h]h*}(hj!hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjB!ubj)}(htfmh]htfm}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjB!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj>!ubjz )}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj!modnameN classnameNj*j-)}j0]j!c.skcipher_request_allocasbuh1hhj!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hgfph]hgfp}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj>!ubeh}(h]h ]h"]h$]h&]j,j-uh1js hj hhhj hMNubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj hhhj hMNubah}(h]j ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj hMNhj hhubjC)}(hhh]h)}(hallocate request data structureh]hallocate request data structure}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMDhj "hhubah}(h]h ]h"]h$]h&]uh1jBhj hhhj hMNubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej'"jfj'"jgjhjiuh1hhhhjhNhNubjk)}(hX**Parameters** ``struct crypto_skcipher *tfm`` cipher handle to be registered with the request ``gfp_t gfp`` memory allocation flag that is handed to kmalloc by the API call. **Description** Allocate the request data structure that must be used with the skcipher encrypt and decrypt API calls. During the allocation, the provided skcipher handle is registered in the request data structure. **Return** allocated request handle in case of success, or NULL if out of memoryh](h)}(h**Parameters**h]ju)}(hj1"h]h Parameters}(hj3"hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj/"ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMHhj+"ubj)}(hhh](j)}(hP``struct crypto_skcipher *tfm`` cipher handle to be registered with the request h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hjP"h]hstruct crypto_skcipher *tfm}(hjR"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN"ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMEhjJ"ubj)}(hhh]h)}(h/cipher handle to be registered with the requesth]h/cipher handle to be registered with the request}(hji"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje"hMEhjf"ubah}(h]h ]h"]h$]h&]uh1jhjJ"ubeh}(h]h ]h"]h$]h&]uh1jhje"hMEhjG"ubj)}(hP``gfp_t gfp`` memory allocation flag that is handed to kmalloc by the API call. h](j)}(h ``gfp_t gfp``h]j)}(hj"h]h gfp_t gfp}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMFhj"ubj)}(hhh]h)}(hAmemory allocation flag that is handed to kmalloc by the API call.h]hAmemory allocation flag that is handed to kmalloc by the API call.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMFhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMFhjG"ubeh}(h]h ]h"]h$]h&]uh1jhj+"ubh)}(h**Description**h]ju)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj"ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMHhj+"ubh)}(hAllocate the request data structure that must be used with the skcipher encrypt and decrypt API calls. During the allocation, the provided skcipher handle is registered in the request data structure.h]hAllocate the request data structure that must be used with the skcipher encrypt and decrypt API calls. During the allocation, the provided skcipher handle is registered in the request data structure.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMHhj+"ubh)}(h **Return**h]ju)}(hj"h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj"ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMLhj+"ubh)}(hEallocated request handle in case of success, or NULL if out of memoryh]hEallocated request handle in case of success, or NULL if out of memory}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMLhj+"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"skcipher_request_free (C function)c.skcipher_request_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h9void skcipher_request_free (struct skcipher_request *req)h]h)}(h8void skcipher_request_free(struct skcipher_request *req)h](j )}(hvoidh]hvoid}(hj0#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj,#hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMaubh)}(h h]h }(hj?#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,#hhhj>#hMaubj)}(hskcipher_request_freeh]j)}(hskcipher_request_freeh]hskcipher_request_free}(hjQ#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjM#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj,#hhhj>#hMaubjt )}(h(struct skcipher_request *req)h]jz )}(hstruct skcipher_request *reqh](h)}(hhh]hstruct}(hjm#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhji#ubh)}(h h]h }(hjz#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji#ubh)}(hhh]j)}(hskcipher_requesth]hskcipher_request}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj#modnameN classnameNj*j-)}j0]j7 )}j/ jS#sbc.skcipher_request_freeasbuh1hhji#ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji#ubjL )}(hjO h]h*}(hj#hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hji#ubj)}(hreqh]hreq}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji#ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hje#ubah}(h]h ]h"]h$]h&]j,j-uh1js hj,#hhhj>#hMaubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj(#hhhj>#hMaubah}(h]j##ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj>#hMahj%#hhubjC)}(hhh]h)}(h'zeroize and free request data structureh]h'zeroize and free request data structure}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM^hj#hhubah}(h]h ]h"]h$]h&]uh1jBhj%#hhhj>#hMaubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej$jfj$jgjhjiuh1hhhhjhNhNubjk)}(hc**Parameters** ``struct skcipher_request *req`` request data structure cipher handle to be freedh](h)}(h**Parameters**h]ju)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj$ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMbhj $ubj)}(hhh]j)}(hQ``struct skcipher_request *req`` request data structure cipher handle to be freedh](j)}(h ``struct skcipher_request *req``h]j)}(hj1$h]hstruct skcipher_request *req}(hj3$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/$ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMdhj+$ubj)}(hhh]h)}(h0request data structure cipher handle to be freedh]h0request data structure cipher handle to be freed}(hjJ$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM_hjG$ubah}(h]h ]h"]h$]h&]uh1jhj+$ubeh}(h]h ]h"]h$]h&]uh1jhjF$hMdhj($ubah}(h]h ]h"]h$]h&]uh1jhj $ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*skcipher_request_set_callback (C function)c.skcipher_request_set_callbackhNtauh1hhjhhhNhNubh)}(hhh](h)}(hsvoid skcipher_request_set_callback (struct skcipher_request *req, u32 flags, crypto_completion_t compl, void *data)h]h)}(hrvoid skcipher_request_set_callback(struct skcipher_request *req, u32 flags, crypto_completion_t compl, void *data)h](j )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj$hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj$hMubj)}(hskcipher_request_set_callbackh]j)}(hskcipher_request_set_callbackh]hskcipher_request_set_callback}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj$hhhj$hMubjt )}(hP(struct skcipher_request *req, u32 flags, crypto_completion_t compl, void *data)h](jz )}(hstruct skcipher_request *reqh](h)}(hhh]hstruct}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(hskcipher_requesth]hskcipher_request}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj$modnameN classnameNj*j-)}j0]j7 )}j/ j$sbc.skcipher_request_set_callbackasbuh1hhj$ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubjL )}(hjO h]h*}(hj%hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj$ubj)}(hreqh]hreq}(hj!%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj$ubjz )}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hj=%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:%ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj?%modnameN classnameNj*j-)}j0]j%c.skcipher_request_set_callbackasbuh1hhj6%ubh)}(h h]h }(hj[%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6%ubj)}(hflagsh]hflags}(hji%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj$ubjz )}(hcrypto_completion_t complh](h)}(hhh]j)}(hcrypto_completion_th]hcrypto_completion_t}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj%modnameN classnameNj*j-)}j0]j%c.skcipher_request_set_callbackasbuh1hhj~%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~%ubj)}(hcomplh]hcompl}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj$ubjz )}(h void *datah](j )}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubjL )}(hjO h]h*}(hj%hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj%ubj)}(hdatah]hdata}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj$ubeh}(h]h ]h"]h$]h&]j,j-uh1js hj$hhhj$hMubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj$hhhj$hMubah}(h]j~$ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj$hMhj$hhubjC)}(hhh]h)}(h"set asynchronous callback functionh]h"set asynchronous callback function}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMnhj&hhubah}(h]h ]h"]h$]h&]uh1jBhj$hhhj$hMubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej5&jfj5&jgjhjiuh1hhhhjhNhNubjk)}(hX**Parameters** ``struct skcipher_request *req`` request handle ``u32 flags`` specify zero or an ORing of the flags CRYPTO_TFM_REQ_MAY_BACKLOG the request queue may back log and increase the wait queue beyond the initial maximum size; CRYPTO_TFM_REQ_MAY_SLEEP the request processing may sleep ``crypto_completion_t compl`` callback function pointer to be registered with the request handle ``void *data`` The data pointer refers to memory that is not used by the kernel crypto API, but provided to the callback function for it to use. Here, the caller can provide a reference to memory the callback function can operate on. As the callback function is invoked asynchronously to the related functionality, it may need to access data structures of the related functionality which can be referenced using this pointer. The callback function can access the memory via the "data" field in the crypto_async_request data structure provided to the callback function. **Description** This function allows setting the callback function that is triggered once the cipher operation completes. The callback function is registered with the skcipher_request handle and must comply with the following template:: void callback_function(struct crypto_async_request *req, int error)h](h)}(h**Parameters**h]ju)}(hj?&h]h Parameters}(hjA&hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj=&ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMrhj9&ubj)}(hhh](j)}(h0``struct skcipher_request *req`` request handle h](j)}(h ``struct skcipher_request *req``h]j)}(hj^&h]hstruct skcipher_request *req}(hj`&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMohjX&ubj)}(hhh]h)}(hrequest handleh]hrequest handle}(hjw&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs&hMohjt&ubah}(h]h ]h"]h$]h&]uh1jhjX&ubeh}(h]h ]h"]h$]h&]uh1jhjs&hMohjU&ubj)}(h``u32 flags`` specify zero or an ORing of the flags CRYPTO_TFM_REQ_MAY_BACKLOG the request queue may back log and increase the wait queue beyond the initial maximum size; CRYPTO_TFM_REQ_MAY_SLEEP the request processing may sleep h](j)}(h ``u32 flags``h]j)}(hj&h]h u32 flags}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMshj&ubj)}(hhh]h)}(hspecify zero or an ORing of the flags CRYPTO_TFM_REQ_MAY_BACKLOG the request queue may back log and increase the wait queue beyond the initial maximum size; CRYPTO_TFM_REQ_MAY_SLEEP the request processing may sleeph]hspecify zero or an ORing of the flags CRYPTO_TFM_REQ_MAY_BACKLOG the request queue may back log and increase the wait queue beyond the initial maximum size; CRYPTO_TFM_REQ_MAY_SLEEP the request processing may sleep}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMphj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMshjU&ubj)}(ha``crypto_completion_t compl`` callback function pointer to be registered with the request handle h](j)}(h``crypto_completion_t compl``h]j)}(hj&h]hcrypto_completion_t compl}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMthj&ubj)}(hhh]h)}(hBcallback function pointer to be registered with the request handleh]hBcallback function pointer to be registered with the request handle}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMthj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMthjU&ubj)}(hX9``void *data`` The data pointer refers to memory that is not used by the kernel crypto API, but provided to the callback function for it to use. Here, the caller can provide a reference to memory the callback function can operate on. As the callback function is invoked asynchronously to the related functionality, it may need to access data structures of the related functionality which can be referenced using this pointer. The callback function can access the memory via the "data" field in the crypto_async_request data structure provided to the callback function. h](j)}(h``void *data``h]j)}(hj 'h]h void *data}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM|hj'ubj)}(hhh]h)}(hX)The data pointer refers to memory that is not used by the kernel crypto API, but provided to the callback function for it to use. Here, the caller can provide a reference to memory the callback function can operate on. As the callback function is invoked asynchronously to the related functionality, it may need to access data structures of the related functionality which can be referenced using this pointer. The callback function can access the memory via the "data" field in the crypto_async_request data structure provided to the callback function.h]hX-The data pointer refers to memory that is not used by the kernel crypto API, but provided to the callback function for it to use. Here, the caller can provide a reference to memory the callback function can operate on. As the callback function is invoked asynchronously to the related functionality, it may need to access data structures of the related functionality which can be referenced using this pointer. The callback function can access the memory via the “data” field in the crypto_async_request data structure provided to the callback function.}(hj#'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMuhj 'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM|hjU&ubeh}(h]h ]h"]h$]h&]uh1jhj9&ubh)}(h**Description**h]ju)}(hjF'h]h Description}(hjH'hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjD'ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM~hj9&ubh)}(hiThis function allows setting the callback function that is triggered once the cipher operation completes.h]hiThis function allows setting the callback function that is triggered once the cipher operation completes.}(hj\'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhM~hj9&ubh)}(hrThe callback function is registered with the skcipher_request handle and must comply with the following template::h]hqThe callback function is registered with the skcipher_request handle and must comply with the following template:}(hjk'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj9&ubj)}(hCvoid callback_function(struct crypto_async_request *req, int error)h]hCvoid callback_function(struct crypto_async_request *req, int error)}hjz'sbah}(h]h ]h"]h$]h&]j,j-uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj9&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'skcipher_request_set_crypt (C function)c.skcipher_request_set_crypthNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid skcipher_request_set_crypt (struct skcipher_request *req, struct scatterlist *src, struct scatterlist *dst, unsigned int cryptlen, void *iv)h]h)}(hvoid skcipher_request_set_crypt(struct skcipher_request *req, struct scatterlist *src, struct scatterlist *dst, unsigned int cryptlen, void *iv)h](j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj'hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj'hMubj)}(hskcipher_request_set_crypth]j)}(hskcipher_request_set_crypth]hskcipher_request_set_crypt}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj'hhhj'hMubjt )}(hq(struct skcipher_request *req, struct scatterlist *src, struct scatterlist *dst, unsigned int cryptlen, void *iv)h](jz )}(hstruct skcipher_request *reqh](h)}(hhh]hstruct}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hhh]j)}(hskcipher_requesth]hskcipher_request}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj(modnameN classnameNj*j-)}j0]j7 )}j/ j'sbc.skcipher_request_set_cryptasbuh1hhj'ubh)}(h h]h }(hj$(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubjL )}(hjO h]h*}(hj2(hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj'ubj)}(hreqh]hreq}(hj?(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj'ubjz )}(hstruct scatterlist *srch](h)}(hhh]hstruct}(hjX(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjT(ubh)}(h h]h }(hje(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjT(ubh)}(hhh]j)}(h scatterlisth]h scatterlist}(hjv(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjs(ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjx(modnameN classnameNj*j-)}j0]j (c.skcipher_request_set_cryptasbuh1hhjT(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjT(ubjL )}(hjO h]h*}(hj(hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjT(ubj)}(hsrch]hsrc}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjT(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj'ubjz )}(hstruct scatterlist *dsth](h)}(hhh]hstruct}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubh)}(hhh]j)}(h scatterlisth]h scatterlist}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj(modnameN classnameNj*j-)}j0]j (c.skcipher_request_set_cryptasbuh1hhj(ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubjL )}(hjO h]h*}(hj)hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj(ubj)}(hdsth]hdst}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj'ubjz )}(hunsigned int cryptlenh](j )}(hunsignedh]hunsigned}(hj8)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj4)ubh)}(h h]h }(hjF)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4)ubj )}(hinth]hint}(hjT)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj4)ubh)}(h h]h }(hjb)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4)ubj)}(hcryptlenh]hcryptlen}(hjp)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj'ubjz )}(hvoid *ivh](j )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubjL )}(hjO h]h*}(hj)hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj)ubj)}(hivh]hiv}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj'ubeh}(h]h ]h"]h$]h&]j,j-uh1js hj'hhhj'hMubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj'hhhj'hMubah}(h]j'ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj'hMhj'hhubjC)}(hhh]h)}(hset data buffersh]hset data buffers}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj)hhubah}(h]h ]h"]h$]h&]uh1jBhj'hhhj'hMubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej)jfj)jgjhjiuh1hhhhjhNhNubjk)}(hX**Parameters** ``struct skcipher_request *req`` request handle ``struct scatterlist *src`` source scatter / gather list ``struct scatterlist *dst`` destination scatter / gather list ``unsigned int cryptlen`` number of bytes to process from **src** ``void *iv`` IV for the cipher operation which must comply with the IV size defined by crypto_skcipher_ivsize **Description** This function allows setting of the source data and destination data scatter / gather lists. For encryption, the source is treated as the plaintext and the destination is the ciphertext. For a decryption operation, the use is reversed - the source is the ciphertext and the destination is the plaintext.h](h)}(h**Parameters**h]ju)}(hj)h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj)ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj)ubj)}(hhh](j)}(h0``struct skcipher_request *req`` request handle h](j)}(h ``struct skcipher_request *req``h]j)}(hj*h]hstruct skcipher_request *req}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj*ubj)}(hhh]h)}(hrequest handleh]hrequest handle}(hj6*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2*hMhj3*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj2*hMhj*ubj)}(h9``struct scatterlist *src`` source scatter / gather list h](j)}(h``struct scatterlist *src``h]j)}(hjV*h]hstruct scatterlist *src}(hjX*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhjP*ubj)}(hhh]h)}(hsource scatter / gather listh]hsource scatter / gather list}(hjo*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk*hMhjl*ubah}(h]h ]h"]h$]h&]uh1jhjP*ubeh}(h]h ]h"]h$]h&]uh1jhjk*hMhj*ubj)}(h>``struct scatterlist *dst`` destination scatter / gather list h](j)}(h``struct scatterlist *dst``h]j)}(hj*h]hstruct scatterlist *dst}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj*ubj)}(hhh]h)}(h!destination scatter / gather listh]h!destination scatter / gather list}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj*ubj)}(hB``unsigned int cryptlen`` number of bytes to process from **src** h](j)}(h``unsigned int cryptlen``h]j)}(hj*h]hunsigned int cryptlen}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj*ubj)}(hhh]h)}(h'number of bytes to process from **src**h](h number of bytes to process from }(hj*hhhNhNubju)}(h**src**h]hsrc}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj*ubeh}(h]h ]h"]h$]h&]uh1hhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj*ubj)}(hn``void *iv`` IV for the cipher operation which must comply with the IV size defined by crypto_skcipher_ivsize h](j)}(h ``void *iv``h]j)}(hj+h]hvoid *iv}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj +ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj +ubj)}(hhh]h)}(h`IV for the cipher operation which must comply with the IV size defined by crypto_skcipher_ivsizeh]h`IV for the cipher operation which must comply with the IV size defined by crypto_skcipher_ivsize}(hj(+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj%+ubah}(h]h ]h"]h$]h&]uh1jhj +ubeh}(h]h ]h"]h$]h&]uh1jhj$+hMhj*ubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]ju)}(hjK+h]h Description}(hjM+hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjI+ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj)ubh)}(h\This function allows setting of the source data and destination data scatter / gather lists.h]h\This function allows setting of the source data and destination data scatter / gather lists.}(hja+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj)ubh)}(hFor encryption, the source is treated as the plaintext and the destination is the ciphertext. For a decryption operation, the use is reversed - the source is the ciphertext and the destination is the plaintext.h]hFor encryption, the source is treated as the plaintext and the destination is the ciphertext. For a decryption operation, the use is reversed - the source is the ciphertext and the destination is the plaintext.}(hjp+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:25: ./include/crypto/skcipher.hhMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhjhhhNhNubeh}(h]#symmetric-key-cipher-request-handleah ]h"]#symmetric key cipher request handleah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hSingle Block Cipher APIh]hSingle Block Cipher API}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hhhhhKubh)}(h~The single block cipher API is used with the ciphers of type CRYPTO_ALG_TYPE_CIPHER (listed as type "cipher" in /proc/crypto).h]hThe single block cipher API is used with the ciphers of type CRYPTO_ALG_TYPE_CIPHER (listed as type “cipher” in /proc/crypto).}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:31: ./include/crypto/internal/cipher.hhKhj+hhubh)}(hUsing the single block cipher API calls, operations with the basic cipher primitive can be implemented. These cipher primitives exclude any block chaining operations including IV handling.h]hUsing the single block cipher API calls, operations with the basic cipher primitive can be implemented. These cipher primitives exclude any block chaining operations including IV handling.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:31: ./include/crypto/internal/cipher.hhKhj+hhubh)}(hX:The purpose of this single block cipher API is to support the implementation of templates or other concepts that only need to perform the cipher operation on one block at a time. Templates invoke the underlying cipher primitive block-wise and process either the input or the output data of these cipher operations.h]hX:The purpose of this single block cipher API is to support the implementation of templates or other concepts that only need to perform the cipher operation on one block at a time. Templates invoke the underlying cipher primitive block-wise and process either the input or the output data of these cipher operations.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:31: ./include/crypto/internal/cipher.hhKhj+hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ crypto_alloc_cipher (C function)c.crypto_alloc_cipherhNtauh1hhj+hhhNhNubh)}(hhh](h)}(hUstruct crypto_cipher * crypto_alloc_cipher (const char *alg_name, u32 type, u32 mask)h]h)}(hSstruct crypto_cipher *crypto_alloc_cipher(const char *alg_name, u32 type, u32 mask)h](h)}(hhh]hstruct}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK8ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj+hK8ubh)}(hhh]j)}(h crypto_cipherh]h crypto_cipher}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj,modnameN classnameNj*j-)}j0]j7 )}j/ crypto_alloc_ciphersbc.crypto_alloc_cipherasbuh1hhj+hhhj+hK8ubh)}(h h]h }(hj%,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj+hK8ubjL )}(hjO h]h*}(hj3,hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj+hhhj+hK8ubj)}(hcrypto_alloc_cipherh]j)}(hj",h]hcrypto_alloc_cipher}(hjD,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@,ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj+hhhj+hK8ubjt )}(h*(const char *alg_name, u32 type, u32 mask)h](jz )}(hconst char *alg_nameh](h)}(hj h]hconst}(hj_,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[,ubh)}(h h]h }(hjl,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[,ubj )}(hcharh]hchar}(hjz,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj[,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[,ubjL )}(hjO h]h*}(hj,hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj[,ubj)}(halg_nameh]halg_name}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjW,ubjz )}(hu32 typeh](h)}(hhh]j)}(hu32h]hu32}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj,modnameN classnameNj*j-)}j0]j ,c.crypto_alloc_cipherasbuh1hhj,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(htypeh]htype}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjW,ubjz )}(hu32 maskh](h)}(hhh]j)}(hu32h]hu32}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj -modnameN classnameNj*j-)}j0]j ,c.crypto_alloc_cipherasbuh1hhj-ubh)}(h h]h }(hj%-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hmaskh]hmask}(hj3-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjW,ubeh}(h]h ]h"]h$]h&]j,j-uh1js hj+hhhj+hK8ubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj+hhhj+hK8ubah}(h]j+ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj+hK8hj+hhubjC)}(hhh]h)}(h#allocate single block cipher handleh]h#allocate single block cipher handle}(hj]-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK+hjZ-hhubah}(h]h ]h"]h$]h&]uh1jBhj+hhhj+hK8ubeh}(h]h ](j_functioneh"]h$]h&]jdj_jeju-jfju-jgjhjiuh1hhhhj+hNhNubjk)}(hX9**Parameters** ``const char *alg_name`` is the cra_name / name or cra_driver_name / driver name of the single block cipher ``u32 type`` specifies the type of the cipher ``u32 mask`` specifies the mask for the cipher **Description** Allocate a cipher handle for a single block cipher. The returned struct crypto_cipher is the cipher handle that is required for any subsequent API invocation for that single block cipher. **Return** allocated cipher handle in case of success; IS_ERR() is true in case of an error, PTR_ERR() returns the error code.h](h)}(h**Parameters**h]ju)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj}-ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK/hjy-ubj)}(hhh](j)}(hl``const char *alg_name`` is the cra_name / name or cra_driver_name / driver name of the single block cipher h](j)}(h``const char *alg_name``h]j)}(hj-h]hconst char *alg_name}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK-hj-ubj)}(hhh]h)}(hRis the cra_name / name or cra_driver_name / driver name of the single block cipherh]hRis the cra_name / name or cra_driver_name / driver name of the single block cipher}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK,hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hK-hj-ubj)}(h.``u32 type`` specifies the type of the cipher h](j)}(h ``u32 type``h]j)}(hj-h]hu32 type}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK.hj-ubj)}(hhh]h)}(h specifies the type of the cipherh]h specifies the type of the cipher}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hK.hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hK.hj-ubj)}(h/``u32 mask`` specifies the mask for the cipher h](j)}(h ``u32 mask``h]j)}(hj.h]hu32 mask}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK/hj .ubj)}(hhh]h)}(h!specifies the mask for the cipherh]h!specifies the mask for the cipher}(hj*.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&.hK/hj'.ubah}(h]h ]h"]h$]h&]uh1jhj .ubeh}(h]h ]h"]h$]h&]uh1jhj&.hK/hj-ubeh}(h]h ]h"]h$]h&]uh1jhjy-ubh)}(h**Description**h]ju)}(hjL.h]h Description}(hjN.hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjJ.ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK1hjy-ubh)}(hAllocate a cipher handle for a single block cipher. The returned struct crypto_cipher is the cipher handle that is required for any subsequent API invocation for that single block cipher.h]hAllocate a cipher handle for a single block cipher. The returned struct crypto_cipher is the cipher handle that is required for any subsequent API invocation for that single block cipher.}(hjb.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK1hjy-ubh)}(h **Return**h]ju)}(hjs.h]hReturn}(hju.hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjq.ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK5hjy-ubj)}(hhh]j)}(hsallocated cipher handle in case of success; IS_ERR() is true in case of an error, PTR_ERR() returns the error code.h](j)}(hDallocated cipher handle in case of success; IS_ERR() is true in caseh]hDallocated cipher handle in case of success; IS_ERR() is true in case}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK5hj.ubj)}(hhh]h)}(h.of an error, PTR_ERR() returns the error code.h]h.of an error, PTR_ERR() returns the error code.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhK6hj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hK5hj.ubah}(h]h ]h"]h$]h&]uh1jhjy-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrypto_free_cipher (C function)c.crypto_free_cipherhNtauh1hhj+hhhNhNubh)}(hhh](h)}(h3void crypto_free_cipher (struct crypto_cipher *tfm)h]h)}(h2void crypto_free_cipher(struct crypto_cipher *tfm)h](j )}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj.hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKKubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj.hKKubj)}(hcrypto_free_cipherh]j)}(hcrypto_free_cipherh]hcrypto_free_cipher}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj.hhhj.hKKubjt )}(h(struct crypto_cipher *tfm)h]jz )}(hstruct crypto_cipher *tfmh](h)}(hhh]hstruct}(hj /hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubh)}(h h]h }(hj-/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubh)}(hhh]j)}(h crypto_cipherh]h crypto_cipher}(hj>/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;/ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj@/modnameN classnameNj*j-)}j0]j7 )}j/ j/sbc.crypto_free_cipherasbuh1hhj/ubh)}(h h]h }(hj^/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubjL )}(hjO h]h*}(hjl/hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj/ubj)}(htfmh]htfm}(hjy/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj/ubah}(h]h ]h"]h$]h&]j,j-uh1js hj.hhhj.hKKubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj.hhhj.hKKubah}(h]j.ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj.hKKhj.hhubjC)}(hhh]h)}(h/zeroize and free the single block cipher handleh]h/zeroize and free the single block cipher handle}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKHhj/hhubah}(h]h ]h"]h$]h&]uh1jBhj.hhhj.hKKubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej/jfj/jgjhjiuh1hhhhj+hNhNubjk)}(hI**Parameters** ``struct crypto_cipher *tfm`` cipher handle to be freedh](h)}(h**Parameters**h]ju)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj/ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKLhj/ubj)}(hhh]j)}(h7``struct crypto_cipher *tfm`` cipher handle to be freedh](j)}(h``struct crypto_cipher *tfm``h]j)}(hj/h]hstruct crypto_cipher *tfm}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKNhj/ubj)}(hhh]h)}(hcipher handle to be freedh]hcipher handle to be freed}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKIhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKNhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrypto_has_cipher (C function)c.crypto_has_cipherhNtauh1hhj+hhhNhNubh)}(hhh](h)}(h@int crypto_has_cipher (const char *alg_name, u32 type, u32 mask)h]h)}(h?int crypto_has_cipher(const char *alg_name, u32 type, u32 mask)h](j )}(hinth]hint}(hj>0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj:0hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKZubh)}(h h]h }(hjM0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:0hhhjL0hKZubj)}(hcrypto_has_cipherh]j)}(hcrypto_has_cipherh]hcrypto_has_cipher}(hj_0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[0ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj:0hhhjL0hKZubjt )}(h*(const char *alg_name, u32 type, u32 mask)h](jz )}(hconst char *alg_nameh](h)}(hj h]hconst}(hj{0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw0ubj )}(hcharh]hchar}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjw0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw0ubjL )}(hjO h]h*}(hj0hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjw0ubj)}(halg_nameh]halg_name}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjw0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjs0ubjz )}(hu32 typeh](h)}(hhh]j)}(hu32h]hu32}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj0modnameN classnameNj*j-)}j0]j7 )}j/ ja0sbc.crypto_has_cipherasbuh1hhj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(htypeh]htype}(hj 1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjs0ubjz )}(hu32 maskh](h)}(hhh]j)}(hu32h]hu32}(hj%1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"1ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj'1modnameN classnameNj*j-)}j0]j0c.crypto_has_cipherasbuh1hhj1ubh)}(h h]h }(hjC1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hmaskh]hmask}(hjQ1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hjs0ubeh}(h]h ]h"]h$]h&]j,j-uh1js hj:0hhhjL0hKZubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj60hhhjL0hKZubah}(h]j10ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhjL0hKZhj30hhubjC)}(hhh]h)}(h4Search for the availability of a single block cipherh]h4Search for the availability of a single block cipher}(hj{1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKQhjx1hhubah}(h]h ]h"]h$]h&]uh1jBhj30hhhjL0hKZubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej1jfj1jgjhjiuh1hhhhj+hNhNubjk)}(hXL**Parameters** ``const char *alg_name`` is the cra_name / name or cra_driver_name / driver name of the single block cipher ``u32 type`` specifies the type of the cipher ``u32 mask`` specifies the mask for the cipher **Return** true when the single block cipher is known to the kernel crypto API; false otherwiseh](h)}(h**Parameters**h]ju)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj1ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKUhj1ubj)}(hhh](j)}(hl``const char *alg_name`` is the cra_name / name or cra_driver_name / driver name of the single block cipher h](j)}(h``const char *alg_name``h]j)}(hj1h]hconst char *alg_name}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKShj1ubj)}(hhh]h)}(hRis the cra_name / name or cra_driver_name / driver name of the single block cipherh]hRis the cra_name / name or cra_driver_name / driver name of the single block cipher}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKRhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hKShj1ubj)}(h.``u32 type`` specifies the type of the cipher h](j)}(h ``u32 type``h]j)}(hj1h]hu32 type}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKThj1ubj)}(hhh]h)}(h specifies the type of the cipherh]h specifies the type of the cipher}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 2hKThj 2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj 2hKThj1ubj)}(h/``u32 mask`` specifies the mask for the cipher h](j)}(h ``u32 mask``h]j)}(hj/2h]hu32 mask}(hj12hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-2ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKUhj)2ubj)}(hhh]h)}(h!specifies the mask for the cipherh]h!specifies the mask for the cipher}(hjH2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD2hKUhjE2ubah}(h]h ]h"]h$]h&]uh1jhj)2ubeh}(h]h ]h"]h$]h&]uh1jhjD2hKUhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h **Return**h]ju)}(hjj2h]hReturn}(hjl2hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjh2ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKWhj1ubj)}(hhh]j)}(hTtrue when the single block cipher is known to the kernel crypto API; false otherwiseh](j)}(hDtrue when the single block cipher is known to the kernel crypto API;h]hDtrue when the single block cipher is known to the kernel crypto API;}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKWhj2ubj)}(hhh]h)}(hfalse otherwiseh]hfalse otherwise}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKXhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKWhj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$crypto_cipher_blocksize (C function)c.crypto_cipher_blocksizehNtauh1hhj+hhhNhNubh)}(hhh](h)}(h@unsigned int crypto_cipher_blocksize (struct crypto_cipher *tfm)h]h)}(h?unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm)h](j )}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj2hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKmubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhj2hKmubj )}(hinth]hint}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj2hhhj2hKmubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhj2hKmubj)}(hcrypto_cipher_blocksizeh]j)}(hcrypto_cipher_blocksizeh]hcrypto_cipher_blocksize}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj2hhhj2hKmubjt )}(h(struct crypto_cipher *tfm)h]jz )}(hstruct crypto_cipher *tfmh](h)}(hhh]hstruct}(hj33hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/3ubh)}(h h]h }(hj@3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/3ubh)}(hhh]j)}(h crypto_cipherh]h crypto_cipher}(hjQ3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjN3ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjS3modnameN classnameNj*j-)}j0]j7 )}j/ j3sbc.crypto_cipher_blocksizeasbuh1hhj/3ubh)}(h h]h }(hjq3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/3ubjL )}(hjO h]h*}(hj3hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj/3ubj)}(htfmh]htfm}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj+3ubah}(h]h ]h"]h$]h&]j,j-uh1js hj2hhhj2hKmubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj2hhhj2hKmubah}(h]j2ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj2hKmhj2hhubjC)}(hhh]h)}(hobtain block size for cipherh]hobtain block size for cipher}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKdhj3hhubah}(h]h ]h"]h$]h&]uh1jBhj2hhhj2hKmubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej3jfj3jgjhjiuh1hhhhj+hNhNubjk)}(hXR**Parameters** ``struct crypto_cipher *tfm`` cipher handle **Description** The block size for the single block cipher referenced with the cipher handle tfm is returned. The caller may use that information to allocate appropriate memory for the data returned by the encryption or decryption operation **Return** block size of cipherh](h)}(h**Parameters**h]ju)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj3ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhhj3ubj)}(hhh]j)}(h,``struct crypto_cipher *tfm`` cipher handle h](j)}(h``struct crypto_cipher *tfm``h]j)}(hj3h]hstruct crypto_cipher *tfm}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKehj3ubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 4hKehj 4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj 4hKehj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]ju)}(hj24h]h Description}(hj44hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj04ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKghj3ubh)}(hThe block size for the single block cipher referenced with the cipher handle tfm is returned. The caller may use that information to allocate appropriate memory for the data returned by the encryption or decryption operationh]hThe block size for the single block cipher referenced with the cipher handle tfm is returned. The caller may use that information to allocate appropriate memory for the data returned by the encryption or decryption operation}(hjH4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKghj3ubh)}(h **Return**h]ju)}(hjY4h]hReturn}(hj[4hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjW4ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKkhj3ubh)}(hblock size of cipherh]hblock size of cipher}(hjo4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKkhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!crypto_cipher_setkey (C function)c.crypto_cipher_setkeyhNtauh1hhj+hhhNhNubh)}(hhh](h)}(hXint crypto_cipher_setkey (struct crypto_cipher *tfm, const u8 *key, unsigned int keylen)h]h)}(hWint crypto_cipher_setkey(struct crypto_cipher *tfm, const u8 *key, unsigned int keylen)h](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj4hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhj4hKubj)}(hcrypto_cipher_setkeyh]j)}(hcrypto_cipher_setkeyh]hcrypto_cipher_setkey}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj4hhhj4hKubjt )}(h?(struct crypto_cipher *tfm, const u8 *key, unsigned int keylen)h](jz )}(hstruct crypto_cipher *tfmh](h)}(hhh]hstruct}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(h crypto_cipherh]h crypto_cipher}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj4modnameN classnameNj*j-)}j0]j7 )}j/ j4sbc.crypto_cipher_setkeyasbuh1hhj4ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubjL )}(hjO h]h*}(hj'5hhhN`chNubah}(h]h ]jX ah"]h$]h&]uh1jK hj4ubj)}(htfmh]htfm}(hj45hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj4ubjz )}(h const u8 *keyh](h)}(hj h]hconst}(hjM5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI5ubh)}(h h]h }(hjZ5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI5ubh)}(hhh]j)}(hu8h]hu8}(hjk5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjh5ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetjm5modnameN classnameNj*j-)}j0]j5c.crypto_cipher_setkeyasbuh1hhjI5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI5ubjL )}(hjO h]h*}(hj5hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hjI5ubj)}(hkeyh]hkey}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjI5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj4ubjz )}(hunsigned int keylenh](j )}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hkeylenh]hkeylen}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj4ubeh}(h]h ]h"]h$]h&]j,j-uh1js hj4hhhj4hKubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj4hhhj4hKubah}(h]j4ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj4hKhj4hhubjC)}(hhh]h)}(hset key for cipherh]hset key for cipher}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj6hhubah}(h]h ]h"]h$]h&]uh1jBhj4hhhj4hKubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej76jfj76jgjhjiuh1hhhhj+hNhNubjk)}(hXU**Parameters** ``struct crypto_cipher *tfm`` cipher handle ``const u8 *key`` buffer holding the key ``unsigned int keylen`` length of the key in bytes **Description** The caller provided key is set for the single block cipher referenced by the cipher handle. Note, the key length determines the cipher type. Many block ciphers implement different cipher modes depending on the key size, such as AES-128 vs AES-192 vs. AES-256. When providing a 16 byte key for an AES cipher handle, AES-128 is performed. **Return** 0 if the setting of the key was successful; < 0 if an error occurredh](h)}(h**Parameters**h]ju)}(hjA6h]h Parameters}(hjC6hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj?6ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj;6ubj)}(hhh](j)}(h,``struct crypto_cipher *tfm`` cipher handle h](j)}(h``struct crypto_cipher *tfm``h]j)}(hj`6h]hstruct crypto_cipher *tfm}(hjb6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^6ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhjZ6ubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hjy6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju6hKhjv6ubah}(h]h ]h"]h$]h&]uh1jhjZ6ubeh}(h]h ]h"]h$]h&]uh1jhju6hKhjW6ubj)}(h)``const u8 *key`` buffer holding the key h](j)}(h``const u8 *key``h]j)}(hj6h]h const u8 *key}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj6ubj)}(hhh]h)}(hbuffer holding the keyh]hbuffer holding the key}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjW6ubj)}(h3``unsigned int keylen`` length of the key in bytes h](j)}(h``unsigned int keylen``h]j)}(hj6h]hunsigned int keylen}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj6ubj)}(hhh]h)}(hlength of the key in bytesh]hlength of the key in bytes}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjW6ubeh}(h]h ]h"]h$]h&]uh1jhj;6ubh)}(h**Description**h]ju)}(hj 7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj 7ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj;6ubh)}(h[The caller provided key is set for the single block cipher referenced by the cipher handle.h]h[The caller provided key is set for the single block cipher referenced by the cipher handle.}(hj#7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj;6ubh)}(hNote, the key length determines the cipher type. Many block ciphers implement different cipher modes depending on the key size, such as AES-128 vs AES-192 vs. AES-256. When providing a 16 byte key for an AES cipher handle, AES-128 is performed.h]hNote, the key length determines the cipher type. Many block ciphers implement different cipher modes depending on the key size, such as AES-128 vs AES-192 vs. AES-256. When providing a 16 byte key for an AES cipher handle, AES-128 is performed.}(hj27hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj;6ubh)}(h **Return**h]ju)}(hjC7h]hReturn}(hjE7hhhNhNubah}(h]h ]h"]h$]h&]uh1jthjA7ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj;6ubh)}(hD0 if the setting of the key was successful; < 0 if an error occurredh]hD0 if the setting of the key was successful; < 0 if an error occurred}(hjY7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj;6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jjhj+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&crypto_cipher_encrypt_one (C function)c.crypto_cipher_encrypt_onehNtauh1hhj+hhhNhNubh)}(hhh](h)}(hRvoid crypto_cipher_encrypt_one (struct crypto_cipher *tfm, u8 *dst, const u8 *src)h]h)}(hQvoid crypto_cipher_encrypt_one(struct crypto_cipher *tfm, u8 *dst, const u8 *src)h](j )}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj7hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhj7hKubj)}(hcrypto_cipher_encrypt_oneh]j)}(hcrypto_cipher_encrypt_oneh]hcrypto_cipher_encrypt_one}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1jhj7hhhj7hKubjt )}(h3(struct crypto_cipher *tfm, u8 *dst, const u8 *src)h](jz )}(hstruct crypto_cipher *tfmh](h)}(hhh]hstruct}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hhh]j)}(h crypto_cipherh]h crypto_cipher}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj7modnameN classnameNj*j-)}j0]j7 )}j/ j7sbc.crypto_cipher_encrypt_oneasbuh1hhj7ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubjL )}(hjO h]h*}(hj8hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj7ubj)}(htfmh]htfm}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj7ubjz )}(hu8 *dsth](h)}(hhh]j)}(hu8h]hu8}(hj:8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj78ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj<8modnameN classnameNj*j-)}j0]j7c.crypto_cipher_encrypt_oneasbuh1hhj38ubh)}(h h]h }(hjX8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj38ubjL )}(hjO h]h*}(hjf8hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj38ubj)}(hdsth]hdst}(hjs8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj38ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj7ubjz )}(h const u8 *srch](h)}(hj h]hconst}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(hu8h]hu8}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj_reftypej/ reftargetj8modnameN classnameNj*j-)}j0]j7c.crypto_cipher_encrypt_oneasbuh1hhj8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubjL )}(hjO h]h*}(hj8hhhNhNubah}(h]h ]jX ah"]h$]h&]uh1jK hj8ubj)}(hsrch]hsrc}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1jy hj7ubeh}(h]h ]h"]h$]h&]j,j-uh1js hj7hhhj7hKubeh}(h]h ]h"]h$]h&]j,j-j4uh1hj5j6hj7hhhj7hKubah}(h]j{7ah ](j:j;eh"]h$]h&]j?j@)jAhuh1hhj7hKhj}7hhubjC)}(hhh]h)}(hencrypt one block of plaintexth]hencrypt one block of plaintext}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj 9hhubah}(h]h ]h"]h$]h&]uh1jBhj}7hhhj7hKubeh}(h]h ](j_functioneh"]h$]h&]jdj_jej%9jfj%9jgjhjiuh1hhhhj+hNhNubjk)}(hXl**Parameters** ``struct crypto_cipher *tfm`` cipher handle ``u8 *dst`` points to the buffer that will be filled with the ciphertext ``const u8 *src`` buffer holding the plaintext to be encrypted **Description** Invoke the encryption operation of one block. The caller must ensure that the plaintext and ciphertext buffers are at least one block in size.h](h)}(h**Parameters**h]ju)}(hj/9h]h Parameters}(hj19hhhNhNubah}(h]h ]h"]h$]h&]uh1jthj-9ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj)9ubj)}(hhh](j)}(h,``struct crypto_cipher *tfm`` cipher handle h](j)}(h``struct crypto_cipher *tfm``h]j)}(hjN9h]hstruct crypto_cipher *tfm}(hjP9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL9ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhjH9ubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hjg9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc9hKhjd9ubah}(h]h ]h"]h$]h&]uh1jhjH9ubeh}(h]h ]h"]h$]h&]uh1jhjc9hKhjE9ubj)}(hI``u8 *dst`` points to the buffer that will be filled with the ciphertext h](j)}(h ``u8 *dst``h]j)}(hj9h]hu8 *dst}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:34: ./include/crypto/internal/cipher.hhKhj9ubj)}(hhh]h)}(h