Lines Matching refs:skcipher
98 struct skcipher_alg skcipher; member
729 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
732 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey()
734 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey()
735 skcipher); in skcipher_setkey()
737 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
765 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
774 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
777 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
795 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
798 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
815 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
818 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
821 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
822 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
825 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
828 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
829 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
832 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
835 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in xts_skcipher_setkey()
841 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
960 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
961 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1007 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt_done() local
1009 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_crypt_done()
1236 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in init_skcipher_job() local
1237 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in init_skcipher_job()
1239 int ivsize = crypto_skcipher_ivsize(skcipher); in init_skcipher_job()
1599 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1600 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_edesc_alloc()
1609 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1783 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1784 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1792 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt() local
1793 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_crypt()
1868 .skcipher = {
1884 .skcipher = {
1900 .skcipher = {
1916 .skcipher = {
1934 .skcipher = {
1957 .skcipher = {
1974 .skcipher = {
1989 .skcipher = {
2004 .skcipher = {
3399 container_of(alg, typeof(*caam_alg), skcipher); in caam_cra_init()
3484 crypto_unregister_skcipher(&t_alg->skcipher); in caam_algapi_exit()
3490 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
3593 err = crypto_register_skcipher(&t_alg->skcipher); in caam_algapi_init()
3596 t_alg->skcipher.base.cra_driver_name); in caam_algapi_init()