Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
Signer represents a helper that does signing and verification
func (*Signer) SignFor ¶
func (s *Signer) SignFor( data []byte, peer *wgtypes.Key, ) ( nonce [chacha20poly1305.NonceSizeX]byte, tag [poly1305.TagSize]byte, err error, )
SignFor makes a signature to send data to a given peer
func (*Signer) VerifyFrom ¶
func (s *Signer) VerifyFrom( nonce [chacha20poly1305.NonceSizeX]byte, tag [poly1305.TagSize]byte, data []byte, peer *wgtypes.Key, ) ( valid bool, err error, )
VerifyFrom checks the signature on received data from a given peer
Click to show internal directories.
Click to hide internal directories.