Psphinx.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]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/pt_BR/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)}(hSymmetric Key Cipherh]hSymmetric Key Cipher}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhA/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher.rsthKubh)}(hhh](h)}(h"Block Cipher Algorithm Definitionsh]h"Block Cipher Algorithm Definitions}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh 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:7: ./include/linux/crypto.hhKhhhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlecipher_alg (C struct) c.cipher_alghNtauh1hhhhhhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhNubhdesc)}(hhh](hdesc_signature)}(h cipher_algh]hdesc_signature_line)}(hstruct cipher_algh](hdesc_sig_keyword)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhj hhhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKubhdesc_sig_space)}(h h]h }(hj$hhhNhNubah}(h]h ]wah"]h$]h&]uh1j"hj hhhj!hKubh desc_name)}(h cipher_algh]h desc_sig_name)}(hjh]h cipher_alg}(hj;hhhNhNubah}(h]h ]nah"]h$]h&]uh1j9hj5ubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1j3hj hhhj!hKubeh}(h]h ]h"]h$]h&]jQjR add_permalinkuh1j sphinx_line_type declaratorhjhhhj!hKubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhj!hKhjhhubh desc_content)}(hhh]h)}(h)single-block symmetric ciphers definitionh]h)single-block symmetric ciphers definition}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhjihhubah}(h]h ]h"]h$]h&]uh1jghjhhhj!hKubeh}(h]h ](cstructeh"]h$]h&]domainjobjtypejdesctypejnoindex 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhjubh 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&]jQjRuh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhjubhdefinition_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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./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/}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./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)}(hj*h]hcia_max_keysize}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhj$ubj)}(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/}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhjubj)}(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)}(hjdh]h cia_setkey}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhj^ubj)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhjubj)}(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)}(hjh]h cia_encrypt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhjubj)}(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 }(hjhhhNhNubj)}(h**cra_blocksize**h]h cra_blocksize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% big. This always operates on a full }(hjhhhNhNubj)}(h**cra_blocksize**h]h cra_blocksize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubht and it is not possible to encrypt a block of smaller size. The supplied buffers must therefore also be at least of }(hjhhhNhNubj)}(h**cra_blocksize**h]h cra_blocksize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh? size. Both the input and output buffers are always aligned to }(hjhhhNhNubj)}(h**cra_alignmask**h]h cra_alignmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhd. In case either of the input or output buffer supplied by user of the crypto API is not aligned to }(hjhhhNhNubj)}(h**cra_alignmask**h]h cra_alignmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXa, 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 }(hjhhhNhNubj)}(h **cra_init**h]hcra_init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXx 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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hjDh]h cia_decrypt}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhj>ubj)}(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 }(hj]hhhNhNubj)}(h**cia_encrypt**h]h cia_encrypt}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh*, and the conditions are exactly the same.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhhhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKhhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrypto_alg (C struct) c.crypto_alghNtauh1hhhhhhhhNubj)}(hhh](j)}(h crypto_algh]j )}(hstruct crypto_algh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhKubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhKubj4)}(h crypto_algh]j:)}(hjh]h crypto_alg}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhjhKubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjhhhjhKubah}(h]jah ](j_j`eh"]h$]h&]jdje)jfhuh1jhjhKhjhhubjh)}(hhh]h)}(h-definition of a cryptograpic cipher algorithmh]h-definition of a cryptograpic cipher algorithm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jghjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj0jj0jjjuh1hhhhhhhhNubj)}(hXU**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; unsigned int cra_reqsize; 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_reqsize`` Size of the request context for this algorithm. ``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`` Deprecated, do not use. ``cra_exit`` Deprecated, do not use. ``cra_destroy`` internally used ``cra_module`` Owner of this transformation implementation. Set to THIS_MODULEh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh:}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM hj4ubj)}(hXzstruct 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; unsigned int cra_reqsize; 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]hXzstruct 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; unsigned int cra_reqsize; 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; };}hjUsbah}(h]h ]h"]h$]h&]jQjRuh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM hj4ubh)}(h **Members**h]j)}(hjfh]hMembers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM#hj4ubj)}(hhh](j)}(h``cra_list`` internally used h](j)}(h ``cra_list``h]j)}(hjh]hcra_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMDhjubj)}(hhh]h)}(hinternally usedh]hinternally used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhj|ubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMEhjubj)}(hhh]h)}(hinternally usedh]hinternally used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhj|ubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM hjubj)}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hj|ubj)}(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)}(hj1h]h cra_blocksize}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMhj+ubj)}(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 }(hjJhhhNhNubj)}(h**cra_blocksize**h]h cra_blocksize}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh 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 }(hjJhhhNhNubj)}(h**cra_blocksize**h]h cra_blocksize}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh chunks.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj|ubj)}(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)}(hjh]h cra_ctxsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMhjubj)}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM%hjubj)}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hj|ubj)}(h@``cra_reqsize`` Size of the request context for this algorithm. h](j)}(h``cra_reqsize``h]j)}(hjh]h cra_reqsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM&hjubj)}(hhh]h)}(h/Size of the request context for this algorithm.h]h/Size of the request context for this algorithm.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hj|ubj)}(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)}(hj<h]h cra_priority}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM*hj6ubj)}(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 }(hjUhhhNhNubj)}(h **cra_name**h]hcra_name}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubhK are available to the Crypto API, the kernel will use the one with highest }(hjUhhhNhNubj)}(h**cra_priority**h]h cra_priority}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM'hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM*hj|ubj)}(h``cra_refcnt`` internally used h](j)}(h``cra_refcnt``h]j)}(hjh]h cra_refcnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMFhjubj)}(hhh]h)}(hinternally usedh]hinternally used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhj|ubj)}(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)}(hjh]hcra_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM.hjubj)}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hj|ubj)}(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)}(hj h]hcra_driver_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM3hjubj)}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM/hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hM3hj|ubj)}(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)}(hjGh]hcra_type}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM9hjAubj)}(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 }(hj`hhhNhNubh)}(h:c:type:`crypto_skcipher_type`h]j)}(hjjh]hcrypto_skcipher_type}(hjlhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdoccrypto/api-skcipher refdomainjreftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sb reftargetcrypto_skcipher_typeuh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM4hj`ubh, }(hj`hhhNhNubh)}(h:c:type:`crypto_ahash_type`h]j)}(hjh]hcrypto_ahash_type}(hjhhhNhNubah}(h]h ](jvjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjcrypto_ahash_typeuh1hhjhM4hj`ubh, }hj`sbh)}(h:c:type:`crypto_rng_type`h]j)}(hjh]hcrypto_rng_type}(hjhhhNhNubah}(h]h ](jvjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjcrypto_rng_typeuh1hhjhM4hj`ubhg. This field might be empty. In that case, there are no common callbacks. This is the case for: cipher.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM4hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM9hj|ubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM>hjubj)}(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 }(hjhhhNhNubj)}(h **cra_type**h]hcra_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **cra_flags**h]h cra_flags}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh} 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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM:hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM>hj|ubj)}(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)}(hjSh]h cra_u.cipher}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMBhjMubj)}(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 }(hjlhhhNhNubj)}(h **struct**h]hstruct}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh }(hjlhhhNhNubj)}(h**cipher_alg**h]h cipher_alg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMAhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMBhj|ubj)}(h%``cra_init`` Deprecated, do not use. h](j)}(h ``cra_init``h]j)}(hjh]hcra_init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM?hjubj)}(hhh]h)}(hDeprecated, do not use.h]hDeprecated, do not use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hj|ubj)}(h%``cra_exit`` Deprecated, do not use. h](j)}(h ``cra_exit``h]j)}(hjh]hcra_exit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhM@hjubj)}(hhh]h)}(hDeprecated, do not use.h]hDeprecated, do not use.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hj|ubj)}(h ``cra_destroy`` internally used h](j)}(h``cra_destroy``h]j)}(hj# h]h cra_destroy}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj! ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMGhj ubj)}(hhh]h)}(hinternally usedh]hinternally used}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8 hMGhj9 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj8 hMGhj|ubj)}(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&]uh1jhjZ ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMBhjV ubj)}(hhh]h)}(h?Owner of this transformation implementation. Set to THIS_MODULEh]h?Owner of this transformation implementation. Set to THIS_MODULE}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMChjr ubah}(h]h ]h"]h$]h&]uh1jhjV ubeh}(h]h ]h"]h$]h&]uh1jhjq hMBhj|ubeh}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhhhNubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMFhhhhubh)}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:10: ./include/linux/crypto.hhMGhhhhubeh}(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 hhhhhKubh)}(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:16: ./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:16: ./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:16: ./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:16: ./include/crypto/skcipher.hhKhj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"crypto_alloc_skcipher (C function)c.crypto_alloc_skcipherhNtauh1hhj hhhNhNubj)}(hhh](j)}(hYstruct crypto_skcipher * crypto_alloc_skcipher (const char *alg_name, u32 type, u32 mask)h]j )}(hWstruct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, u32 type, u32 mask)h](j)}(hjh]hstruct}(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj. hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhM ubj#)}(h h]h }(hj@ hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj. hhhj? hM ubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hjQ hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjN ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjS modnameN classnameNjj)}j]j ASTIdentifier)}jg crypto_alloc_skciphersbc.crypto_alloc_skcipherasbuh1hhj. hhhj? hM ubj#)}(h h]h }(hju hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj. hhhj? hM ubhdesc_sig_punctuation)}(h*h]h*}(hj hhhNhNubah}(h]h ]pah"]h$]h&]uh1j hj. hhhj? hM ubj4)}(hcrypto_alloc_skcipherh]j:)}(hjr h]hcrypto_alloc_skcipher}(hj hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj. hhhj? hM ubhdesc_parameterlist)}(h*(const char *alg_name, u32 type, u32 mask)h](hdesc_parameter)}(hconst char *alg_nameh](j)}(hconsth]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj#)}(h h]h }(hj hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj ubhdesc_sig_keyword_type)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j hj ubj#)}(h h]h }(hj hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj ubj )}(hj h]h*}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj ubj:)}(halg_nameh]halg_name}(hj hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj ubj )}(hu32 typeh](h)}(hhh]j:)}(hu32h]hu32}(hj hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj modnameN classnameNjj)}j]jp c.crypto_alloc_skcipherasbuh1hhj ubj#)}(h h]h }(hj9 hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj ubj:)}(htypeh]htype}(hjG hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj ubj )}(hu32 maskh](h)}(hhh]j:)}(hu32h]hu32}(hjc hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj` ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetje modnameN classnameNjj)}j]jp c.crypto_alloc_skcipherasbuh1hhj\ ubj#)}(h h]h }(hj hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj\ ubj:)}(hmaskh]hmask}(hj hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj\ ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj ubeh}(h]h ]h"]h$]h&]jQjRuh1j hj. hhhj? hM ubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj* hhhj? hM ubah}(h]j% ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj? hM hj' hhubjh)}(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:19: ./include/crypto/skcipher.hhM hj hhubah}(h]h ]h"]h$]h&]uh1jghj' hhhj? hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj hNhNubj)}(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]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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:19: ./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:19: ./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)}(hj4 h]hu32 type}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhj. ubj)}(hhh]h)}(h specifies the type of the cipherh]h specifies the type of the cipher}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI hMhjJ ubah}(h]h ]h"]h$]h&]uh1jhj. ubeh}(h]h ]h"]h$]h&]uh1jhjI hMhj ubj)}(h/``u32 mask`` specifies the mask for the cipher h](j)}(h ``u32 mask``h]j)}(hjm h]hu32 mask}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjg 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 hMhj ubah}(h]h ]h"]h$]h&]uh1jhjg ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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:19: ./include/crypto/skcipher.hhMhj ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhj ubh)}(hsallocated cipher handle in case of success; IS_ERR() is true in case of an error, PTR_ERR() returns the error code.h]hsallocated cipher handle in case of success; IS_ERR() is true in case 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:19: ./include/crypto/skcipher.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!crypto_free_skcipher (C function)c.crypto_free_skcipherhNtauh1hhj hhhNhNubj)}(hhh](j)}(h7void crypto_free_skcipher (struct crypto_skcipher *tfm)h]j )}(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:19: ./include/crypto/skcipher.hhMCubj#)}(h h]h }(hj# hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj hhhj" hMCubj4)}(hcrypto_free_skcipherh]j:)}(hcrypto_free_skcipherh]hcrypto_free_skcipher}(hj5 hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj1 ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj hhhj" hMCubj )}(h(struct crypto_skcipher *tfm)h]j )}(hstruct crypto_skcipher *tfmh](j)}(hjh]hstruct}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM ubj#)}(h h]h }(hj^ hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjM ubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hjo hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjl ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjq modnameN classnameNjj)}j]jo )}jg j7 sbc.crypto_free_skcipherasbuh1hhjM ubj#)}(h h]h }(hj hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjM ubj )}(hj h]h*}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjM ubj:)}(htfmh]htfm}(hj hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjM ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjI ubah}(h]h ]h"]h$]h&]jQjRuh1j hj hhhj" hMCubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj hhhj" hMCubah}(h]j ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj" hMChj hhubjh)}(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:19: ./include/crypto/skcipher.hhMChj hhubah}(h]h ]h"]h$]h&]uh1jghj hhhj" hMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj hNhNubj)}(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]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMGhj 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMDhjubj)}(hhh]h)}(hcipher handle to be freedh]hcipher handle to be freed}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMDhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMDhj ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMFhj ubh)}(hBIf **tfm** is a NULL or error pointer, this function does nothing.h](hIf }(hjfhhhNhNubj)}(h**tfm**h]htfm}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh8 is a NULL or error pointer, this function does nothing.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMEhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h crypto_has_skcipher (C function)c.crypto_has_skcipherhNtauh1hhj hhhNhNubj)}(hhh](j)}(hBint crypto_has_skcipher (const char *alg_name, u32 type, u32 mask)h]j )}(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:19: ./include/crypto/skcipher.hhM^ubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhM^ubj4)}(hcrypto_has_skcipherh]j:)}(hcrypto_has_skcipherh]hcrypto_has_skcipher}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhjhM^ubj )}(h*(const char *alg_name, u32 type, u32 mask)h](j )}(hconst char *alg_nameh](j)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj#)}(h h]h }(hj hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj:)}(halg_nameh]halg_name}(hj(hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubj )}(hu32 typeh](h)}(hhh]j:)}(hu32h]hu32}(hjDhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjAubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjFmodnameN classnameNjj)}j]jo )}jg jsbc.crypto_has_skcipherasbuh1hhj=ubj#)}(h h]h }(hjdhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj=ubj:)}(htypeh]htype}(hjrhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj=ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubj )}(hu32 maskh](h)}(hhh]j:)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjmodnameN classnameNjj)}j]j`c.crypto_has_skcipherasbuh1hhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj:)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubeh}(h]h ]h"]h$]h&]jQjRuh1j hjhhhjhM^ubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjhhhjhM^ubah}(h]jah ](j_j`eh"]h$]h&]jdje)jfhuh1jhjhM^hjhhubjh)}(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:19: ./include/crypto/skcipher.hhM^hjhhubah}(h]h ]h"]h$]h&]uh1jghjhhhjhM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX2**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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMbhjubj)}(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)}(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:19: ./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}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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)}(hj_h]hu32 type}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMahjYubj)}(hhh]h)}(h"specifies the type of the skcipherh]h"specifies the type of the skcipher}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMahjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMahjubj)}(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:19: ./include/crypto/skcipher.hhMbhjubj)}(hhh]h)}(h#specifies the mask for the skcipherh]h#specifies the mask for the skcipher}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMdhjubh)}(hItrue when the skcipher is known to the kernel crypto API; false otherwiseh]hItrue when the skcipher is known to the kernel crypto API; false otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMdhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#crypto_skcipher_ivsize (C function)c.crypto_skcipher_ivsizehNtauh1hhj hhhNhNubj)}(hhh](j)}(hAunsigned int crypto_skcipher_ivsize (struct crypto_skcipher *tfm)h]j )}(h@unsigned int crypto_skcipher_ivsize(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:19: ./include/crypto/skcipher.hhMubj#)}(h h]h }(hj'hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhj&hMubj )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhj&hMubj#)}(h h]h }(hjChhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhj&hMubj4)}(hcrypto_skcipher_ivsizeh]j:)}(hcrypto_skcipher_ivsizeh]hcrypto_skcipher_ivsize}(hjUhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjQubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhj&hMubj )}(h(struct crypto_skcipher *tfm)h]j )}(hstruct crypto_skcipher *tfmh](j)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj#)}(h h]h }(hj~hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjmubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjmodnameN classnameNjj)}j]jo )}jg jWsbc.crypto_skcipher_ivsizeasbuh1hhjmubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjmubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjmubj:)}(htfmh]htfm}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjmubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjiubah}(h]h ]h"]h$]h&]jQjRuh1j hjhhhj&hMubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjhhhj&hMubah}(h]j ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj&hMhj hhubjh)}(hhh]h)}(hobtain IV sizeh]hobtain IV size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jghj hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj hNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubj)}(hhh]j)}(h.``struct crypto_skcipher *tfm`` cipher handle h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hj5h]hstruct crypto_skcipher *tfm}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhj/ubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubh)}(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:19: ./include/crypto/skcipher.hhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubh)}(hIV size in bytesh]hIV size in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&crypto_skcipher_blocksize (C function)c.crypto_skcipher_blocksizehNtauh1hhj hhhNhNubj)}(hhh](j)}(hDunsigned int crypto_skcipher_blocksize (struct crypto_skcipher *tfm)h]j )}(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:19: ./include/crypto/skcipher.hhMubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhMubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhMubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhMubj4)}(hcrypto_skcipher_blocksizeh]j:)}(hcrypto_skcipher_blocksizeh]hcrypto_skcipher_blocksize}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhjhMubj )}(h(struct crypto_skcipher *tfm)h]j )}(hstruct crypto_skcipher *tfmh](j)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj#)}(h h]h }(hjBhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj1ubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hjShhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjPubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjUmodnameN classnameNjj)}j]jo )}jg jsbc.crypto_skcipher_blocksizeasbuh1hhj1ubj#)}(h h]h }(hjshhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj1ubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj1ubj:)}(htfmh]htfm}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj1ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj-ubah}(h]h ]h"]h$]h&]jQjRuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjhhhjhMubah}(h]jah ](j_j`eh"]h$]h&]jdje)jfhuh1jhjhMhjhhubjh)}(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:19: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jghjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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:19: ./include/crypto/skcipher.hhMhjubj)}(hhh]h)}(h cipher handleh]h cipher handle}(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]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubh)}(h **Return**h]j)}(hj[h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubh)}(hblock size of cipherh]hblock size of cipher}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#crypto_skcipher_setkey (C function)c.crypto_skcipher_setkeyhNtauh1hhj hhhNhNubj)}(hhh](j)}(h\int crypto_skcipher_setkey (struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen)h]j )}(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:19: ./include/crypto/skcipher.hhMXubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhMXubj4)}(hcrypto_skcipher_setkeyh]j:)}(hcrypto_skcipher_setkeyh]hcrypto_skcipher_setkey}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhjhMXubj )}(hA(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen)h](j )}(hstruct crypto_skcipher *tfmh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjmodnameN classnameNjj)}j]jo )}jg jsbc.crypto_skcipher_setkeyasbuh1hhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj )}(hj h]h*}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj:)}(htfmh]htfm}(hj6hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubj )}(h const u8 *keyh](j)}(hj h]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj#)}(h h]h }(hj\hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjKubh)}(hhh]j:)}(hu8h]hu8}(hjmhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjjubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjomodnameN classnameNjj)}j]jc.crypto_skcipher_setkeyasbuh1hhjKubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjKubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjKubj:)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjKubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubj )}(hunsigned int keylenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj:)}(hkeylenh]hkeylen}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubeh}(h]h ]h"]h$]h&]jQjRuh1j hjhhhjhMXubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjhhhjhMXubah}(h]jah ](j_j`eh"]h$]h&]jdje)jfhuh1jhjhMXhjhhubjh)}(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:19: ./include/crypto/skcipher.hhMXhjhhubah}(h]h ]h"]h$]h&]uh1jghjhhhjhMXubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj hNhNubj)}(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]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhM\hj=ubj)}(hhh](j)}(h.``struct crypto_skcipher *tfm`` cipher handle h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hjbh]hstruct crypto_skcipher *tfm}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMYhj\ubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMYhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMYhjYubj)}(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:19: ./include/crypto/skcipher.hhMZhjubj)}(hhh]h)}(hbuffer holding the keyh]hbuffer holding the key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjYubj)}(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:19: ./include/crypto/skcipher.hhM[hjubj)}(hhh]h)}(hlength of the key in bytesh]hlength of the key in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhM_hj=ubh)}(h **Return**h]j)}(hjEh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMehj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#crypto_skcipher_reqtfm (C function)c.crypto_skcipher_reqtfmhNtauh1hhj hhhNhNubj)}(hhh](j)}(hNstruct crypto_skcipher * crypto_skcipher_reqtfm (struct skcipher_request *req)h]j )}(hLstruct crypto_skcipher *crypto_skcipher_reqtfm(struct skcipher_request *req)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhMubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjmodnameN classnameNjj)}j]jo )}jg crypto_skcipher_reqtfmsbc.crypto_skcipher_reqtfmasbuh1hhjhhhjhMubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhMubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhMubj4)}(hcrypto_skcipher_reqtfmh]j:)}(hjh]hcrypto_skcipher_reqtfm}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhjhMubj )}(h(struct skcipher_request *req)h]j )}(hstruct skcipher_request *reqh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubh)}(hhh]j:)}(hskcipher_requesth]hskcipher_request}(hj"hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj$modnameN classnameNjj)}j]jc.crypto_skcipher_reqtfmasbuh1hhjubj#)}(h h]h }(hj@hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj )}(hj h]h*}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj:)}(hreqh]hreq}(hj[hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubah}(h]h ]h"]h$]h&]jQjRuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjhhhjhMubah}(h]j}ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhjhMhjhhubjh)}(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:19: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jghjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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:19: ./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]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubh)}(h **Return**h]j)}(hj(h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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:19: ./include/crypto/skcipher.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$crypto_skcipher_encrypt (C function)c.crypto_skcipher_encrypthNtauh1hhj hhhNhNubj)}(hhh](j)}(h:int crypto_skcipher_encrypt (struct skcipher_request *req)h]j )}(h9int crypto_skcipher_encrypt(struct skcipher_request *req)h](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjihhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMubj#)}(h h]h }(hj|hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjihhhj{hMubj4)}(hcrypto_skcipher_encrypth]j:)}(hcrypto_skcipher_encrypth]hcrypto_skcipher_encrypt}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjihhhj{hMubj )}(h(struct skcipher_request *req)h]j )}(hstruct skcipher_request *reqh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubh)}(hhh]j:)}(hskcipher_requesth]hskcipher_request}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjmodnameN classnameNjj)}j]jo )}jg jsbc.crypto_skcipher_encryptasbuh1hhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj:)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubah}(h]h ]h"]h$]h&]jQjRuh1j hjihhhj{hMubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjehhhj{hMubah}(h]j`ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj{hMhjbhhubjh)}(hhh]h)}(hencrypt plaintexth]hencrypt plaintext}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1jghjbhhhj{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhj hNhNubj)}(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]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjIubj)}(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)}(hjnh]hstruct skcipher_request *req}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjhubj)}(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:19: ./include/crypto/skcipher.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjIubh)}(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:19: ./include/crypto/skcipher.hhMhjIubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjIubh)}(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:19: ./include/crypto/skcipher.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$crypto_skcipher_decrypt (C function)c.crypto_skcipher_decrypthNtauh1hhj hhhNhNubj)}(hhh](j)}(h:int crypto_skcipher_decrypt (struct skcipher_request *req)h]j )}(h9int crypto_skcipher_decrypt(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:19: ./include/crypto/skcipher.hhMubj#)}(h h]h }(hj%hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhj$hMubj4)}(hcrypto_skcipher_decrypth]j:)}(hcrypto_skcipher_decrypth]hcrypto_skcipher_decrypt}(hj7hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj3ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhj$hMubj )}(h(struct skcipher_request *req)h]j )}(hstruct skcipher_request *reqh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj#)}(h h]h }(hj`hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjOubh)}(hhh]j:)}(hskcipher_requesth]hskcipher_request}(hjqhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjnubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjsmodnameN classnameNjj)}j]jo )}jg j9sbc.crypto_skcipher_decryptasbuh1hhjOubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjOubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjOubj:)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjOubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjKubah}(h]h ]h"]h$]h&]jQjRuh1j hjhhhj$hMubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjhhhj$hMubah}(h]j ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj$hMhj hhubjh)}(hhh]h)}(hdecrypt ciphertexth]hdecrypt ciphertext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jghj hhhj$hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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)}(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:19: ./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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./include/crypto/skcipher.hhMhjubh)}(h **Return**h]j)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:19: ./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:19: ./include/crypto/skcipher.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]symmetric-key-cipher-apiah ]h"]symmetric key cipher apiah$]h&]uh1hhhhhhhhKubh)}(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:25: ./include/crypto/skcipher.hhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$crypto_skcipher_reqsize (C function)c.crypto_skcipher_reqsizehNtauh1hhjhhhNhNubj)}(hhh](j)}(hBunsigned int crypto_skcipher_reqsize (struct crypto_skcipher *tfm)h]j )}(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:28: ./include/crypto/skcipher.hhM ubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhM ubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjhhhjhM ubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhM ubj4)}(hcrypto_skcipher_reqsizeh]j:)}(hcrypto_skcipher_reqsizeh]hcrypto_skcipher_reqsize}(hj$hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhjhM ubj )}(h(struct crypto_skcipher *tfm)h]j )}(hstruct crypto_skcipher *tfmh](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj#)}(h h]h }(hjMhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj<ubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hj^hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj`modnameN classnameNjj)}j]jo )}jg j&sbc.crypto_skcipher_reqsizeasbuh1hhj<ubj#)}(h h]h }(hj~hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj<ubj )}(hj h]h*}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj<ubj:)}(htfmh]htfm}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj<ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj8ubah}(h]h ]h"]h$]h&]jQjRuh1j hjhhhjhM ubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hjhhhjhM ubah}(h]jah ](j_j`eh"]h$]h&]jdje)jfhuh1jhjhM hjhhubjh)}(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:28: ./include/crypto/skcipher.hhM hjhhubah}(h]h ]h"]h$]h&]uh1jghjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h\**Parameters** ``struct crypto_skcipher *tfm`` cipher handle **Return** number of bytesh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhM$hjubj)}(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:28: ./include/crypto/skcipher.hhM!hjubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj?h]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhM#hjubh)}(hnumber of bytesh]hnumber of bytes}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhM#hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%skcipher_request_set_tfm (C function)c.skcipher_request_set_tfmhNtauh1hhjhhhNhNubj)}(hhh](j)}(hYvoid skcipher_request_set_tfm (struct skcipher_request *req, struct crypto_skcipher *tfm)h]j )}(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:28: ./include/crypto/skcipher.hhM+ubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjhhhjhM+ubj4)}(hskcipher_request_set_tfmh]j:)}(hskcipher_request_set_tfmh]hskcipher_request_set_tfm}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjhhhjhM+ubj )}(h;(struct skcipher_request *req, struct crypto_skcipher *tfm)h](j )}(hstruct skcipher_request *reqh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubh)}(hhh]j:)}(hskcipher_requesth]hskcipher_request}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjmodnameN classnameNjj)}j]jo )}jg jsbc.skcipher_request_set_tfmasbuh1hhjubj#)}(h h]h }(hjhhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjubj )}(hj h]h*}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubj:)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubj )}(hstruct crypto_skcipher *tfmh](j)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj#)}(h h]h }(hj@hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj/ubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hjQhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjNubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjSmodnameN classnameNjj)}j]jc.skcipher_request_set_tfmasbuh1hhj/ubj#)}(h h]h }(hjohhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj/ubj )}(hj h]h*}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/ubj:)}(htfmh]htfm}(hjhhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj/ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjubeh}(h]h ]h"]h$]h&]jQjRuh1j hjhhhjhM+ubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj|hhhjhM+ubah}(h]jwah ](j_j`eh"]h$]h&]jdje)jfhuh1jhjhM+hjyhhubjh)}(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:28: ./include/crypto/skcipher.hhM+hjhhubah}(h]h ]h"]h$]h&]uh1jghjyhhhjhM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./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)}(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:28: ./include/crypto/skcipher.hhM,hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM,hjubj)}(hX``struct crypto_skcipher *tfm`` cipher handle that shall be added to the request handle h](j)}(h``struct crypto_skcipher *tfm``h]j)}(hj. h]hstruct crypto_skcipher *tfm}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj, ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhM-hj( ubj)}(hhh]h)}(h7cipher handle that shall be added to the request handleh]h7cipher handle that shall be added to the request handle}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC hM-hjD ubah}(h]h ]h"]h$]h&]uh1jhj( ubeh}(h]h ]h"]h$]h&]uh1jhjC hM-hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hji h]h Description}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./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:28: ./include/crypto/skcipher.hhM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#skcipher_request_alloc (C function)c.skcipher_request_allochNtauh1hhjhhhNhNubj)}(hhh](j)}(hYstruct skcipher_request * skcipher_request_alloc (struct crypto_skcipher *tfm, gfp_t gfp)h]j )}(hWstruct skcipher_request *skcipher_request_alloc(struct crypto_skcipher *tfm, gfp_t gfp)h](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMEubj#)}(h h]h }(hj hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj hhhj hMEubh)}(hhh]j:)}(hskcipher_requesth]hskcipher_request}(hj hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj modnameN classnameNjj)}j]jo )}jg skcipher_request_allocsbc.skcipher_request_allocasbuh1hhj hhhj hMEubj#)}(h h]h }(hj hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj hhhj hMEubj )}(hj h]h*}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj hhhj hMEubj4)}(hskcipher_request_alloch]j:)}(hj h]hskcipher_request_alloc}(hj !hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj !ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj hhhj hMEubj )}(h((struct crypto_skcipher *tfm, gfp_t gfp)h](j )}(hstruct crypto_skcipher *tfmh](j)}(hjh]hstruct}(hj(!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$!ubj#)}(h h]h }(hj5!hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj$!ubh)}(hhh]j:)}(hcrypto_skcipherh]hcrypto_skcipher}(hjF!hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjC!ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjH!modnameN classnameNjj)}j]j c.skcipher_request_allocasbuh1hhj$!ubj#)}(h h]h }(hjd!hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj$!ubj )}(hj h]h*}(hjr!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj$!ubj:)}(htfmh]htfm}(hj!hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj$!ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj !ubj )}(h gfp_t gfph](h)}(hhh]j:)}(hgfp_th]hgfp_t}(hj!hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj!modnameN classnameNjj)}j]j c.skcipher_request_allocasbuh1hhj!ubj#)}(h h]h }(hj!hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj!ubj:)}(hgfph]hgfp}(hj!hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj!ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj !ubeh}(h]h ]h"]h$]h&]jQjRuh1j hj hhhj hMEubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj hhhj hMEubah}(h]j ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj hMEhj hhubjh)}(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:28: ./include/crypto/skcipher.hhMEhj!hhubah}(h]h ]h"]h$]h&]uh1jghj hhhj hMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj "jj "jjjuh1hhhhjhNhNubj)}(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]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMIhj "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)}(hj2"h]hstruct crypto_skcipher *tfm}(hj4"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0"ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMFhj,"ubj)}(hhh]h)}(h/cipher handle to be registered with the requesth]h/cipher handle to be registered with the request}(hjK"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG"hMFhjH"ubah}(h]h ]h"]h$]h&]uh1jhj,"ubeh}(h]h ]h"]h$]h&]uh1jhjG"hMFhj)"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)}(hjk"h]h gfp_t gfp}(hjm"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji"ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMGhje"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"hMGhj"ubah}(h]h ]h"]h$]h&]uh1jhje"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMGhj)"ubeh}(h]h ]h"]h$]h&]uh1jhj "ubh)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMIhj "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:28: ./include/crypto/skcipher.hhMHhj "ubh)}(h **Return**h]j)}(hj"h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./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:28: ./include/crypto/skcipher.hhMMhj "ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"skcipher_request_free (C function)c.skcipher_request_freehNtauh1hhjhhhNhNubj)}(hhh](j)}(h9void skcipher_request_free (struct skcipher_request *req)h]j )}(h8void skcipher_request_free(struct skcipher_request *req)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj#hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhM_ubj#)}(h h]h }(hj!#hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj#hhhj #hM_ubj4)}(hskcipher_request_freeh]j:)}(hskcipher_request_freeh]hskcipher_request_free}(hj3#hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj/#ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj#hhhj #hM_ubj )}(h(struct skcipher_request *req)h]j )}(hstruct skcipher_request *reqh](j)}(hjh]hstruct}(hjO#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK#ubj#)}(h h]h }(hj\#hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjK#ubh)}(hhh]j:)}(hskcipher_requesth]hskcipher_request}(hjm#hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjo#modnameN classnameNjj)}j]jo )}jg j5#sbc.skcipher_request_freeasbuh1hhjK#ubj#)}(h h]h }(hj#hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjK#ubj )}(hj h]h*}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjK#ubj:)}(hreqh]hreq}(hj#hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjK#ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjG#ubah}(h]h ]h"]h$]h&]jQjRuh1j hj#hhhj #hM_ubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj #hhhj #hM_ubah}(h]j#ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj #hM_hj#hhubjh)}(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:28: ./include/crypto/skcipher.hhM_hj#hhubah}(h]h ]h"]h$]h&]uh1jghj#hhhj #hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjhNhNubj)}(hc**Parameters** ``struct skcipher_request *req`` request data structure cipher handle to be freedh](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMchj#ubj)}(hhh]j)}(hQ``struct skcipher_request *req`` request data structure cipher handle to be freedh](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:28: ./include/crypto/skcipher.hhMehj $ubj)}(hhh]h)}(h0request data structure cipher handle to be freedh]h0request data structure cipher handle to be freed}(hj,$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhM`hj)$ubah}(h]h ]h"]h$]h&]uh1jhj $ubeh}(h]h ]h"]h$]h&]uh1jhj($hMehj $ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*skcipher_request_set_callback (C function)c.skcipher_request_set_callbackhNtauh1hhjhhhNhNubj)}(hhh](j)}(hsvoid skcipher_request_set_callback (struct skcipher_request *req, u32 flags, crypto_completion_t compl, void *data)h]j )}(hrvoid skcipher_request_set_callback(struct skcipher_request *req, u32 flags, crypto_completion_t compl, void *data)h](j )}(hvoidh]hvoid}(hjm$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hji$hhh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMoubj#)}(h h]h }(hj|$hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hji$hhhj{$hMoubj4)}(hskcipher_request_set_callbackh]j:)}(hskcipher_request_set_callbackh]hskcipher_request_set_callback}(hj$hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj$ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hji$hhhj{$hMoubj )}(hP(struct skcipher_request *req, u32 flags, crypto_completion_t compl, void *data)h](j )}(hstruct skcipher_request *reqh](j)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj#)}(h h]h }(hj$hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj$ubh)}(hhh]j:)}(hskcipher_requesth]hskcipher_request}(hj$hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj$modnameN classnameNjj)}j]jo )}jg j$sbc.skcipher_request_set_callbackasbuh1hhj$ubj#)}(h h]h }(hj$hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj$ubj )}(hj h]h*}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj$ubj:)}(hreqh]hreq}(hj%hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj$ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj$ubj )}(h u32 flagsh](h)}(hhh]j:)}(hu32h]hu32}(hj%hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj!%modnameN classnameNjj)}j]j$c.skcipher_request_set_callbackasbuh1hhj%ubj#)}(h h]h }(hj=%hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj%ubj:)}(hflagsh]hflags}(hjK%hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj%ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj$ubj )}(hcrypto_completion_t complh](h)}(hhh]j:)}(hcrypto_completion_th]hcrypto_completion_t}(hjg%hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjd%ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetji%modnameN classnameNjj)}j]j$c.skcipher_request_set_callbackasbuh1hhj`%ubj#)}(h h]h }(hj%hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj`%ubj:)}(hcomplh]hcompl}(hj%hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj`%ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj$ubj )}(h void *datah](j )}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%ubj#)}(h h]h }(hj%hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj%ubj )}(hj h]h*}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj%ubj:)}(hdatah]hdata}(hj%hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj%ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj$ubeh}(h]h ]h"]h$]h&]jQjRuh1j hji$hhhj{$hMoubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hje$hhhj{$hMoubah}(h]j`$ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj{$hMohjb$hhubjh)}(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:28: ./include/crypto/skcipher.hhMohj%hhubah}(h]h ]h"]h$]h&]uh1jghjb$hhhj{$hMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhjhNhNubj)}(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]j)}(hj!&h]h Parameters}(hj#&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMshj&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}(hjB&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMphj:&ubj)}(hhh]h)}(hrequest handleh]hrequest handle}(hjY&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU&hMphjV&ubah}(h]h ]h"]h$]h&]uh1jhj:&ubeh}(h]h ]h"]h$]h&]uh1jhjU&hMphj7&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)}(hjy&h]h u32 flags}(hj{&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMthjs&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:28: ./include/crypto/skcipher.hhMqhj&ubah}(h]h ]h"]h$]h&]uh1jhjs&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMthj7&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:28: ./include/crypto/skcipher.hhMuhj&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&hMuhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMuhj7&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:28: ./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:28: ./include/crypto/skcipher.hhMvhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hM}hj7&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubh)}(h**Description**h]j)}(hj('h]h Description}(hj*'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&'ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMhj&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:28: ./include/crypto/skcipher.hhM~hj&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:}(hjM'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMhj&ubj)}(hCvoid callback_function(struct crypto_async_request *req, int error)h]hCvoid callback_function(struct crypto_async_request *req, int error)}hj\'sbah}(h]h ]h"]h$]h&]jQjRuh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'skcipher_request_set_crypt (C function)c.skcipher_request_set_crypthNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid skcipher_request_set_crypt (struct skcipher_request *req, struct scatterlist *src, struct scatterlist *dst, unsigned int cryptlen, void *iv)h]j )}(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:28: ./include/crypto/skcipher.hhMubj#)}(h h]h }(hj'hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj'hhhj'hMubj4)}(hskcipher_request_set_crypth]j:)}(hskcipher_request_set_crypth]hskcipher_request_set_crypt}(hj'hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj'ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj'hhhj'hMubj )}(hq(struct skcipher_request *req, struct scatterlist *src, struct scatterlist *dst, unsigned int cryptlen, void *iv)h](j )}(hstruct skcipher_request *reqh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj#)}(h h]h }(hj'hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj'ubh)}(hhh]j:)}(hskcipher_requesth]hskcipher_request}(hj'hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj'modnameN classnameNjj)}j]jo )}jg j'sbc.skcipher_request_set_cryptasbuh1hhj'ubj#)}(h h]h }(hj(hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj'ubj )}(hj h]h*}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj'ubj:)}(hreqh]hreq}(hj!(hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj'ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj'ubj )}(hstruct scatterlist *srch](j)}(hjh]hstruct}(hj:(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6(ubj#)}(h h]h }(hjG(hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj6(ubh)}(hhh]j:)}(h scatterlisth]h scatterlist}(hjX(hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjU(ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjZ(modnameN classnameNjj)}j]j(c.skcipher_request_set_cryptasbuh1hhj6(ubj#)}(h h]h }(hjv(hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj6(ubj )}(hj h]h*}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj6(ubj:)}(hsrch]hsrc}(hj(hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj6(ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj'ubj )}(hstruct scatterlist *dsth](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj#)}(h h]h }(hj(hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj(ubh)}(hhh]j:)}(h scatterlisth]h scatterlist}(hj(hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj(modnameN classnameNjj)}j]j(c.skcipher_request_set_cryptasbuh1hhj(ubj#)}(h h]h }(hj(hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj(ubj )}(hj h]h*}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj(ubj:)}(hdsth]hdst}(hj)hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj(ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj'ubj )}(hunsigned int cryptlenh](j )}(hunsignedh]hunsigned}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj)ubj#)}(h h]h }(hj()hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj)ubj )}(hinth]hint}(hj6)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj)ubj#)}(h h]h }(hjD)hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj)ubj:)}(hcryptlenh]hcryptlen}(hjR)hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj)ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj'ubj )}(hvoid *ivh](j )}(hvoidh]hvoid}(hjk)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjg)ubj#)}(h h]h }(hjy)hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjg)ubj )}(hj h]h*}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjg)ubj:)}(hivh]hiv}(hj)hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjg)ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj'ubeh}(h]h ]h"]h$]h&]jQjRuh1j hj'hhhj'hMubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj'hhhj'hMubah}(h]j~'ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj'hMhj'hhubjh)}(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:28: ./include/crypto/skcipher.hhMhj)hhubah}(h]h ]h"]h$]h&]uh1jghj'hhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhjhNhNubj)}(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]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./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:28: ./include/crypto/skcipher.hhMhj)ubj)}(hhh]h)}(hrequest handleh]hrequest handle}(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)}(h9``struct scatterlist *src`` source scatter / gather list h](j)}(h``struct scatterlist *src``h]j)}(hj8*h]hstruct scatterlist *src}(hj:*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMhj2*ubj)}(hhh]h)}(hsource scatter / gather listh]hsource scatter / gather list}(hjQ*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM*hMhjN*ubah}(h]h ]h"]h$]h&]uh1jhj2*ubeh}(h]h ]h"]h$]h&]uh1jhjM*hMhj)ubj)}(h>``struct scatterlist *dst`` destination scatter / gather list h](j)}(h``struct scatterlist *dst``h]j)}(hjq*h]hstruct scatterlist *dst}(hjs*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMhjk*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&]uh1jhjk*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:28: ./include/crypto/skcipher.hhMhj*ubj)}(hhh]h)}(h'number of bytes to process from **src**h](h number of bytes to process from }(hj*hhhNhNubj)}(h**src**h]hsrc}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*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:28: ./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:28: ./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]j)}(hj-+h]h Description}(hj/+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj++ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./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.}(hjC+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./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.}(hjR+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:28: ./include/crypto/skcipher.hhMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]#symmetric-key-cipher-request-handleah ]h"]#symmetric key cipher request handleah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hSingle Block Cipher APIh]hSingle Block Cipher API}(hjs+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp+hhhhhK ubh)}(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:34: ./include/crypto/internal/cipher.hhKhjp+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:34: ./include/crypto/internal/cipher.hhKhjp+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:34: ./include/crypto/internal/cipher.hhKhjp+hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h crypto_alloc_cipher (C function)c.crypto_alloc_cipherhNtauh1hhjp+hhhNhNubj)}(hhh](j)}(hUstruct crypto_cipher * crypto_alloc_cipher (const char *alg_name, u32 type, u32 mask)h]j )}(hSstruct crypto_cipher *crypto_alloc_cipher(const char *alg_name, u32 type, u32 mask)h](j)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhK+ubj#)}(h h]h }(hj+hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj+hhhj+hK+ubh)}(hhh]j:)}(h crypto_cipherh]h crypto_cipher}(hj+hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj+modnameN classnameNjj)}j]jo )}jg crypto_alloc_ciphersbc.crypto_alloc_cipherasbuh1hhj+hhhj+hK+ubj#)}(h h]h }(hj,hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj+hhhj+hK+ubj )}(hj h]h*}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj+hhhj+hK+ubj4)}(hcrypto_alloc_cipherh]j:)}(hj,h]hcrypto_alloc_cipher}(hj&,hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj",ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj+hhhj+hK+ubj )}(h*(const char *alg_name, u32 type, u32 mask)h](j )}(hconst char *alg_nameh](j)}(hj h]hconst}(hjA,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=,ubj#)}(h h]h }(hjN,hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj=,ubj )}(hcharh]hchar}(hj\,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj=,ubj#)}(h h]h }(hjj,hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj=,ubj )}(hj h]h*}(hjx,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj=,ubj:)}(halg_nameh]halg_name}(hj,hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj=,ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj9,ubj )}(hu32 typeh](h)}(hhh]j:)}(hu32h]hu32}(hj,hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj,modnameN classnameNjj)}j]j,c.crypto_alloc_cipherasbuh1hhj,ubj#)}(h h]h }(hj,hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj,ubj:)}(htypeh]htype}(hj,hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj,ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj9,ubj )}(hu32 maskh](h)}(hhh]j:)}(hu32h]hu32}(hj,hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj,modnameN classnameNjj)}j]j,c.crypto_alloc_cipherasbuh1hhj,ubj#)}(h h]h }(hj-hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj,ubj:)}(hmaskh]hmask}(hj-hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj,ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj9,ubeh}(h]h ]h"]h$]h&]jQjRuh1j hj+hhhj+hK+ubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj+hhhj+hK+ubah}(h]j+ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj+hK+hj+hhubjh)}(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:37: ./include/crypto/internal/cipher.hhK+hj<-hhubah}(h]h ]h"]h$]h&]uh1jghj+hhhj+hK+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjW-jjW-jjjuh1hhhhjp+hNhNubj)}(hX1**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]j)}(hja-h]h Parameters}(hjc-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_-ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhK/hj[-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:37: ./include/crypto/internal/cipher.hhK-hjz-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:37: ./include/crypto/internal/cipher.hhK,hj-ubah}(h]h ]h"]h$]h&]uh1jhjz-ubeh}(h]h ]h"]h$]h&]uh1jhj-hK-hjw-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:37: ./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.hjw-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:37: ./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/hjw-ubeh}(h]h ]h"]h$]h&]uh1jhj[-ubh)}(h**Description**h]j)}(hj..h]h Description}(hj0.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,.ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhK1hj[-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.}(hjD.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhK0hj[-ubh)}(h **Return**h]j)}(hjU.h]hReturn}(hjW.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS.ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhK4hj[-ubh)}(hsallocated cipher handle in case of success; IS_ERR() is true in case of an error, PTR_ERR() returns the error code.h]hsallocated cipher handle in case of success; IS_ERR() is true in case of an error, PTR_ERR() returns the error code.}(hjk.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhK5hj[-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrypto_free_cipher (C function)c.crypto_free_cipherhNtauh1hhjp+hhhNhNubj)}(hhh](j)}(h3void crypto_free_cipher (struct crypto_cipher *tfm)h]j )}(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:37: ./include/crypto/internal/cipher.hhKHubj#)}(h h]h }(hj.hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj.hhhj.hKHubj4)}(hcrypto_free_cipherh]j:)}(hcrypto_free_cipherh]hcrypto_free_cipher}(hj.hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj.ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj.hhhj.hKHubj )}(h(struct crypto_cipher *tfm)h]j )}(hstruct crypto_cipher *tfmh](j)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj#)}(h h]h }(hj.hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj.ubh)}(hhh]j:)}(h crypto_cipherh]h crypto_cipher}(hj.hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj.modnameN classnameNjj)}j]jo )}jg j.sbc.crypto_free_cipherasbuh1hhj.ubj#)}(h h]h }(hj/hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj.ubj )}(hj h]h*}(hj#/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj.ubj:)}(htfmh]htfm}(hj0/hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj.ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj.ubah}(h]h ]h"]h$]h&]jQjRuh1j hj.hhhj.hKHubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj.hhhj.hKHubah}(h]j.ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj.hKHhj.hhubjh)}(hhh]h)}(h/zeroize and free the single block cipher handleh]h/zeroize and free the single block cipher handle}(hjZ/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKHhjW/hhubah}(h]h ]h"]h$]h&]uh1jghj.hhhj.hKHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjr/jjr/jjjuh1hhhhjp+hNhNubj)}(hI**Parameters** ``struct crypto_cipher *tfm`` cipher handle to be freedh](h)}(h**Parameters**h]j)}(hj|/h]h Parameters}(hj~/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz/ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKLhjv/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:37: ./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:37: ./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&]uh1jhjv/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrypto_has_cipher (C function)c.crypto_has_cipherhNtauh1hhjp+hhhNhNubj)}(hhh](j)}(h@int crypto_has_cipher (const char *alg_name, u32 type, u32 mask)h]j )}(h?int crypto_has_cipher(const char *alg_name, u32 type, u32 mask)h](j )}(hinth]hint}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj/hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKQubj#)}(h h]h }(hj0hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj/hhhj0hKQubj4)}(hcrypto_has_cipherh]j:)}(hcrypto_has_cipherh]hcrypto_has_cipher}(hj0hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj0ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj/hhhj0hKQubj )}(h*(const char *alg_name, u32 type, u32 mask)h](j )}(hconst char *alg_nameh](j)}(hj h]hconst}(hj20hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.0ubj#)}(h h]h }(hj?0hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj.0ubj )}(hcharh]hchar}(hjM0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj.0ubj#)}(h h]h }(hj[0hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj.0ubj )}(hj h]h*}(hji0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj.0ubj:)}(halg_nameh]halg_name}(hjv0hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj.0ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj*0ubj )}(hu32 typeh](h)}(hhh]j:)}(hu32h]hu32}(hj0hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj0modnameN classnameNjj)}j]jo )}jg j0sbc.crypto_has_cipherasbuh1hhj0ubj#)}(h h]h }(hj0hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj0ubj:)}(htypeh]htype}(hj0hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj0ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj*0ubj )}(hu32 maskh](h)}(hhh]j:)}(hu32h]hu32}(hj0hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj0modnameN classnameNjj)}j]j0c.crypto_has_cipherasbuh1hhj0ubj#)}(h h]h }(hj0hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj0ubj:)}(hmaskh]hmask}(hj1hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj0ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj*0ubeh}(h]h ]h"]h$]h&]jQjRuh1j hj/hhhj0hKQubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj/hhhj0hKQubah}(h]j/ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj0hKQhj/hhubjh)}(hhh]h)}(h4Search for the availability of a single block cipherh]h4Search for the availability of a single block cipher}(hj21hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKQhj/1hhubah}(h]h ]h"]h$]h&]uh1jghj/hhhj0hKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJ1jjJ1jjjuh1hhhhjp+hNhNubj)}(hXD**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]j)}(hjT1h]h Parameters}(hjV1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR1ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKUhjN1ubj)}(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)}(hjs1h]hconst char *alg_name}(hju1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq1ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKShjm1ubj)}(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:37: ./include/crypto/internal/cipher.hhKRhj1ubah}(h]h ]h"]h$]h&]uh1jhjm1ubeh}(h]h ]h"]h$]h&]uh1jhj1hKShjj1ubj)}(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:37: ./include/crypto/internal/cipher.hhKThj1ubj)}(hhh]h)}(h specifies the type of the cipherh]h specifies the type of the cipher}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKThj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hKThjj1ubj)}(h/``u32 mask`` specifies the mask for the cipher h](j)}(h ``u32 mask``h]j)}(hj1h]hu32 mask}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKUhj1ubj)}(hhh]h)}(h!specifies the mask for the cipherh]h!specifies the mask for the cipher}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKUhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hKUhjj1ubeh}(h]h ]h"]h$]h&]uh1jhjN1ubh)}(h **Return**h]j)}(hj!2h]hReturn}(hj#2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKWhjN1ubh)}(hTtrue when the single block cipher is known to the kernel crypto API; false otherwiseh]hTtrue when the single block cipher is known to the kernel crypto API; false otherwise}(hj72hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKWhjN1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$crypto_cipher_blocksize (C function)c.crypto_cipher_blocksizehNtauh1hhjp+hhhNhNubj)}(hhh](j)}(h@unsigned int crypto_cipher_blocksize (struct crypto_cipher *tfm)h]j )}(h?unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm)h](j )}(hunsignedh]hunsigned}(hjf2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjb2hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKdubj#)}(h h]h }(hju2hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjb2hhhjt2hKdubj )}(hinth]hint}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjb2hhhjt2hKdubj#)}(h h]h }(hj2hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjb2hhhjt2hKdubj4)}(hcrypto_cipher_blocksizeh]j:)}(hcrypto_cipher_blocksizeh]hcrypto_cipher_blocksize}(hj2hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj2ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hjb2hhhjt2hKdubj )}(h(struct crypto_cipher *tfm)h]j )}(hstruct crypto_cipher *tfmh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj#)}(h h]h }(hj2hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj2ubh)}(hhh]j:)}(h crypto_cipherh]h crypto_cipher}(hj2hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj2modnameN classnameNjj)}j]jo )}jg j2sbc.crypto_cipher_blocksizeasbuh1hhj2ubj#)}(h h]h }(hj2hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj2ubj )}(hj h]h*}(hj 3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj2ubj:)}(htfmh]htfm}(hj3hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj2ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj2ubah}(h]h ]h"]h$]h&]jQjRuh1j hjb2hhhjt2hKdubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj^2hhhjt2hKdubah}(h]jY2ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhjt2hKdhj[2hhubjh)}(hhh]h)}(hobtain block size for cipherh]hobtain block size for cipher}(hjB3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKdhj?3hhubah}(h]h ]h"]h$]h&]uh1jghj[2hhhjt2hKdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZ3jjZ3jjjuh1hhhhjp+hNhNubj)}(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]j)}(hjd3h]h Parameters}(hjf3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb3ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhhj^3ubj)}(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:37: ./include/crypto/internal/cipher.hhKehj}3ubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKehj3ubah}(h]h ]h"]h$]h&]uh1jhj}3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKehjz3ubah}(h]h ]h"]h$]h&]uh1jhj^3ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKghj^3ubh)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKfhj^3ubh)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKjhj^3ubh)}(hblock size of cipherh]hblock size of cipher}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKkhj^3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!crypto_cipher_setkey (C function)c.crypto_cipher_setkeyhNtauh1hhjp+hhhNhNubj)}(hhh](j)}(hXint crypto_cipher_setkey (struct crypto_cipher *tfm, const u8 *key, unsigned int keylen)h]j )}(hWint crypto_cipher_setkey(struct crypto_cipher *tfm, const u8 *key, unsigned int keylen)h](j )}(hinth]hint}(hj*4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj&4hhhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKubj#)}(h h]h }(hj94hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj&4hhhj84hKubj4)}(hcrypto_cipher_setkeyh]j:)}(hcrypto_cipher_setkeyh]hcrypto_cipher_setkey}(hjK4hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjG4ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj&4hhhj84hKubj )}(h?(struct crypto_cipher *tfm, const u8 *key, unsigned int keylen)h](j )}(hstruct crypto_cipher *tfmh](j)}(hjh]hstruct}(hjg4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc4ubj#)}(h h]h }(hjt4hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjc4ubh)}(hhh]j:)}(h crypto_cipherh]h crypto_cipher}(hj4hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj4modnameN classnameNjj)}j]jo )}jg jM4sbc.crypto_cipher_setkeyasbuh1hhjc4ubj#)}(h h]h }(hj4hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjc4ubj )}(hj h]h*}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjc4ubj:)}(htfmh]htfm}(hj4hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjc4ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj_4ubj )}(h const u8 *keyh](j)}(hj h]hconst}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj#)}(h h]h }(hj4hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj4ubh)}(hhh]j:)}(hu8h]hu8}(hj4hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj4modnameN classnameNjj)}j]j4c.crypto_cipher_setkeyasbuh1hhj4ubj#)}(h h]h }(hj5hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj4ubj )}(hj h]h*}(hj#5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj4ubj:)}(hkeyh]hkey}(hj05hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj4ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj_4ubj )}(hunsigned int keylenh](j )}(hunsignedh]hunsigned}(hjI5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjE5ubj#)}(h h]h }(hjW5hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjE5ubj )}(hinth]hint}(hje5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjE5ubj#)}(h h]h }(hjs5hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjE5ubj:)}(hkeylenh]hkeylen}(hj5hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjE5ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hj_4ubeh}(h]h ]h"]h$]h&]jQjRuh1j hj&4hhhj84hKubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj"4hhhj84hKubah}(h]j4ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj84hKhj4hhubjh)}(hhh]h)}(hset key for cipherh]hset key for cipher}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKh5hhubah}(h]h ]h"]h$]h&]uh1jghj4hhhj84hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhjp+hNhNubj)}(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]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj5ubj)}(hhh](j)}(h,``struct crypto_cipher *tfm`` cipher handle h](j)}(h``struct crypto_cipher *tfm``h]j)}(hj5h]hstruct crypto_cipher *tfm}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj5ubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj5ubj)}(h)``const u8 *key`` buffer holding the key h](j)}(h``const u8 *key``h]j)}(hj%6h]h const u8 *key}(hj'6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#6ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj6ubj)}(hhh]h)}(hbuffer holding the keyh]hbuffer holding the key}(hj>6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:6hKhj;6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj:6hKhj5ubj)}(h3``unsigned int keylen`` length of the key in bytes h](j)}(h``unsigned int keylen``h]j)}(hj^6h]hunsigned int keylen}(hj`6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\6ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhjX6ubj)}(hhh]h)}(hlength of the key in bytesh]hlength of the key in bytes}(hjw6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs6hKhjt6ubah}(h]h ]h"]h$]h&]uh1jhjX6ubeh}(h]h ]h"]h$]h&]uh1jhjs6hKhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj5ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj5ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj5ubh)}(h **Return**h]j)}(hj6h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj5ubh)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp+hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&crypto_cipher_encrypt_one (C function)c.crypto_cipher_encrypt_onehNtauh1hhjp+hhhNhNubj)}(hhh](j)}(hRvoid crypto_cipher_encrypt_one (struct crypto_cipher *tfm, u8 *dst, const u8 *src)h]j )}(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:37: ./include/crypto/internal/cipher.hhKubj#)}(h h]h }(hj#7hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj7hhhj"7hKubj4)}(hcrypto_cipher_encrypt_oneh]j:)}(hcrypto_cipher_encrypt_oneh]hcrypto_cipher_encrypt_one}(hj57hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj17ubah}(h]h ](jLjMeh"]h$]h&]jQjRuh1j3hj7hhhj"7hKubj )}(h3(struct crypto_cipher *tfm, u8 *dst, const u8 *src)h](j )}(hstruct crypto_cipher *tfmh](j)}(hjh]hstruct}(hjQ7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM7ubj#)}(h h]h }(hj^7hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjM7ubh)}(hhh]j:)}(h crypto_cipherh]h crypto_cipher}(hjo7hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjl7ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetjq7modnameN classnameNjj)}j]jo )}jg j77sbc.crypto_cipher_encrypt_oneasbuh1hhjM7ubj#)}(h h]h }(hj7hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hjM7ubj )}(hj h]h*}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjM7ubj:)}(htfmh]htfm}(hj7hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hjM7ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjI7ubj )}(hu8 *dsth](h)}(hhh]j:)}(hu8h]hu8}(hj7hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj7modnameN classnameNjj)}j]j7c.crypto_cipher_encrypt_oneasbuh1hhj7ubj#)}(h h]h }(hj7hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj7ubj )}(hj h]h*}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj7ubj:)}(hdsth]hdst}(hj7hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj7ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjI7ubj )}(h const u8 *srch](j)}(hj h]hconst}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj#)}(h h]h }(hj%8hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj8ubh)}(hhh]j:)}(hu8h]hu8}(hj68hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj38ubah}(h]h ]h"]h$]h&] refdomainjreftypejg reftargetj88modnameN classnameNjj)}j]j7c.crypto_cipher_encrypt_oneasbuh1hhj8ubj#)}(h h]h }(hjT8hhhNhNubah}(h]h ]j/ah"]h$]h&]uh1j"hj8ubj )}(hj h]h*}(hjb8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj8ubj:)}(hsrch]hsrc}(hjo8hhhNhNubah}(h]h ]jEah"]h$]h&]uh1j9hj8ubeh}(h]h ]h"]h$]h&]noemphjQjRuh1j hjI7ubeh}(h]h ]h"]h$]h&]jQjRuh1j hj7hhhj"7hKubeh}(h]h ]h"]h$]h&]jQjRjYuh1j jZj[hj 7hhhj"7hKubah}(h]j7ah ](j_j`eh"]h$]h&]jdje)jfhuh1jhj"7hKhj 7hhubjh)}(hhh]h)}(hencrypt one block of plaintexth]hencrypt one block of plaintext}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj8hhubah}(h]h ]h"]h$]h&]uh1jghj 7hhhj"7hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhjp+hNhNubj)}(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]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj8ubj)}(hhh](j)}(h,``struct crypto_cipher *tfm`` cipher handle h](j)}(h``struct crypto_cipher *tfm``h]j)}(hj8h]hstruct crypto_cipher *tfm}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/crypto/api-skcipher:37: ./include/crypto/internal/cipher.hhKhj8ubj)}(hhh]h)}(h cipher handleh]h cipher handle}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj8ubj)}(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:37: ./include/crypto/internal/cipher.hhKhj 9ubj)}(hhh]h)}(h