Lines Matching refs:skcipher

98 	struct skcipher_alg skcipher;
730 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,
733 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
735 container_of(crypto_skcipher_alg(skcipher), typeof(*alg),
736 skcipher);
738 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
766 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher,
775 return skcipher_setkey(skcipher, key, keylen, 0);
778 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher,
796 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off);
799 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher,
816 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off);
819 static int des_skcipher_setkey(struct crypto_skcipher *skcipher,
822 return verify_skcipher_des_key(skcipher, key) ?:
823 skcipher_setkey(skcipher, key, keylen, 0);
826 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher,
829 return verify_skcipher_des3_key(skcipher, key) ?:
830 skcipher_setkey(skcipher, key, keylen, 0);
833 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,
836 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
842 err = xts_verify_key(skcipher, key, keylen);
901 * skcipher_edesc - s/w-extended skcipher descriptor
961 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
962 int ivsize = crypto_skcipher_ivsize(skcipher);
1008 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1010 int ivsize = crypto_skcipher_ivsize(skcipher);
1231 * Fill in skcipher job descriptor
1237 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1238 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
1240 int ivsize = crypto_skcipher_ivsize(skcipher);
1592 * allocate and map the skcipher extended descriptor for skcipher
1597 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1598 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
1607 int ivsize = crypto_skcipher_ivsize(skcipher);
1747 print_hex_dump_debug("skcipher sec4_sg@" __stringify(__LINE__)": ",
1778 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1779 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
1787 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1788 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher);
1827 print_hex_dump_debug("skcipher jobdesc@" __stringify(__LINE__)": ",
1863 .skcipher = {
1879 .skcipher = {
1895 .skcipher = {
1911 .skcipher = {
1929 .skcipher = {
1952 .skcipher = {
1969 .skcipher = {
1984 .skcipher = {
1999 .skcipher = {
3394 container_of(alg, typeof(*caam_alg), skcipher);
3479 crypto_unregister_skcipher(&t_alg->skcipher);
3485 struct skcipher_alg *alg = &t_alg->skcipher;
3588 err = crypto_register_skcipher(&t_alg->skcipher);
3591 t_alg->skcipher.base.cra_driver_name);