Lines Matching refs:skcipher
60 struct skcipher_alg skcipher; member
942 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
945 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
947 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
948 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
951 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
985 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
994 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
997 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
1015 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
1018 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
1035 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
1038 static int chacha20_skcipher_setkey(struct crypto_skcipher *skcipher, in chacha20_skcipher_setkey() argument
1044 return skcipher_setkey(skcipher, key, keylen, 0); in chacha20_skcipher_setkey()
1047 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
1050 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
1051 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
1054 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
1057 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
1058 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
1061 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
1064 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
1071 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1113 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1117 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1125 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1275 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
1276 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1396 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_done() local
1397 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt_done()
1400 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_encrypt_done()
1434 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_done() local
1435 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt_done()
1438 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_decrypt_done()
1469 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1470 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1478 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt() local
1479 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt()
1528 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt() local
1529 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt()
1607 container_of(alg, typeof(*caam_alg), skcipher); in caam_cra_init_skcipher()
1675 .skcipher = {
1691 .skcipher = {
1707 .skcipher = {
1723 .skcipher = {
1741 .skcipher = {
1764 .skcipher = {
1781 .skcipher = {
3011 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
5271 err = crypto_register_skcipher(&t_alg->skcipher); in dpaa2_caam_probe()
5274 t_alg->skcipher.base.cra_driver_name, err); in dpaa2_caam_probe()
5427 crypto_unregister_skcipher(&t_alg->skcipher); in dpaa2_caam_remove()