Lines Matching refs:skcipher

60 	struct skcipher_alg skcipher;  member
943 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
946 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
948 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
949 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
952 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
986 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
995 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
998 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
1016 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
1019 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
1036 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
1039 static int chacha20_skcipher_setkey(struct crypto_skcipher *skcipher, in chacha20_skcipher_setkey() argument
1045 return skcipher_setkey(skcipher, key, keylen, 0); in chacha20_skcipher_setkey()
1048 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
1051 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
1052 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
1055 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
1058 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
1059 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
1062 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
1065 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
1072 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1114 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1118 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1126 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1276 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
1277 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1397 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_done() local
1398 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt_done()
1401 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_encrypt_done()
1435 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_done() local
1436 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt_done()
1439 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_decrypt_done()
1470 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1471 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1479 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt() local
1480 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt()
1529 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt() local
1530 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt()
1608 container_of(alg, typeof(*caam_alg), skcipher); in caam_cra_init_skcipher()
1676 .skcipher = {
1692 .skcipher = {
1708 .skcipher = {
1724 .skcipher = {
1742 .skcipher = {
1765 .skcipher = {
1782 .skcipher = {
3012 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
5304 err = crypto_register_skcipher(&t_alg->skcipher); in dpaa2_caam_probe()
5307 t_alg->skcipher.base.cra_driver_name, err); in dpaa2_caam_probe()
5460 crypto_unregister_skcipher(&t_alg->skcipher); in dpaa2_caam_remove()