Home
last modified time | relevance | path

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

/Linux-v4.19/crypto/
Dskcipher.c627 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_blkcipher() local
628 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_blkcipher()
636 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_blkcipher() local
637 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_blkcipher()
653 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_init_skcipher_ops_blkcipher() local
672 skcipher->setkey = skcipher_setkey_blkcipher; in crypto_init_skcipher_ops_blkcipher()
673 skcipher->encrypt = skcipher_encrypt_blkcipher; in crypto_init_skcipher_ops_blkcipher()
674 skcipher->decrypt = skcipher_decrypt_blkcipher; in crypto_init_skcipher_ops_blkcipher()
676 skcipher->ivsize = crypto_blkcipher_ivsize(blkcipher); in crypto_init_skcipher_ops_blkcipher()
677 skcipher->keysize = calg->cra_blkcipher.max_keysize; in crypto_init_skcipher_ops_blkcipher()
[all …]
DMakefile22 crypto_blkcipher-y += skcipher.o
/Linux-v4.19/Documentation/crypto/
Dapi-samples.rst30 pr_info("skcipher encrypt returned with result %d\n", rc);
39 struct crypto_skcipher *skcipher = NULL;
46 skcipher = crypto_alloc_skcipher("cbc-aes-aesni", 0, 0);
47 if (IS_ERR(skcipher)) {
48 pr_info("could not allocate skcipher handle\n");
49 return PTR_ERR(skcipher);
52 req = skcipher_request_alloc(skcipher, GFP_KERNEL);
54 pr_info("could not allocate skcipher request\n");
65 if (crypto_skcipher_setkey(skcipher, key, 32)) {
87 sk.tfm = skcipher;
[all …]
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.rst20 api-skcipher
Darchitecture.rst145 - skcipher for symmetric key ciphers
327 | skcipher | | ahash |
Duserspace-if.rst149 .salg_type = "skcipher", /* this selects the symmetric cipher */
366 - the skcipher cipher type (symmetric ciphers)
/Linux-v4.19/include/crypto/internal/
Dskcipher.h82 struct crypto_skcipher *skcipher) in skcipher_alg_instance() argument
84 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance()
131 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() argument
133 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize()
/Linux-v4.19/drivers/crypto/inside-secure/
Dsafexcel_cipher.c697 EIP197_REQUEST_ON_STACK(req, skcipher, EIP197_SKCIPHER_REQ_SIZE); in safexcel_skcipher_exit_inv()
784 alg.skcipher.base); in safexcel_skcipher_cra_init()
853 .alg.skcipher = {
892 .alg.skcipher = {
962 .alg.skcipher = {
1002 .alg.skcipher = {
1066 .alg.skcipher = {
1106 .alg.skcipher = {
Dsafexcel.c871 ret = crypto_register_skcipher(&safexcel_algs[i]->alg.skcipher); in safexcel_register_algorithms()
889 crypto_unregister_skcipher(&safexcel_algs[j]->alg.skcipher); in safexcel_register_algorithms()
908 crypto_unregister_skcipher(&safexcel_algs[i]->alg.skcipher); in safexcel_unregister_algorithms()
Dsafexcel.h645 struct skcipher_alg skcipher; member
/Linux-v4.19/drivers/crypto/ccree/
Dcc_driver.h152 struct skcipher_alg skcipher; member
Dcc_cipher.c20 #define template_skcipher template_u.skcipher
/Linux-v4.19/drivers/crypto/amcc/
Dcrypto4xx_core.c550 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto4xx_cipher_done() local
554 crypto_skcipher_ivsize(skcipher)); in crypto4xx_cipher_done()