epic

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AuthLen = 10

Variables

This section is empty.

Functions

func DetachedToPB

func DetachedToPB(ed *Detached) *experimental.EPICDetachedExtension

DetachedFromPB returns the protobuf representation of the detached Epic extension. All the authenticators must be of length AuthLen, otherwise no authenticator will be parsed at all.

Types

type Detached

type Detached struct {
	// The remaining 10 bytes of the hop entry MAC
	AuthHopEntry []byte
	// The remaining 10 bytes of the peer entry MACs
	AuthPeerEntries [][]byte
}

func DetachedFromPB

func DetachedFromPB(ext *experimental.EPICDetachedExtension) *Detached

DetachedFromPB returns the go-representation of the detached Epic extension. All the authenticators must be of length AuthLen, otherwise no authenticator will be parsed at all.

func (*Detached) DigestInput

func (ed *Detached) DigestInput() ([]byte, error)

Jump to

Keyboard shortcuts

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