Documentation
¶
Index ¶
Constants ¶
View Source
const ( CiphertextSize = 1088 PublicKeySize = 1184 PrivateKeySize = 2400 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
PublicKey
// contains filtered or unexported fields
}
func NewPrivateKey ¶
func NewPrivateKey(entropy *[64]byte) (*PrivateKey, *[PublicKeySize]byte)
func (*PrivateKey) Decap ¶
func (priv *PrivateKey) Decap(outSharedSecret []byte, ciphertext *[CiphertextSize]byte)
func (*PrivateKey) Marshal ¶
func (priv *PrivateKey) Marshal() *[PrivateKeySize]byte
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func UnmarshalPublicKey ¶
func UnmarshalPublicKey(data *[PublicKeySize]byte) (*PublicKey, bool)
func (*PublicKey) Encap ¶
func (pub *PublicKey) Encap(outSharedSecret []byte, entropy *[32]byte) *[CiphertextSize]byte
func (*PublicKey) Marshal ¶
func (pub *PublicKey) Marshal() *[PublicKeySize]byte
Click to show internal directories.
Click to hide internal directories.