Lines Matching refs:skcipher

107 	struct skcipher_engine_alg skcipher;  member
738 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
741 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
743 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey()
744 skcipher.base); in skcipher_setkey()
746 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
774 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
783 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
786 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
804 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
807 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
824 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
827 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
830 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
831 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
834 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
837 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
838 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
841 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
844 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
850 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
969 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
970 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1023 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt_done() local
1025 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_crypt_done()
1252 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in init_skcipher_job() local
1253 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in init_skcipher_job()
1255 int ivsize = crypto_skcipher_ivsize(skcipher); in init_skcipher_job()
1614 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1615 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1624 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1803 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1804 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1812 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt() local
1813 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_crypt()
1888 .skcipher.base = {
1901 .skcipher.op = {
1907 .skcipher.base = {
1920 .skcipher.op = {
1926 .skcipher.base = {
1939 .skcipher.op = {
1945 .skcipher.base = {
1959 .skcipher.op = {
1966 .skcipher.base = {
1982 .skcipher.op = {
1992 .skcipher.base = {
2006 .skcipher.op = {
2012 .skcipher.base = {
2024 .skcipher.op = {
2030 .skcipher.base = {
2042 .skcipher.op = {
2048 .skcipher.base = {
2060 .skcipher.op = {
3623 container_of(alg, typeof(*caam_alg), skcipher.base); in caam_cra_init()
3704 crypto_engine_unregister_skcipher(&t_alg->skcipher); in caam_algapi_exit()
3710 struct skcipher_alg *alg = &t_alg->skcipher.base; in caam_skcipher_alg_init()
3814 err = crypto_engine_register_skcipher(&t_alg->skcipher); in caam_algapi_init()
3817 t_alg->skcipher.base.base.cra_driver_name); in caam_algapi_init()