Lines Matching refs:skcipher

62 #include <crypto/internal/skcipher.h>
107 struct skcipher_engine_alg skcipher;
739 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,
742 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
744 container_of(crypto_skcipher_alg(skcipher), typeof(*alg),
745 skcipher.base);
747 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
775 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher,
784 return skcipher_setkey(skcipher, key, keylen, 0);
787 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher,
805 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off);
808 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher,
825 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off);
828 static int des_skcipher_setkey(struct crypto_skcipher *skcipher,
831 return verify_skcipher_des_key(skcipher, key) ?:
832 skcipher_setkey(skcipher, key, keylen, 0);
835 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher,
838 return verify_skcipher_des3_key(skcipher, key) ?:
839 skcipher_setkey(skcipher, key, keylen, 0);
842 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,
845 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
851 err = xts_verify_key(skcipher, key, keylen);
910 * skcipher_edesc - s/w-extended skcipher descriptor
970 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
971 int ivsize = crypto_skcipher_ivsize(skcipher);
1024 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1026 int ivsize = crypto_skcipher_ivsize(skcipher);
1247 * Fill in skcipher job descriptor
1253 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1254 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1256 int ivsize = crypto_skcipher_ivsize(skcipher);
1610 * allocate and map the skcipher extended descriptor for skcipher
1615 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1616 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1625 int ivsize = crypto_skcipher_ivsize(skcipher);
1770 print_hex_dump_debug("skcipher sec4_sg@" __stringify(__LINE__)": ",
1804 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1805 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
1813 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);
1814 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
1853 print_hex_dump_debug("skcipher jobdesc@" __stringify(__LINE__)": ",
1889 .skcipher.base = {
1902 .skcipher.op = {
1908 .skcipher.base = {
1921 .skcipher.op = {
1927 .skcipher.base = {
1940 .skcipher.op = {
1946 .skcipher.base = {
1960 .skcipher.op = {
1967 .skcipher.base = {
1983 .skcipher.op = {
1993 .skcipher.base = {
2007 .skcipher.op = {
2013 .skcipher.base = {
2025 .skcipher.op = {
2031 .skcipher.base = {
2043 .skcipher.op = {
2049 .skcipher.base = {
2061 .skcipher.op = {
3624 container_of(alg, typeof(*caam_alg), skcipher.base);
3705 crypto_engine_unregister_skcipher(&t_alg->skcipher);
3711 struct skcipher_alg *alg = &t_alg->skcipher.base;
3815 err = crypto_engine_register_skcipher(&t_alg->skcipher);
3818 t_alg->skcipher.base.base.cra_driver_name);