Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Challenge ¶
type Challenge struct {
// contains filtered or unexported fields
}
Challenge encapsulates the logic to generate challenge data and to verify a challenge response.
func NewChallenge ¶
NewChallenge returns a new challenge.
func (*Challenge) ChallengeRequest ¶
ChallengeRequest requests the serialized data of the challenge data.
func (*Challenge) VerifyResponse ¶
VerifyResponse returns nil if the public key of the challenge can verify the response data.
type Data ¶
type Data struct { // Data is the random data for the private key to sign. Data []byte // Signature is the signature of random data that signed by the private key. Signature ssh.Signature }
Data defines format to be used for ssh challenge-response.
Click to show internal directories.
Click to hide internal directories.