keylog

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 4 Imported by: 0

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