Lines Matching refs:skcipher
51 struct skcipher_alg skcipher;
617 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,
620 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
622 container_of(crypto_skcipher_alg(skcipher), typeof(*alg),
623 skcipher);
625 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
636 /* skcipher encrypt, decrypt shared descriptors */
664 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher,
673 return skcipher_setkey(skcipher, key, keylen, 0);
676 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher,
694 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off);
697 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher,
714 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off);
717 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher,
720 return verify_skcipher_des3_key(skcipher, key) ?:
721 skcipher_setkey(skcipher, key, keylen, 0);
724 static int des_skcipher_setkey(struct crypto_skcipher *skcipher,
727 return verify_skcipher_des_key(skcipher, key) ?:
728 skcipher_setkey(skcipher, key, keylen, 0);
731 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,
734 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
740 err = xts_verify_key(skcipher, key, keylen);
759 /* xts skcipher encrypt, decrypt shared descriptors */
810 * skcipher_edesc - s/w-extended skcipher descriptor
904 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
905 int ivsize = crypto_skcipher_ivsize(skcipher);
1209 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1210 struct caam_ctx *caam_ctx = crypto_skcipher_ctx(skcipher);
1212 int ivsize = crypto_skcipher_ivsize(skcipher);
1247 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1248 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
1256 int ivsize = crypto_skcipher_ivsize(skcipher);
1398 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1399 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
1407 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1408 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
1467 .skcipher = {
1483 .skcipher = {
1499 .skcipher = {
1515 .skcipher = {
1533 .skcipher = {
1556 .skcipher = {
2493 container_of(alg, typeof(*caam_alg), skcipher);
2572 crypto_unregister_skcipher(&t_alg->skcipher);
2578 struct skcipher_alg *alg = &t_alg->skcipher;
2666 err = crypto_register_skcipher(&t_alg->skcipher);
2669 t_alg->skcipher.base.cra_driver_name);