Documentation ¶
Index ¶
- type Digest
- type UI
- type UsigEnclave
- func (e *UsigEnclave) CreateUIMac(digest Digest) (counter uint64, signature []byte)
- func (e *UsigEnclave) CreateUISig(digest Digest) (counter uint64, signature []byte)
- func (e *UsigEnclave) CreateUISigEd25519(ctrID int, digest Digest) (uint64, []byte)
- func (e *UsigEnclave) Destroy()
- func (e *UsigEnclave) Init(mackey []byte, sigkey *ecdsa.PrivateKey, edprivkey []byte, numCounters int)
- func (e *UsigEnclave) VerifyUIMac(digest Digest, mac []byte, counter uint64) bool
- func (e *UsigEnclave) VerifyUISig(digest Digest, sig []byte, ctr uint64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.