Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base64SealContainer ¶
type Base64SealContainer struct { KeyAndNonce Checksum []byte Payload string }
type JsonKeyAndNonce ¶
func (*JsonKeyAndNonce) AsKeyAndNonce ¶
func (my *JsonKeyAndNonce) AsKeyAndNonce() (*KeyAndNonce, error)
type KeyAndNonce ¶
func (*KeyAndNonce) AsJSON ¶
func (my *KeyAndNonce) AsJSON() *JsonKeyAndNonce
type OpenContainer ¶
func Open ¶
func Open(key *key.RawKey, sc *SealedContainer, verify func([]byte, *key.RawKey, *[]byte) bool) (*OpenContainer, error)
func OpenBase64 ¶
func OpenBase64(key *key.RawKey, pp *Base64SealContainer, verify func([]byte, *key.RawKey, *[]byte) bool) (*OpenContainer, error)
type SealRequest ¶
func Checksum ¶
func Checksum(sr *SealRequest) *SealRequest
type SealedContainer ¶
func Seal ¶
func Seal(sr *SealRequest) (*SealedContainer, error)
Click to show internal directories.
Click to hide internal directories.