ipsec

package
v0.9.3-0...-e3c37e7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Only IPv4, Only tunnel, Only ESP, Only AES-128-CBC

Only IPv4, Only tunnel, Only ESP, Only AES-128-CBC

Index

Constants

View Source
const VECTOR = 8

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(AuthenticationPart [][]byte, where [][]byte, Z uint, context *VContext)

func Decapsulation

func Decapsulation(currentPacket *packet.Packet, context flow.UserContext) bool

General decapsulation

func Encrypt

func Encrypt(EncryptionPart [][]byte, where [][]byte, IV [][]byte, Z uint, context *VContext)

func InitSContext

func InitSContext() interface{}

func InitVContext

func InitVContext() interface{}

func ScalarEncapsulation

func ScalarEncapsulation(currentPacket *packet.Packet, context flow.UserContext) bool

General encapsulation

func VectorEncapsulation

func VectorEncapsulation(currentPackets []*packet.Packet, mask *[32]bool, notDrop *[32]bool, context flow.UserContext)

General encapsulation

Types

type SContext

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

func (SContext) Copy

func (c SContext) Copy() interface{}

func (SContext) Delete

func (c SContext) Delete()

type SetIVer

type SetIVer interface {
	SetIV([]byte)
}

type SetIVerM

type SetIVerM interface {
	SetIV([][]byte)
}

type VContext

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

func (VContext) Copy

func (c VContext) Copy() interface{}

func (VContext) Delete

func (c VContext) Delete()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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