Lines Matching refs:skcipher

58 	struct skcipher_alg skcipher;  member
937 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
940 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey()
942 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
943 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
946 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
980 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
989 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
992 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
1010 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
1013 static int ctr_skcipher_setkey(struct crypto_skcipher *skcipher, in ctr_skcipher_setkey() argument
1030 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in ctr_skcipher_setkey()
1033 static int chacha20_skcipher_setkey(struct crypto_skcipher *skcipher, in chacha20_skcipher_setkey() argument
1039 return skcipher_setkey(skcipher, key, keylen, 0); in chacha20_skcipher_setkey()
1042 static int des_skcipher_setkey(struct crypto_skcipher *skcipher, in des_skcipher_setkey() argument
1045 return verify_skcipher_des_key(skcipher, key) ?: in des_skcipher_setkey()
1046 skcipher_setkey(skcipher, key, keylen, 0); in des_skcipher_setkey()
1049 static int des3_skcipher_setkey(struct crypto_skcipher *skcipher, in des3_skcipher_setkey() argument
1052 return verify_skcipher_des3_key(skcipher, key) ?: in des3_skcipher_setkey()
1053 skcipher_setkey(skcipher, key, keylen, 0); in des3_skcipher_setkey()
1056 static int xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in xts_skcipher_setkey() argument
1059 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in xts_skcipher_setkey()
1066 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1108 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_edesc_alloc() local
1112 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_edesc_alloc()
1120 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_edesc_alloc()
1270 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_unmap() local
1271 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_unmap()
1391 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_done() local
1392 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_encrypt_done()
1395 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_encrypt_done()
1429 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_done() local
1430 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_decrypt_done()
1433 int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_decrypt_done()
1464 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in xts_skcipher_ivsize() local
1465 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in xts_skcipher_ivsize()
1473 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt() local
1474 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_encrypt()
1523 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt() local
1524 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_decrypt()
1602 container_of(alg, typeof(*caam_alg), skcipher); in caam_cra_init_skcipher()
1668 .skcipher = {
1684 .skcipher = {
1700 .skcipher = {
1716 .skcipher = {
1734 .skcipher = {
1757 .skcipher = {
1774 .skcipher = {
3004 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
5256 err = crypto_register_skcipher(&t_alg->skcipher); in dpaa2_caam_probe()
5259 t_alg->skcipher.base.cra_driver_name, err); in dpaa2_caam_probe()
5412 crypto_unregister_skcipher(&t_alg->skcipher); in dpaa2_caam_remove()