hsm

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	String = iota + 1
	Binary
	DecimalInt
	HexadecimalInt
)
View Source
const (
	AsciiEncoding = iota + 1
	EbcdicEncoding
)
View Source
const (
	HSM_OK          = "00"
	HSM_PARSE_ERROR = "15"
)
View Source
const (
	ZMK_KEY_TYPE = "000"
	TMK_KEY_TYPE = "002"
)
View Source
const (
	PercentSign = '%'
)

Variables

This section is empty.

Functions

func Dump

func Dump(v interface{}) string

Types

type EncodingType

type EncodingType int

type ThalesHsm

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

ThalesHsm represents a software Thales HSM

func NewThalesHsm

func NewThalesHsm(ip string, port int, encodingType EncodingType) *ThalesHsm

func (*ThalesHsm) HandleMS

func (th *ThalesHsm) HandleMS(msgData []byte) []byte

func (*ThalesHsm) HandleNC

func (th *ThalesHsm) HandleNC(msgData []byte) []byte

func (*ThalesHsm) Start

func (th *ThalesHsm) Start()

func (*ThalesHsm) Stop

func (th *ThalesHsm) Stop()

type ThalesMsRequest

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

func (*ThalesMsRequest) InvalidDataResponse

func (resp *ThalesMsRequest) InvalidDataResponse(msRespStruct *ThalesMsResponse) []byte

type ThalesMsResponse

type ThalesMsResponse struct {
	MAB []byte
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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