GO-2022-0888: Crash due to malformed relay protocol message in github.com/syncthing/syncthing
package
Version:
v0.14.54
Opens a new window with list of versions in this module.
Published: Dec 5, 2018
License: MPL-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package signature provides simple methods to create and verify signatures
in PEM format.
GenerateKeys returns a new key pair, with the private and public key
encoded in PEM format.
Sign computes the hash of data and signs it with the private key, returning
a signature in PEM format.
Verify computes the hash of data and compares it to the signature using the
given public key. Returns nil if the signature is correct.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.