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()
1596 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1597 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_edesc_alloc()
1606 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1777 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1778 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1786 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_crypt() local
1787 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_crypt()
1862 .skcipher = {
1878 .skcipher = {
1894 .skcipher = {
1910 .skcipher = {
1928 .skcipher = {
1951 .skcipher = {
1968 .skcipher = {
1983 .skcipher = {
1998 .skcipher = {
3393 container_of(alg, typeof(*caam_alg), skcipher); in caam_cra_init()
3478 crypto_unregister_skcipher(&t_alg->skcipher); in caam_algapi_exit()
3484 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
3587 err = crypto_register_skcipher(&t_alg->skcipher); in caam_algapi_init()
3590 t_alg->skcipher.base.cra_driver_name); in caam_algapi_init()