Lines Matching refs:skcipher

56 	struct skcipher_alg skcipher;
622 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,
625 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
627 container_of(crypto_skcipher_alg(skcipher), typeof(*alg),
628 skcipher);
630 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
641 /* skcipher encrypt, decrypt shared descriptors */
669 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher,
678 return skcipher_setkey(skcipher, key, keylen, 0);
681 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher,
699 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off);
702 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher,
719 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off);
722 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher,
725 return verify_skcipher_des3_key(skcipher, key) ?:
726 skcipher_setkey(skcipher, key, keylen, 0);
729 static int des_skcipher_setkey(struct crypto_skcipher *skcipher,
732 return verify_skcipher_des_key(skcipher, key) ?:
733 skcipher_setkey(skcipher, key, keylen, 0);
736 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,
739 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
745 err = xts_verify_key(skcipher, key, keylen);
764 /* xts skcipher encrypt, decrypt shared descriptors */
815 * skcipher_edesc - s/w-extended skcipher descriptor
909 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
910 int ivsize = crypto_skcipher_ivsize(skcipher);
1220 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1221 struct caam_ctx *caam_ctx = crypto_skcipher_ctx_dma(skcipher);
1223 int ivsize = crypto_skcipher_ivsize(skcipher);
1257 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1258 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1266 int ivsize = crypto_skcipher_ivsize(skcipher);
1414 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1415 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
1423 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1424 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1483 .skcipher = {
1499 .skcipher = {
1515 .skcipher = {
1531 .skcipher = {
1549 .skcipher = {
1572 .skcipher = {
2509 container_of(alg, typeof(*caam_alg), skcipher);
2588 crypto_unregister_skcipher(&t_alg->skcipher);
2594 struct skcipher_alg *alg = &t_alg->skcipher;
2682 err = crypto_register_skcipher(&t_alg->skcipher);
2685 t_alg->skcipher.base.cra_driver_name);