Home
last modified time | relevance | path

Searched refs:skcipher (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.4/crypto/
Dskcipher.c640 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 …]
Dessiv.c51 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 …]
DMakefile20 crypto_blkcipher-y += skcipher.o
DKconfig502 instantiated either as a skcipher or as a aead (depending on the
/Linux-v5.4/drivers/crypto/caam/
Dcaamalg_qi.c49 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 …]
Dcaamalg.c95 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 …]
Dcaamalg_qi2.c56 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/
Dapi-skcipher.rst13 .. 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
Dapi.rst11 api-skcipher
Darchitecture.rst145 - skcipher for symmetric key ciphers
308 | skcipher | | ahash |
Duserspace-if.rst149 .salg_type = "skcipher", /* this selects the symmetric cipher */
366 - the skcipher cipher type (symmetric ciphers)
/Linux-v5.4/include/crypto/internal/
Dskcipher.h75 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/
Dsafexcel_cipher.c497 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 …]
Dsafexcel.c1188 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()
Dsafexcel.h768 struct skcipher_alg skcipher; member
/Linux-v5.4/drivers/crypto/ccree/
Dcc_driver.h182 struct skcipher_alg skcipher; member
Dcc_cipher.c21 #define template_skcipher template_u.skcipher
/Linux-v5.4/drivers/crypto/amcc/
Dcrypto4xx_core.c542 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto4xx_cipher_done() local
546 crypto_skcipher_ivsize(skcipher)); in crypto4xx_cipher_done()