Lines Matching refs:skcipher

627 	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()
679 if (skcipher->keysize) in crypto_init_skcipher_ops_blkcipher()
680 crypto_skcipher_set_flags(skcipher, CRYPTO_TFM_NEED_KEY); in crypto_init_skcipher_ops_blkcipher()
725 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_ablkcipher() local
726 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_ablkcipher()
734 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_ablkcipher() local
735 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_ablkcipher()
751 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_init_skcipher_ops_ablkcipher() local
769 skcipher->setkey = skcipher_setkey_ablkcipher; in crypto_init_skcipher_ops_ablkcipher()
770 skcipher->encrypt = skcipher_encrypt_ablkcipher; in crypto_init_skcipher_ops_ablkcipher()
771 skcipher->decrypt = skcipher_decrypt_ablkcipher; in crypto_init_skcipher_ops_ablkcipher()
773 skcipher->ivsize = crypto_ablkcipher_ivsize(ablkcipher); in crypto_init_skcipher_ops_ablkcipher()
774 skcipher->reqsize = crypto_ablkcipher_reqsize(ablkcipher) + in crypto_init_skcipher_ops_ablkcipher()
776 skcipher->keysize = calg->cra_ablkcipher.max_keysize; in crypto_init_skcipher_ops_ablkcipher()
778 if (skcipher->keysize) in crypto_init_skcipher_ops_ablkcipher()
779 crypto_skcipher_set_flags(skcipher, CRYPTO_TFM_NEED_KEY); in crypto_init_skcipher_ops_ablkcipher()
831 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_exit_tfm() local
832 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm()
834 alg->exit(skcipher); in crypto_skcipher_exit_tfm()
839 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_init_tfm() local
840 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm()
849 skcipher->setkey = skcipher_setkey; in crypto_skcipher_init_tfm()
850 skcipher->encrypt = alg->encrypt; in crypto_skcipher_init_tfm()
851 skcipher->decrypt = alg->decrypt; in crypto_skcipher_init_tfm()
852 skcipher->ivsize = alg->ivsize; in crypto_skcipher_init_tfm()
853 skcipher->keysize = alg->max_keysize; in crypto_skcipher_init_tfm()
855 if (skcipher->keysize) in crypto_skcipher_init_tfm()
856 crypto_skcipher_set_flags(skcipher, CRYPTO_TFM_NEED_KEY); in crypto_skcipher_init_tfm()
859 skcipher->base.exit = crypto_skcipher_exit_tfm; in crypto_skcipher_init_tfm()
862 return alg->init(skcipher); in crypto_skcipher_init_tfm()
869 struct skcipher_instance *skcipher = in crypto_skcipher_free_instance() local
872 skcipher->free(skcipher); in crypto_skcipher_free_instance()
879 struct skcipher_alg *skcipher = container_of(alg, struct skcipher_alg, in crypto_skcipher_show() local
886 seq_printf(m, "min keysize : %u\n", skcipher->min_keysize); in crypto_skcipher_show()
887 seq_printf(m, "max keysize : %u\n", skcipher->max_keysize); in crypto_skcipher_show()
888 seq_printf(m, "ivsize : %u\n", skcipher->ivsize); in crypto_skcipher_show()
889 seq_printf(m, "chunksize : %u\n", skcipher->chunksize); in crypto_skcipher_show()
890 seq_printf(m, "walksize : %u\n", skcipher->walksize); in crypto_skcipher_show()
897 struct skcipher_alg *skcipher = container_of(alg, struct skcipher_alg, in crypto_skcipher_report() local
904 rblkcipher.min_keysize = skcipher->min_keysize; in crypto_skcipher_report()
905 rblkcipher.max_keysize = skcipher->max_keysize; in crypto_skcipher_report()
906 rblkcipher.ivsize = skcipher->ivsize; in crypto_skcipher_report()