Documentation
¶
Overview ¶
Package curve is a thin wrapper around the libsignal curve25519 implementation. It aims to be the Go equivalent of https://github.com/signalapp/curve25519-java
Index ¶
- func GenerateKeypair() (privKey PrivateKey, pubKey PublicKey, err error)
- type CError
- type PrivateKey
- func (privateKey PrivateKey) CalculateAgreement(publicKey PublicKey) (sharedKey []byte, err error)
- func (key PrivateKey) CalculateSignature(message []byte) (signature []byte, err error)
- func (key PrivateKey) CalculateVrfSignature(message []byte) (signature []byte, err error)
- func (privateKey PrivateKey) GeneratePublicKey() (publicKey PublicKey, err error)
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeypair ¶
func GenerateKeypair() (privKey PrivateKey, pubKey PublicKey, err error)
Types ¶
type PrivateKey ¶
type PrivateKey []byte
func GeneratePrivateKey ¶
func GeneratePrivateKey() (key PrivateKey, err error)
func (PrivateKey) CalculateAgreement ¶
func (privateKey PrivateKey) CalculateAgreement(publicKey PublicKey) (sharedKey []byte, err error)
func (PrivateKey) CalculateSignature ¶
func (key PrivateKey) CalculateSignature(message []byte) (signature []byte, err error)
func (PrivateKey) CalculateVrfSignature ¶
func (key PrivateKey) CalculateVrfSignature(message []byte) (signature []byte, err error)
func (PrivateKey) GeneratePublicKey ¶
func (privateKey PrivateKey) GeneratePublicKey() (publicKey PublicKey, err error)
Click to show internal directories.
Click to hide internal directories.