Lines Matching refs:safexcel_cipher_ctx
45 struct safexcel_cipher_ctx { struct
78 static int safexcel_skcipher_iv(struct safexcel_cipher_ctx *ctx, u8 *iv, in safexcel_skcipher_iv() argument
106 static void safexcel_skcipher_token(struct safexcel_cipher_ctx *ctx, u8 *iv, in safexcel_skcipher_token()
135 static void safexcel_aead_iv(struct safexcel_cipher_ctx *ctx, u8 *iv, in safexcel_aead_iv()
161 static void safexcel_aead_token(struct safexcel_cipher_ctx *ctx, u8 *iv, in safexcel_aead_token()
376 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_setkey()
407 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_setkey()
506 static int safexcel_context_control(struct safexcel_cipher_ctx *ctx, in safexcel_context_control()
618 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(skcipher); in safexcel_handle_req_result()
677 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_send_req()
903 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_handle_inv_result()
1005 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_cipher_send_inv()
1023 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_skcipher_send()
1056 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in safexcel_aead_send()
1079 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_cipher_exit_inv()
1142 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm); in safexcel_queue_req()
1189 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_cra_init()
1208 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_cipher_cra_exit()
1222 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_cra_exit()
1242 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_cra_exit()
1262 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ecb_cra_init()
1289 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1300 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_cbc_cra_init()
1327 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1338 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_cfb_cra_init()
1365 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1376 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ofb_cra_init()
1403 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1416 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aesctr_setkey()
1450 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_ctr_cra_init()
1478 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1490 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des_setkey()
1511 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des_cbc_cra_init()
1539 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1550 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des_ecb_cra_init()
1577 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1589 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_des3_ede_setkey()
1610 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des3_cbc_cra_init()
1638 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1649 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_des3_ecb_cra_init()
1676 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1701 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_cra_init()
1724 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_cra_init()
1749 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1760 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_cra_init()
1785 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1796 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_cra_init()
1821 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1832 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_cra_init()
1857 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1868 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_cra_init()
1893 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1904 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_des3_cra_init()
1930 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1941 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_des3_cra_init()
1967 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
1978 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_des3_cra_init()
2004 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2015 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_des3_cra_init()
2041 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2052 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_des3_cra_init()
2078 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2089 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_des_cra_init()
2115 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2126 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_des_cra_init()
2152 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2163 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_des_cra_init()
2189 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2200 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_des_cra_init()
2226 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2237 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_des_cra_init()
2263 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2274 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha1_ctr_cra_init()
2298 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2309 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha256_ctr_cra_init()
2333 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2344 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha224_ctr_cra_init()
2368 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2379 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha512_ctr_cra_init()
2403 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2414 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sha384_ctr_cra_init()
2438 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2451 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aesxts_setkey()
2507 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_aes_xts_cra_init()
2552 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2565 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_setkey()
2621 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_cra_init()
2635 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_gcm_cra_exit()
2665 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2678 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_ccm_setkey()
2720 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_ccm_cra_init()
2789 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2798 static void safexcel_chacha20_setkey(struct safexcel_cipher_ctx *ctx, in safexcel_chacha20_setkey()
2814 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(ctfm); in safexcel_skcipher_chacha20_setkey()
2826 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_chacha20_cra_init()
2853 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
2865 struct safexcel_cipher_ctx *ctx = crypto_aead_ctx(ctfm); in safexcel_aead_chachapoly_setkey()
2895 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapoly_crypt()
2956 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_cra_init()
2976 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapoly_cra_init()
2990 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_cra_exit()
3016 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3027 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_chachapolyesp_cra_init()
3056 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3069 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_setkey()
3107 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ecb_cra_init()
3134 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3145 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_cbc_cra_init()
3172 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3183 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ofb_cra_init()
3210 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3221 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_cfb_cra_init()
3248 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3261 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4ctr_setkey()
3273 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_skcipher_sm4_ctr_cra_init()
3301 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3334 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4cbc_sha1_cra_init()
3361 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3374 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_setkey()
3385 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_setauthsize()
3396 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_fallback_crypt()
3443 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4cbc_sm3_cra_init()
3472 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3483 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4ctr_sha1_cra_init()
3507 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3518 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_aead_sm4ctr_sm3_cra_init()
3542 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3555 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4106_gcm_setkey()
3584 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4106_gcm_cra_init()
3611 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3630 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4543_gcm_cra_init()
3656 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
3668 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4309_ccm_setkey()
3721 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in safexcel_rfc4309_ccm_cra_init()
3748 .cra_ctxsize = sizeof(struct safexcel_cipher_ctx),