keylog

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 4 Imported by: ? 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 keylog parses NSS key log format https://firefox-source-docs.mozilla.org/security/nss/legacy/key_log_format/index.html <Label> <space> <ClientRandom> <space> <Secret> lines

Index

Constants

View Source
const (
	Rsa = iota
	ClientRandom
	ClientEarlyTrafficSecret
	ClientHandshakeTrafficSecret
	ServerHandshakeTrafficSecret
	ClientTrafficSecret0
	ServerTrafficSecret0
	EarlyExporterSecret
	ExporterSecret
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Label        int
	ClientRandom [32]byte
}

type Map

type Map map[Entry][]byte

func Parse

func Parse(s string) (Map, error)

Parse NSS Key Log format

# comment <Label> <space> <ClientRandom> <space> <Secret>

func (Map) Lookup

func (m Map) Lookup(label int, clientRandom [32]byte) ([]byte, bool)

Jump to

Keyboard shortcuts

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