Lines Matching refs:skcipher

107 	struct skcipher_engine_alg skcipher;  member
739 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
742 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
744 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey()
745 skcipher.base); in skcipher_setkey()
747 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
775 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
784 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
787 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
805 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
808 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
825 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
828 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
831 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
832 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
835 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
838 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
839 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
842 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
845 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
851 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
970 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
971 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1024 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt_done() local
1026 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_crypt_done()
1253 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in init_skcipher_job() local
1254 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in init_skcipher_job()
1256 int ivsize = crypto_skcipher_ivsize(skcipher); in init_skcipher_job()
1615 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1616 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1625 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1804 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1805 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1813 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt() local
1814 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_crypt()
1889 .skcipher.base = {
1902 .skcipher.op = {
1908 .skcipher.base = {
1921 .skcipher.op = {
1927 .skcipher.base = {
1940 .skcipher.op = {
1946 .skcipher.base = {
1960 .skcipher.op = {
1967 .skcipher.base = {
1983 .skcipher.op = {
1993 .skcipher.base = {
2007 .skcipher.op = {
2013 .skcipher.base = {
2025 .skcipher.op = {
2031 .skcipher.base = {
2043 .skcipher.op = {
2049 .skcipher.base = {
2061 .skcipher.op = {
3624 container_of(alg, typeof(*caam_alg), skcipher.base); in caam_cra_init()
3705 crypto_engine_unregister_skcipher(&t_alg->skcipher); in caam_algapi_exit()
3711 struct skcipher_alg *alg = &t_alg->skcipher.base; in caam_skcipher_alg_init()
3815 err = crypto_engine_register_skcipher(&t_alg->skcipher); in caam_algapi_init()
3818 t_alg->skcipher.base.base.cra_driver_name); in caam_algapi_init()