TestAmf

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NIA2Test1   = "NIA2Test1"
	NIA2Test2   = "NIA2Test2"
	NIA2Test3   = "NIA2Test3"
	NIA2Test4   = "NIA2Test4"
	NIA2Test5   = "NIA2Test5"
	NIA2Test8   = "NIA2Test8"
	NIA2TestCHT = "NIA2TestCHT"
)
View Source
const (
	Example1   = "Example1"
	Example2   = "Example2"
	Example3   = "Example3"
	Example4   = "Example4"
	ExampleCHT = "ExampleCHT"
)

Variables

View Source
var TestCMACAES128Table = make(map[string]*CMACAES128)

https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/AES_CMAC.pdf

View Source
var TestNIA2Table = make(map[string]*NIA2TestSet)

Functions

func BuildSmfNfProfile

func BuildSmfNfProfile() (uuId string, profile models.NfProfile)

Types

type CMACAES128

type CMACAES128 struct {
	Key       string
	Mlen      int32
	PlainText string
	Expected  string
}

type NIA2TestSet

type NIA2TestSet struct {
	CountI    string
	Bearer    uint8
	Direction uint8
	Length    int32
	IK        string
	Message   string
	Expected  string
}

type TestAddr

type TestAddr struct {
	Net   string
	Value string
}

func (*TestAddr) Network

func (addr *TestAddr) Network() string

func (*TestAddr) String

func (addr *TestAddr) String() string

type TestConn

type TestConn struct {
	RAddr *TestAddr
	LAddr *TestAddr
}

func (*TestConn) Close

func (c *TestConn) Close() error

Close closes the connection.

func (*TestConn) LocalAddr

func (c *TestConn) LocalAddr() net.Addr

func (*TestConn) Read

func (c *TestConn) Read(b []byte) (int, error)

Read implements the Conn Read method.

func (*TestConn) RemoteAddr

func (c *TestConn) RemoteAddr() net.Addr

func (*TestConn) SetDeadline

func (c *TestConn) SetDeadline(t time.Time) error

func (*TestConn) SetReadDeadline

func (c *TestConn) SetReadDeadline(t time.Time) error

func (*TestConn) SetWriteDeadline

func (c *TestConn) SetWriteDeadline(t time.Time) error

func (*TestConn) Write

func (c *TestConn) Write(b []byte) (int, error)

Write implements the Conn Write method.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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