Documentation ¶
Index ¶
- Variables
- func GenerateKeyPair() (crypto.PrivateKey, crypto.PublicKey, error)
- func GenerateNonce() ([]byte, error)
- func SharedSecret(private crypto.PrivateKey, public crypto.PublicKey) ([]byte, error)
- func Sign(privateKey ssh.Signer, nonce []byte, serverEphPubKey []byte, ...) ([]byte, error)
- func Verify(clientSignature []byte, nonce []byte, serverEphPubKey []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidKeyFormat = errors.New("invalid key format")
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair() (crypto.PrivateKey, crypto.PublicKey, error)
func GenerateNonce ¶
func SharedSecret ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.