shared

package
v0.0.0-...-abb5c35 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitOnError

func ExitOnError(err error, msg string)

func ReadB64Wrapped

func ReadB64Wrapped(typeLabel string, in []byte) (out []byte, err error)

func WriteB64Wrapped

func WriteB64Wrapped(typeLabel string, payload []byte)

Types

type CHKMessage

type CHKMessage struct {
	AD CHKMessageAD
	CT []byte
}

func CHKMessageFromDER

func CHKMessageFromDER(derBytes []byte) (z *CHKMessage, err error)

func (*CHKMessage) ToDER

func (z *CHKMessage) ToDER() (b []byte, err error)

type CHKMessageAD

type CHKMessageAD struct {
	Enckey   []byte
	Nonce    []byte
	Interval int64
}

func (*CHKMessageAD) ToDER

func (z *CHKMessageAD) ToDER() (b []byte, err error)

Jump to

Keyboard shortcuts

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