padding

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CheckMark = -1

Variables

View Source
var DefaultPaddingScheme = []byte(`stop=8
0=34-120
1=100-400
2=400-500,c,500-1000,c,400-500,c,500-1000,c,500-1000,c,400-500
3=500-1000
4=500-1000
5=500-1000
6=500-1000
7=500-1000`)

Functions

func UpdatePaddingScheme

func UpdatePaddingScheme(rawScheme []byte, to *atomic.TypedValue[*PaddingFactory]) bool

Types

type PaddingFactory

type PaddingFactory struct {
	RawScheme []byte
	Stop      uint32
	Md5       string
	// contains filtered or unexported fields
}

func NewPaddingFactory

func NewPaddingFactory(rawScheme []byte) *PaddingFactory

func (*PaddingFactory) GenerateRecordPayloadSizes

func (p *PaddingFactory) GenerateRecordPayloadSizes(pkt uint32) (pktSizes []int)

Jump to

Keyboard shortcuts

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