usig

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Digest

type Digest [sha256.Size]byte

type UI

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

type UsigEnclave

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

func NewUsigEnclave

func NewUsigEnclave(filepath string) *UsigEnclave

func (*UsigEnclave) CreateUIMac

func (e *UsigEnclave) CreateUIMac(digest Digest) (counter uint64, signature []byte)

func (*UsigEnclave) CreateUISig

func (e *UsigEnclave) CreateUISig(digest Digest) (counter uint64, signature []byte)

func (*UsigEnclave) CreateUISigEd25519

func (e *UsigEnclave) CreateUISigEd25519(ctrID int, digest Digest) (uint64, []byte)

func (*UsigEnclave) Destroy

func (e *UsigEnclave) Destroy()

func (*UsigEnclave) Init

func (e *UsigEnclave) Init(mackey []byte, sigkey *ecdsa.PrivateKey, edprivkey []byte, numCounters int)

func (*UsigEnclave) VerifyUIMac

func (e *UsigEnclave) VerifyUIMac(digest Digest, mac []byte, counter uint64) bool

func (*UsigEnclave) VerifyUISig

func (e *UsigEnclave) VerifyUISig(digest Digest, sig []byte, ctr uint64) bool

Jump to

Keyboard shortcuts

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