Lines Matching refs:skcipher

61 	struct skcipher_alg skcipher;  member
944 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
947 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
949 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
950 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
953 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
987 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
996 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
999 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
1017 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
1020 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
1037 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
1040 static int chacha20_skcipher_setkey(struct crypto_skcipher *skcipher, in chacha20_skcipher_setkey() argument
1046 return skcipher_setkey(skcipher, key, keylen, 0); in chacha20_skcipher_setkey()
1049 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
1052 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
1053 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
1056 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
1059 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
1060 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
1063 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
1066 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in xts_skcipher_setkey()
1073 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1115 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1119 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_edesc_alloc()
1127 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1277 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
1278 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1398 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_done() local
1399 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt_done()
1402 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_encrypt_done()
1436 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_done() local
1437 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt_done()
1440 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_decrypt_done()
1471 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1472 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1480 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt() local
1481 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_encrypt()
1530 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt() local
1531 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_decrypt()
1609 container_of(alg, typeof(*caam_alg), skcipher); in caam_cra_init_skcipher()
1677 .skcipher = {
1693 .skcipher = {
1709 .skcipher = {
1725 .skcipher = {
1743 .skcipher = {
1766 .skcipher = {
1783 .skcipher = {
3013 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
5305 err = crypto_register_skcipher(&t_alg->skcipher); in dpaa2_caam_probe()
5308 t_alg->skcipher.base.cra_driver_name, err); in dpaa2_caam_probe()
5461 crypto_unregister_skcipher(&t_alg->skcipher); in dpaa2_caam_remove()