Lines Matching refs:skcipher

56 	struct skcipher_alg skcipher;  member
622 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
625 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
627 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey()
628 skcipher); in skcipher_setkey()
630 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
669 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
678 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
681 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
699 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
702 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
719 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
722 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
725 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
726 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
729 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
732 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
733 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
736 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
739 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
745 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
909 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
910 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1220 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_done() local
1221 struct caam_ctx *caam_ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_done()
1223 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_done()
1257 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1258 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1266 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1414 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1415 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1423 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt() local
1424 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_crypt()
1483 .skcipher = {
1499 .skcipher = {
1515 .skcipher = {
1531 .skcipher = {
1549 .skcipher = {
1572 .skcipher = {
2509 container_of(alg, typeof(*caam_alg), skcipher); in caam_cra_init()
2588 crypto_unregister_skcipher(&t_alg->skcipher); in caam_qi_algapi_exit()
2594 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
2682 err = crypto_register_skcipher(&t_alg->skcipher); in caam_qi_algapi_init()
2685 t_alg->skcipher.base.cra_driver_name); in caam_qi_algapi_init()