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()
1159 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_queue_req()
1206 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_cra_init()
1225 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_cipher_cra_exit()
1239 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_cra_exit()
1259 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_cra_exit()
1279 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ecb_cra_init()
1306 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1317 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_cbc_cra_init()
1344 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1355 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_cfb_cra_init()
1382 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1393 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ofb_cra_init()
1420 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1433 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aesctr_setkey()
1467 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ctr_cra_init()
1495 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1507 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey()
1528 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des_cbc_cra_init()
1556 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1567 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des_ecb_cra_init()
1594 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1606 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des3_ede_setkey()
1627 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des3_cbc_cra_init()
1655 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1666 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des3_ecb_cra_init()
1693 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1718 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_cra_init()
1741 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_cra_init()
1766 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1777 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_cra_init()
1802 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1813 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_cra_init()
1838 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1849 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_cra_init()
1874 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1885 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_cra_init()
1910 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1921 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_des3_cra_init()
1947 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1958 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_des3_cra_init()
1984 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1995 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_des3_cra_init()
2021 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2032 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_des3_cra_init()
2058 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2069 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_des3_cra_init()
2095 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2106 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_des_cra_init()
2132 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2143 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_des_cra_init()
2169 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2180 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_des_cra_init()
2206 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2217 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_des_cra_init()
2243 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2254 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_des_cra_init()
2280 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2291 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_ctr_cra_init()
2315 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2326 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_ctr_cra_init()
2350 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2361 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_ctr_cra_init()
2385 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2396 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_ctr_cra_init()
2420 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2431 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_ctr_cra_init()
2455 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2468 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aesxts_setkey()
2524 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_xts_cra_init()
2569 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2582 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_setkey()
2631 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_cra_init()
2671 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2684 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_ccm_setkey()
2726 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_ccm_cra_init()
2795 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2804 static void safexcel_chacha20_setkey(struct safexcel_cipher_ctx *ctx, in safexcel_chacha20_setkey()
2820 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_skcipher_chacha20_setkey()
2832 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_chacha20_cra_init()
2859 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2871 struct safexcel_cipher_ctx *ctx = crypto_aead_ctx(ctfm); in safexcel_aead_chachapoly_setkey()
2901 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapoly_crypt()
2962 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_cra_init()
2982 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapoly_cra_init()
2996 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_cra_exit()
3022 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3033 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapolyesp_cra_init()
3062 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3075 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_setkey()
3113 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ecb_cra_init()
3140 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3151 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_cbc_cra_init()
3178 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3189 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ofb_cra_init()
3216 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3227 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_cfb_cra_init()
3254 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3267 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4ctr_setkey()
3279 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ctr_cra_init()
3307 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3340 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4cbc_sha1_cra_init()
3367 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3380 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_setkey()
3391 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_setauthsize()
3402 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_crypt()
3449 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4cbc_sm3_cra_init()
3478 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3489 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4ctr_sha1_cra_init()
3513 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3524 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4ctr_sm3_cra_init()
3548 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3561 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4106_gcm_setkey()
3590 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4106_gcm_cra_init()
3617 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3636 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4543_gcm_cra_init()
3662 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3674 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4309_ccm_setkey()
3727 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4309_ccm_cra_init()
3754 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),