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()
923 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_handle_inv_result()
1025 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_cipher_send_inv()
1043 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_skcipher_send()
1076 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_aead_send()
1099 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_cipher_exit_inv()
1161 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_queue_req()
1208 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_cra_init()
1227 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_cipher_cra_exit()
1241 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_cra_exit()
1261 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_cra_exit()
1281 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ecb_cra_init()
1308 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1319 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_cbc_cra_init()
1346 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1359 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aesctr_setkey()
1393 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ctr_cra_init()
1421 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1433 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey()
1454 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des_cbc_cra_init()
1482 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1493 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des_ecb_cra_init()
1520 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1532 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des3_ede_setkey()
1553 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des3_cbc_cra_init()
1581 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1592 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des3_ecb_cra_init()
1619 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1644 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_cra_init()
1667 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_cra_init()
1692 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1703 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_cra_init()
1728 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1739 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_cra_init()
1764 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1775 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_cra_init()
1800 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1811 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_cra_init()
1836 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1847 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_des3_cra_init()
1873 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1884 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_des3_cra_init()
1910 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1921 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_des3_cra_init()
1947 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1958 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_des3_cra_init()
1984 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1995 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_des3_cra_init()
2021 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2032 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_des_cra_init()
2058 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2069 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_des_cra_init()
2095 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2106 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_des_cra_init()
2132 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2143 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_des_cra_init()
2169 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2180 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_des_cra_init()
2206 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2217 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_ctr_cra_init()
2241 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2252 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_ctr_cra_init()
2276 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2287 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_ctr_cra_init()
2311 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2322 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_ctr_cra_init()
2346 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2357 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_ctr_cra_init()
2381 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2394 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aesxts_setkey()
2450 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_xts_cra_init()
2495 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2508 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_setkey()
2557 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_cra_init()
2597 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2610 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_ccm_setkey()
2652 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_ccm_cra_init()
2721 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2730 static void safexcel_chacha20_setkey(struct safexcel_cipher_ctx *ctx, in safexcel_chacha20_setkey()
2746 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_skcipher_chacha20_setkey()
2758 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_chacha20_cra_init()
2785 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2797 struct safexcel_cipher_ctx *ctx = crypto_aead_ctx(ctfm); in safexcel_aead_chachapoly_setkey()
2827 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapoly_crypt()
2888 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_cra_init()
2908 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapoly_cra_init()
2922 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_cra_exit()
2948 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2959 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapolyesp_cra_init()
2988 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3001 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_setkey()
3039 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ecb_cra_init()
3066 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3077 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_cbc_cra_init()
3104 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3117 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4ctr_setkey()
3129 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ctr_cra_init()
3157 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3190 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4cbc_sha1_cra_init()
3217 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3230 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_setkey()
3241 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_setauthsize()
3252 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_crypt()
3299 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4cbc_sm3_cra_init()
3328 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3339 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4ctr_sha1_cra_init()
3363 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3374 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4ctr_sm3_cra_init()
3398 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3411 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4106_gcm_setkey()
3440 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4106_gcm_cra_init()
3467 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3486 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4543_gcm_cra_init()
3512 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3524 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4309_ccm_setkey()
3577 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4309_ccm_cra_init()
3604 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),