Documentation ¶
Index ¶
- type ServerPrivate
- func (k ServerPrivate) Equal(other ServerPrivate) bool
- func (k ServerPrivate) IsZero() bool
- func (k ServerPrivate) Open(ciphertext []byte) (cleartext []byte, ok bool)
- func (k ServerPrivate) Public() ServerPublic
- func (k ServerPrivate) Seal(cleartext []byte) (ciphertext []byte)
- func (k ServerPrivate) String() string
- type ServerPublic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerPrivate ¶
type ServerPrivate struct {
// contains filtered or unexported fields
}
func NewServerKey ¶
func NewServerKey() ServerPrivate
func ParsePrivateKey ¶
func ParsePrivateKey(key string) (*ServerPrivate, error)
func (ServerPrivate) Equal ¶
func (k ServerPrivate) Equal(other ServerPrivate) bool
func (ServerPrivate) IsZero ¶
func (k ServerPrivate) IsZero() bool
func (ServerPrivate) Open ¶
func (k ServerPrivate) Open(ciphertext []byte) (cleartext []byte, ok bool)
func (ServerPrivate) Public ¶
func (k ServerPrivate) Public() ServerPublic
func (ServerPrivate) Seal ¶
func (k ServerPrivate) Seal(cleartext []byte) (ciphertext []byte)
func (ServerPrivate) String ¶
func (k ServerPrivate) String() string
type ServerPublic ¶
type ServerPublic struct {
// contains filtered or unexported fields
}
func ParsePublicKey ¶
func ParsePublicKey(key string) (*ServerPublic, error)
func (ServerPublic) Equal ¶
func (k ServerPublic) Equal(other ServerPublic) bool
func (ServerPublic) IsZero ¶
func (k ServerPublic) IsZero() bool
func (ServerPublic) String ¶
func (k ServerPublic) String() string
Click to show internal directories.
Click to hide internal directories.