Documentation
¶
Index ¶
- func BuildSharedCipher(key []byte, checksum []byte) (cipher.Stream, error)
- func Ed25519PrivateToX25519(edPrivate ed25519.PrivateKey) []byte
- func Ed25519PubToX25519(edPub ed25519.PublicKey) ([]byte, error)
- func NewCipherCtr(key, iv []byte) (cipher.Stream, error)
- func SharedKey(ourKey ed25519.PrivateKey, serverKey ed25519.PublicKey) ([]byte, error)
- func SharedKeyWithPeerX25519(ourKey ed25519.PrivateKey, serverKeyX25519 []byte) ([]byte, error)
- type PrivateKeyAES
- type PublicKeyAES
- type PublicKeyED25519
- type PublicKeyOverlay
- type PublicKeyUnEnc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ed25519PrivateToX25519 ¶
func Ed25519PrivateToX25519(edPrivate ed25519.PrivateKey) []byte
func SharedKeyWithPeerX25519 ¶
func SharedKeyWithPeerX25519(ourKey ed25519.PrivateKey, serverKeyX25519 []byte) ([]byte, error)
Types ¶
type PrivateKeyAES ¶
type PrivateKeyAES struct {
Key []byte `tl:"int256"`
}
type PublicKeyAES ¶
type PublicKeyAES struct {
Key []byte // `tl:"int256"`
}
type PublicKeyED25519 ¶
type PublicKeyOverlay ¶
type PublicKeyOverlay struct {
Key []byte `tl:"bytes"`
}
type PublicKeyUnEnc ¶
type PublicKeyUnEnc struct {
Key []byte `tl:"bytes"`
}
Click to show internal directories.
Click to hide internal directories.