Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOathTotpProtocol = &OathTotpProtocol{ Hash: hash.SHA256, Timestep: time.Minute, }
View Source
var ErrParse = errors.New("failed to parse")
View Source
var ErrUnsupportedHashAlgorithm = errors.New("unsupported hash algorithm")
Functions ¶
func NewInProcessPipe ¶
func NewInProcessPipe() (*InProcessPipe, *InProcessPipe)
Types ¶
type ChainedHandshake ¶
type ChainedHandshake []Handshake
func NewChainedHandshake ¶
func NewChainedHandshake(slots ...Handshake) ChainedHandshake
type InProcessPipe ¶
type InProcessPipe struct { *io.PipeReader *io.PipeWriter }
type Key ¶
func (*Key) MarshalText ¶
func (*Key) PrivateKey ¶
func (k *Key) PrivateKey() (ecdh.PrivateKey, error)
func (*Key) UnmarshalText ¶
type NoiseHandshake ¶
type NoiseHandshake struct { *nyquist.HandshakeState // contains filtered or unexported fields }
func NewNoiseHandshake ¶
type OATHHandshake ¶
type OathHotpProtocol ¶
func (*OathHotpProtocol) String ¶
func (c *OathHotpProtocol) String() string
type OathTotpProtocol ¶
func (*OathTotpProtocol) String ¶
func (c *OathTotpProtocol) String() string
Click to show internal directories.
Click to hide internal directories.