package
Version:
v0.14.43-rc.1
Opens a new window with list of versions in this module.
Published: Dec 29, 2017
License: MPL-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
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.