/Linux-v5.4/crypto/ |
D | skcipher.c | 640 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_blkcipher() local 641 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_blkcipher() 649 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_blkcipher() local 650 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_blkcipher() 666 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_init_skcipher_ops_blkcipher() local 685 skcipher->setkey = skcipher_setkey_blkcipher; in crypto_init_skcipher_ops_blkcipher() 686 skcipher->encrypt = skcipher_encrypt_blkcipher; in crypto_init_skcipher_ops_blkcipher() 687 skcipher->decrypt = skcipher_decrypt_blkcipher; in crypto_init_skcipher_ops_blkcipher() 689 skcipher->ivsize = crypto_blkcipher_ivsize(blkcipher); in crypto_init_skcipher_ops_blkcipher() 690 skcipher->keysize = calg->cra_blkcipher.max_keysize; in crypto_init_skcipher_ops_blkcipher() [all …]
|
D | essiv.c | 51 struct crypto_skcipher *skcipher; member 73 crypto_skcipher_clear_flags(tctx->u.skcipher, CRYPTO_TFM_REQ_MASK); in essiv_skcipher_setkey() 74 crypto_skcipher_set_flags(tctx->u.skcipher, in essiv_skcipher_setkey() 77 err = crypto_skcipher_setkey(tctx->u.skcipher, key, keylen); in essiv_skcipher_setkey() 79 crypto_skcipher_get_flags(tctx->u.skcipher) & in essiv_skcipher_setkey() 166 skcipher_request_set_tfm(subreq, tctx->u.skcipher); in essiv_skcipher_crypt() 315 struct crypto_skcipher *skcipher; in essiv_skcipher_init_tfm() local 318 skcipher = crypto_spawn_skcipher(&ictx->u.skcipher_spawn); in essiv_skcipher_init_tfm() 319 if (IS_ERR(skcipher)) in essiv_skcipher_init_tfm() 320 return PTR_ERR(skcipher); in essiv_skcipher_init_tfm() [all …]
|
D | Makefile | 20 crypto_blkcipher-y += skcipher.o
|
D | Kconfig | 502 instantiated either as a skcipher or as a aead (depending on the
|
/Linux-v5.4/drivers/crypto/caam/ |
D | caamalg_qi.c | 49 struct skcipher_alg skcipher; member 616 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 619 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey() 621 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey() 622 skcipher); in skcipher_setkey() 624 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 662 crypto_skcipher_set_flags(skcipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in skcipher_setkey() 666 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 673 crypto_skcipher_set_flags(skcipher, in aes_skcipher_setkey() 678 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() [all …]
|
D | caamalg.c | 95 struct skcipher_alg skcipher; member 723 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 726 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey() 728 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey() 729 skcipher); in skcipher_setkey() 731 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 759 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 766 crypto_skcipher_set_flags(skcipher, in aes_skcipher_setkey() 771 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() 774 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument [all …]
|
D | caamalg_qi2.c | 56 struct skcipher_alg skcipher; member 946 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 949 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey() 951 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey() 952 struct caam_skcipher_alg, skcipher); in skcipher_setkey() 955 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 989 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 996 crypto_skcipher_set_flags(skcipher, in aes_skcipher_setkey() 1001 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() 1004 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument [all …]
|
/Linux-v5.4/Documentation/crypto/ |
D | api-skcipher.rst | 13 .. kernel-doc:: include/crypto/skcipher.h 16 .. kernel-doc:: include/crypto/skcipher.h 22 .. kernel-doc:: include/crypto/skcipher.h 25 .. kernel-doc:: include/crypto/skcipher.h
|
D | api.rst | 11 api-skcipher
|
D | architecture.rst | 145 - skcipher for symmetric key ciphers 308 | skcipher | | ahash |
|
D | userspace-if.rst | 149 .salg_type = "skcipher", /* this selects the symmetric cipher */ 366 - the skcipher cipher type (symmetric ciphers)
|
/Linux-v5.4/include/crypto/internal/ |
D | skcipher.h | 75 struct crypto_skcipher *skcipher) in skcipher_alg_instance() argument 77 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance() 124 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() argument 126 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize()
|
/Linux-v5.4/drivers/crypto/inside-secure/ |
D | safexcel_cipher.c | 497 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(areq); in safexcel_handle_req_result() local 498 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(skcipher); in safexcel_handle_req_result() 538 crypto_skcipher_ivsize(skcipher), in safexcel_handle_req_result() 540 crypto_skcipher_ivsize(skcipher))); in safexcel_handle_req_result() 556 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(areq); in safexcel_send_req() local 596 crypto_skcipher_ivsize(skcipher), in safexcel_send_req() 598 crypto_skcipher_ivsize(skcipher))); in safexcel_send_req() 908 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in safexcel_skcipher_send() local 915 memcpy(input_iv, req->iv, crypto_skcipher_ivsize(skcipher)); in safexcel_skcipher_send() 985 EIP197_REQUEST_ON_STACK(req, skcipher, EIP197_SKCIPHER_REQ_SIZE); in safexcel_skcipher_exit_inv() [all …]
|
D | safexcel.c | 1188 ret = crypto_register_skcipher(&safexcel_algs[i]->alg.skcipher); in safexcel_register_algorithms() 1209 crypto_unregister_skcipher(&safexcel_algs[j]->alg.skcipher); in safexcel_register_algorithms() 1231 crypto_unregister_skcipher(&safexcel_algs[i]->alg.skcipher); in safexcel_unregister_algorithms()
|
D | safexcel.h | 768 struct skcipher_alg skcipher; member
|
/Linux-v5.4/drivers/crypto/ccree/ |
D | cc_driver.h | 182 struct skcipher_alg skcipher; member
|
D | cc_cipher.c | 21 #define template_skcipher template_u.skcipher
|
/Linux-v5.4/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 542 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto4xx_cipher_done() local 546 crypto_skcipher_ivsize(skcipher)); in crypto4xx_cipher_done()
|