tlsdecrypt

package
v0.16.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tlsdecrypt authenticates passive TLS records using captured NSS key logs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plaintext

type Plaintext struct {
	Data   []byte
	At     int64
	Client bool
}

type Record

type Record struct {
	Type    byte
	Version uint16
	Body    []byte
	At      int64
}

type Secrets

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

func NewSecrets

func NewSecrets() *Secrets

func (*Secrets) Add

func (s *Secrets) Add(data []byte)

Add ignores malformed lines and permanently rejects conflicting secrets. Secret bytes are never returned in diagnostics or persisted outside the capture.

func (*Secrets) Empty

func (s *Secrets) Empty() bool

type Session

type Session struct {
	ClientRandom, ServerRandom []byte
	Suite                      uint16
	TLS13                      bool
	// contains filtered or unexported fields
}

func Handshake

func Handshake(records [2][]Record) *Session

func (*Session) ClientSide

func (s *Session) ClientSide() int

func (*Session) Decrypt

func (s *Session) Decrypt(keys *Secrets, records [2][]Record) []Plaintext

Decrypt returns only authenticated application data. A failed authenticated record terminates its direction; gaps cannot be joined into invented HTTP.

Jump to

Keyboard shortcuts

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