Documentation ¶
Index ¶
Constants ¶
View Source
const (
// NaclKeyBytesSize ..
NaclKeyBytesSize = 32
)
Variables ¶
This section is empty.
Functions ¶
func ConvertBoxPkToBytes ¶
ConvertBoxPkToBytes ..
func CreateBoxPkFromBytes ¶
func CreateBoxPkFromBytes(pk []byte) ([NaclKeyBytesSize]byte, error)
CreateBoxPkFromBytes ..
Types ¶
type BoxKeyPair ¶
type BoxKeyPair struct { Pk [NaclKeyBytesSize]byte Sk [NaclKeyBytesSize]byte }
BoxKeyPair ..
func NewBoxKeyPair ¶
func NewBoxKeyPair(pk [NaclKeyBytesSize]byte, sk [NaclKeyBytesSize]byte) *BoxKeyPair
NewBoxKeyPair ..
func (*BoxKeyPair) PkEqualTo ¶
func (box *BoxKeyPair) PkEqualTo(target [NaclKeyBytesSize]byte) bool
PkEqualTo ..
func (*BoxKeyPair) SkEqualTo ¶
func (box *BoxKeyPair) SkEqualTo(target [NaclKeyBytesSize]byte) bool
SkEqualTo ..
Click to show internal directories.
Click to hide internal directories.