Lines Matching refs:safexcel_cipher_ctx
45 struct safexcel_cipher_ctx { struct
77 static int safexcel_skcipher_iv(struct safexcel_cipher_ctx *ctx, u8 *iv, in safexcel_skcipher_iv() argument
105 static void safexcel_skcipher_token(struct safexcel_cipher_ctx *ctx, u8 *iv, in safexcel_skcipher_token()
134 static void safexcel_aead_iv(struct safexcel_cipher_ctx *ctx, u8 *iv, in safexcel_aead_iv()
160 static void safexcel_aead_token(struct safexcel_cipher_ctx *ctx, u8 *iv, in safexcel_aead_token()
375 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_setkey()
406 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_setkey()
505 static int safexcel_context_control(struct safexcel_cipher_ctx *ctx, in safexcel_context_control()
617 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(skcipher); in safexcel_handle_req_result()
682 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_send_req()
920 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_handle_inv_result()
1022 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_cipher_send_inv()
1040 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_skcipher_send()
1073 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_aead_send()
1096 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_cipher_exit_inv()
1158 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_queue_req()
1205 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_cra_init()
1224 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_cipher_cra_exit()
1238 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_cra_exit()
1258 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_cra_exit()
1278 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ecb_cra_init()
1305 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1316 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_cbc_cra_init()
1343 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1354 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_cfb_cra_init()
1381 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1392 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ofb_cra_init()
1419 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1432 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aesctr_setkey()
1466 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ctr_cra_init()
1494 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1506 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey()
1527 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des_cbc_cra_init()
1555 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1566 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des_ecb_cra_init()
1593 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1605 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des3_ede_setkey()
1626 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des3_cbc_cra_init()
1654 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1665 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des3_ecb_cra_init()
1692 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1717 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_cra_init()
1740 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_cra_init()
1765 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1776 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_cra_init()
1801 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1812 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_cra_init()
1837 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1848 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_cra_init()
1873 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1884 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_cra_init()
1909 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1920 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_des3_cra_init()
1946 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1957 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_des3_cra_init()
1983 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1994 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_des3_cra_init()
2020 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2031 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_des3_cra_init()
2057 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2068 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_des3_cra_init()
2094 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2105 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_des_cra_init()
2131 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2142 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_des_cra_init()
2168 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2179 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_des_cra_init()
2205 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2216 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_des_cra_init()
2242 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2253 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_des_cra_init()
2279 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2290 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_ctr_cra_init()
2314 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2325 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_ctr_cra_init()
2349 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2360 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_ctr_cra_init()
2384 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2395 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_ctr_cra_init()
2419 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2430 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_ctr_cra_init()
2454 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2467 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aesxts_setkey()
2523 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_xts_cra_init()
2568 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2581 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_setkey()
2630 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_cra_init()
2670 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2683 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_ccm_setkey()
2725 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_ccm_cra_init()
2794 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2803 static void safexcel_chacha20_setkey(struct safexcel_cipher_ctx *ctx, in safexcel_chacha20_setkey()
2819 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_skcipher_chacha20_setkey()
2831 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_chacha20_cra_init()
2858 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2870 struct safexcel_cipher_ctx *ctx = crypto_aead_ctx(ctfm); in safexcel_aead_chachapoly_setkey()
2900 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapoly_crypt()
2961 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_cra_init()
2981 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapoly_cra_init()
2995 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_cra_exit()
3021 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3032 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapolyesp_cra_init()
3061 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3074 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_setkey()
3112 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ecb_cra_init()
3139 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3150 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_cbc_cra_init()
3177 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3188 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ofb_cra_init()
3215 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3226 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_cfb_cra_init()
3253 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3266 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4ctr_setkey()
3278 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ctr_cra_init()
3306 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3339 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4cbc_sha1_cra_init()
3366 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3379 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_setkey()
3390 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_setauthsize()
3401 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_crypt()
3448 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4cbc_sm3_cra_init()
3477 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3488 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4ctr_sha1_cra_init()
3512 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3523 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4ctr_sm3_cra_init()
3547 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3560 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4106_gcm_setkey()
3589 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4106_gcm_cra_init()
3616 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3635 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4543_gcm_cra_init()
3661 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3673 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4309_ccm_setkey()
3726 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4309_ccm_cra_init()
3753 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),