Lines Matching refs:skcipher

51 	struct skcipher_alg skcipher;  member
617 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
620 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey()
622 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey()
623 skcipher); in skcipher_setkey()
625 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
664 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
673 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
676 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
694 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
697 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
714 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
717 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
720 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
721 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
724 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
727 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
728 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
731 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
734 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in xts_skcipher_setkey()
740 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
904 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
905 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1209 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_done() local
1210 struct caam_ctx *caam_ctx = crypto_skcipher_ctx(skcipher); in skcipher_done()
1212 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_done()
1247 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1248 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_edesc_alloc()
1256 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1398 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1399 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1407 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt() local
1408 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_crypt()
1467 .skcipher = {
1483 .skcipher = {
1499 .skcipher = {
1515 .skcipher = {
1533 .skcipher = {
1556 .skcipher = {
2493 container_of(alg, typeof(*caam_alg), skcipher); in caam_cra_init()
2572 crypto_unregister_skcipher(&t_alg->skcipher); in caam_qi_algapi_exit()
2578 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
2666 err = crypto_register_skcipher(&t_alg->skcipher); in caam_qi_algapi_init()
2669 t_alg->skcipher.base.cra_driver_name); in caam_qi_algapi_init()