Lines Matching refs:hw
149 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_set_ctx_params() local
150 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->base.hw; in chacha20_poly1305_set_ctx_params()
205 len = hw->tls_init(&ctx->base, p->data, p->data_size); in chacha20_poly1305_set_ctx_params()
219 if (hw->tls_iv_set_fixed(&ctx->base, p->data, p->data_size) == 0) { in chacha20_poly1305_set_ctx_params()
238 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_einit() local
239 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->hw; in chacha20_poly1305_einit()
241 hw->initiv(ctx); in chacha20_poly1305_einit()
258 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_dinit() local
259 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->hw; in chacha20_poly1305_dinit()
261 hw->initiv(ctx); in chacha20_poly1305_dinit()
273 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_cipher() local
274 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->hw; in chacha20_poly1305_cipher()
289 if (!hw->aead_cipher(ctx, out, outl, in, inl)) in chacha20_poly1305_cipher()
299 PROV_CIPHER_HW_CHACHA20_POLY1305 *hw = in chacha20_poly1305_final() local
300 (PROV_CIPHER_HW_CHACHA20_POLY1305 *)ctx->hw; in chacha20_poly1305_final()
305 if (hw->aead_cipher(ctx, out, outl, NULL, 0) <= 0) in chacha20_poly1305_final()