• Home
  • Raw
  • Download

Lines Matching +full:pre +full:- +full:filled

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
27 * This uses __MODULE_INFO directly instead of MODULE_ALIAS because pre-4.3
34 __MODULE_INFO(alias, alias_crypto, "crypto-" name)
69 * Set if the algorithm has passed automated run-time testing. Note that
70 * if there is no run-time testing for a given algorithm it is considered
93 * Set if the algorithm has a ->setkey() method but can be used without
115 * - The IV buffer and all scatterlist elements must be aligned to the
117 * - If the data were to be divided into chunks of size
121 * - The IV buffer and all scatterlist elements must be aligned to the
123 * - The first scatterlist element must contain all the associated data,
125 * - If the plaintext/ciphertext were to be divided into chunks of size
129 * - The result buffer must be aligned to the algorithm's alignmask.
130 * - crypto_ahash_finup() must not be used unless the algorithm implements
131 * ->finup() natively.
154 * faults for C data types. On architectures that support non-cache coherent
158 * maintenance for non-coherent DMA (cache invalidation in particular) does not
196 * struct cipher_alg - single-block symmetric ciphers definition
199 * algorithm. This must be set to one of the pre-defined
205 * algorithm. This must be set to one of the pre-defined values
225 * API will re-align the buffers. The re-alignment means that a
233 * transformation context, the key might need to be re-programmed
240 * All fields are mandatory and must be filled.
252 * struct compress_alg - compression/decompression algorithm
271 * struct crypto_istat_aead - statistics for AEAD algorithm
287 * struct crypto_istat_akcipher - statistics for akcipher algorithm
307 * struct crypto_istat_cipher - statistics for cipher algorithm
323 * struct crypto_istat_compress - statistics for compress algorithm
339 * struct crypto_istat_hash - statistics for has algorithm
351 * struct crypto_istat_kpp - statistics for KPP algorithm
383 * struct crypto_alg - definition of a cryptograpic cipher algorithm
386 * used for fine-tuning the description of the transformation
403 * the Crypto API will do the re-alignment in software, but
405 * The re-alignment happens at these occasions for different
406 * @cra_u types: cipher -- For both input data and output data
407 * buffer; ahash -- For output hash destination buf; shash --
433 * filled with callbacks. This field might be empty. This is the case
446 * @cra_u.cipher: Union member which contains a single-block symmetric cipher
594 case -EINPROGRESS:
595 case -EBUSY:
596 wait_for_completion(&wait->completion);
597 reinit_completion(&wait->completion);
598 err = wait->err;
607 init_completion(&wait->completion);
624 * Transforms: user-instantiated objects which encapsulate algorithms
658 #define CRYPTOA_MAX (__CRYPTOA_MAX - 1)
695 return tfm->__crt_alg->cra_name;
700 return tfm->__crt_alg->cra_driver_name;
705 return tfm->__crt_alg->cra_priority;
710 return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK;
715 return tfm->__crt_alg->cra_blocksize;
720 return tfm->__crt_alg->cra_alignmask;
725 return tfm->crt_flags;
730 tfm->crt_flags |= flags;
735 tfm->crt_flags &= ~flags;
740 return tfm->__crt_ctx;
746 return __alignof__(tfm->__crt_ctx);
762 * block-wise and process either the input or the output data of these cipher
772 * crypto_alloc_cipher() - allocate single block cipher handle
797 return &tfm->base;
801 * crypto_free_cipher() - zeroize and free the single block cipher handle
810 * crypto_has_cipher() - Search for the availability of a single block cipher
829 * crypto_cipher_blocksize() - obtain block size for cipher
866 * crypto_cipher_setkey() - set key for cipher
875 * different cipher modes depending on the key size, such as AES-128 vs AES-192
876 * vs. AES-256. When providing a 16 byte key for an AES cipher handle, AES-128
885 * crypto_cipher_encrypt_one() - encrypt one block of plaintext
887 * @dst: points to the buffer that will be filled with the ciphertext
897 * crypto_cipher_decrypt_one() - decrypt one block of ciphertext
899 * @dst: points to the buffer that will be filled with the plaintext
925 return &tfm->base;