Lines Matching refs:pipe_ctx
633 struct dasync_pipeline_ctx *pipe_ctx = in dasync_cipher_ctrl_helper() local
636 if (pipe_ctx == NULL) in dasync_cipher_ctrl_helper()
647 memcpy(inner_cipher_data, pipe_ctx->inner_cipher_data, sz); in dasync_cipher_ctrl_helper()
648 pipe_ctx->inner_cipher_data = inner_cipher_data; in dasync_cipher_ctrl_helper()
653 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper()
654 pipe_ctx->outbufs = (unsigned char **)ptr; in dasync_cipher_ctrl_helper()
658 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper()
659 pipe_ctx->inbufs = (unsigned char **)ptr; in dasync_cipher_ctrl_helper()
663 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper()
664 pipe_ctx->lens = (size_t *)ptr; in dasync_cipher_ctrl_helper()
670 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx->inner_cipher_data); in dasync_cipher_ctrl_helper()
673 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx); in dasync_cipher_ctrl_helper()
684 if (pipe_ctx->aadctr >= SSL_MAX_PIPELINES) in dasync_cipher_ctrl_helper()
687 memcpy(pipe_ctx->tlsaad[pipe_ctx->aadctr], ptr, in dasync_cipher_ctrl_helper()
689 pipe_ctx->aadctr++; in dasync_cipher_ctrl_helper()
720 struct dasync_pipeline_ctx *pipe_ctx = in dasync_cipher_init_key_helper() local
723 if (pipe_ctx->inner_cipher_data == NULL in dasync_cipher_init_key_helper()
725 pipe_ctx->inner_cipher_data = OPENSSL_zalloc( in dasync_cipher_init_key_helper()
727 if (pipe_ctx->inner_cipher_data == NULL) { in dasync_cipher_init_key_helper()
734 pipe_ctx->numpipes = 0; in dasync_cipher_init_key_helper()
735 pipe_ctx->aadctr = 0; in dasync_cipher_init_key_helper()
737 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx->inner_cipher_data); in dasync_cipher_init_key_helper()
739 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx); in dasync_cipher_init_key_helper()
750 struct dasync_pipeline_ctx *pipe_ctx = in dasync_cipher_helper() local
753 pipes = pipe_ctx->numpipes; in dasync_cipher_helper()
754 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx->inner_cipher_data); in dasync_cipher_helper()
756 if (pipe_ctx->aadctr != 0) { in dasync_cipher_helper()
757 if (pipe_ctx->aadctr != 1) in dasync_cipher_helper()
762 pipe_ctx->tlsaad[0]); in dasync_cipher_helper()
767 if (pipe_ctx->aadctr > 0 && pipe_ctx->aadctr != pipes) in dasync_cipher_helper()
770 if (pipe_ctx->aadctr > 0) { in dasync_cipher_helper()
774 pipe_ctx->tlsaad[i]); in dasync_cipher_helper()
777 (ctx, pipe_ctx->outbufs[i], pipe_ctx->inbufs[i], in dasync_cipher_helper()
778 pipe_ctx->lens[i]); in dasync_cipher_helper()
780 pipe_ctx->numpipes = 0; in dasync_cipher_helper()
782 pipe_ctx->aadctr = 0; in dasync_cipher_helper()
783 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx); in dasync_cipher_helper()
790 struct dasync_pipeline_ctx *pipe_ctx = in dasync_cipher_cleanup_helper() local
793 OPENSSL_clear_free(pipe_ctx->inner_cipher_data, in dasync_cipher_cleanup_helper()