decrypt

package
v2.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package decrypt connects an in-process pcapng writer to the independent ecapture_decryptor SDK and routes application messages or raw chunks to a ByteSink.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, fail func(error), dispatcher domain.EventDispatcher, ifName, filter string, logger *logger.Logger, eventAddr, pcapAddr string, rotation *writers.RotateConfig, eventSinks []domain.CapturedEventSink, options types.DecryptOptions) error

Register installs the low-latency packet handler and its borrowed DSB keylog adapter on one probe dispatcher.

Types

type Sink

type Sink struct {
	// contains filtered or unexported fields
}

Sink is the pcapng input for the reconstructed text source. It can save a copy of the original pcapng bytes when requested. Only the SDK callback writes the plaintext sink, so message output preserves SDK delivery order.

func NewSink

func NewSink(eventAddr, pcapAddr string, rotation *writers.RotateConfig, eventSinks []domain.CapturedEventSink, options types.DecryptOptions) (*Sink, error)

func (*Sink) Close

func (s *Sink) Close() error

func (*Sink) Err added in v2.11.0

func (s *Sink) Err() error

func (*Sink) Fail added in v2.11.0

func (s *Sink) Fail(err error)

Fail latches one terminal cause and interrupts both ends without acquiring writeMu. It is also called by the pcapng session on encoder/flush failures.

func (*Sink) Flush

func (s *Sink) Flush() error

func (*Sink) Name

func (s *Sink) Name() string

func (*Sink) Write

func (s *Sink) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL