Lines Matching refs:pipe_ctx
589 struct dasync_pipeline_ctx *pipe_ctx = in dasync_cipher_ctrl_helper() local
592 if (pipe_ctx == NULL) in dasync_cipher_ctrl_helper()
603 memcpy(inner_cipher_data, pipe_ctx->inner_cipher_data, sz); in dasync_cipher_ctrl_helper()
604 pipe_ctx->inner_cipher_data = inner_cipher_data; in dasync_cipher_ctrl_helper()
609 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper()
610 pipe_ctx->outbufs = (unsigned char **)ptr; in dasync_cipher_ctrl_helper()
614 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper()
615 pipe_ctx->inbufs = (unsigned char **)ptr; in dasync_cipher_ctrl_helper()
619 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper()
620 pipe_ctx->lens = (size_t *)ptr; in dasync_cipher_ctrl_helper()
626 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx->inner_cipher_data); in dasync_cipher_ctrl_helper()
629 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx); in dasync_cipher_ctrl_helper()
640 if (pipe_ctx->aadctr >= SSL_MAX_PIPELINES) in dasync_cipher_ctrl_helper()
643 memcpy(pipe_ctx->tlsaad[pipe_ctx->aadctr], ptr, in dasync_cipher_ctrl_helper()
645 pipe_ctx->aadctr++; in dasync_cipher_ctrl_helper()
676 struct dasync_pipeline_ctx *pipe_ctx = in dasync_cipher_init_key_helper() local
679 if (pipe_ctx->inner_cipher_data == NULL in dasync_cipher_init_key_helper()
681 pipe_ctx->inner_cipher_data = OPENSSL_zalloc( in dasync_cipher_init_key_helper()
683 if (pipe_ctx->inner_cipher_data == NULL) { in dasync_cipher_init_key_helper()
690 pipe_ctx->numpipes = 0; in dasync_cipher_init_key_helper()
691 pipe_ctx->aadctr = 0; in dasync_cipher_init_key_helper()
693 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx->inner_cipher_data); in dasync_cipher_init_key_helper()
695 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx); in dasync_cipher_init_key_helper()
706 struct dasync_pipeline_ctx *pipe_ctx = in dasync_cipher_helper() local
709 pipes = pipe_ctx->numpipes; in dasync_cipher_helper()
710 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx->inner_cipher_data); in dasync_cipher_helper()
712 if (pipe_ctx->aadctr != 0) { in dasync_cipher_helper()
713 if (pipe_ctx->aadctr != 1) in dasync_cipher_helper()
718 pipe_ctx->tlsaad[0]); in dasync_cipher_helper()
723 if (pipe_ctx->aadctr > 0 && pipe_ctx->aadctr != pipes) in dasync_cipher_helper()
726 if (pipe_ctx->aadctr > 0) { in dasync_cipher_helper()
730 pipe_ctx->tlsaad[i]); in dasync_cipher_helper()
733 (ctx, pipe_ctx->outbufs[i], pipe_ctx->inbufs[i], in dasync_cipher_helper()
734 pipe_ctx->lens[i]); in dasync_cipher_helper()
736 pipe_ctx->numpipes = 0; in dasync_cipher_helper()
738 pipe_ctx->aadctr = 0; in dasync_cipher_helper()
739 EVP_CIPHER_CTX_set_cipher_data(ctx, pipe_ctx); in dasync_cipher_helper()
746 struct dasync_pipeline_ctx *pipe_ctx = in dasync_cipher_cleanup_helper() local
749 OPENSSL_clear_free(pipe_ctx->inner_cipher_data, in dasync_cipher_cleanup_helper()