package
3.2.4+incompatible
Repository: https://github.com/opencoff/sigtool.git
Documentation: pkg.go.dev

# README

GoDoc

sigtool/sign - Ed25519 signature calculation and verification

This is a small library that makes it easier to create and serialize Ed25519 keys, and sign, verify files using those keys. The library uses mmap(2) to read and process very large files.

The companion program sigtool uses this library.

License

GPL v2.0

# Functions

Enable debugging of this module; level > 0 elicits debug messages on os.Stderr.
Make a private key from bytes 'yml' using optional caller provided getpw() function to read the password if needed.
Parse a serialized public in 'yml' and return the resulting public key instance.
Make a public key from a string.
Create a new decryption context and if 'pk' is given, check that it matches the sender.
Create a new Encryption context for encrypting blocks of size 'blksize'.
NewPrivateKey generates a new Ed25519 private key.
ParseAuthorizedKeys parses a public key from an authorized_keys file used in OpenSSH according to the sshd(8) manual page.
Read the private key in 'fn', optionally decrypting it using password 'pw' and create new instance of PrivateKey.
Read the public key from 'fn' and create new instance of PublicKey.
Read serialized signature from file 'fn' and construct a Signature object.

# Constants

Length of Ed25519 Public Key Hash.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Decryptor holds the decryption context.
Encryptor holds the encryption context.
Private Ed25519 key.
Public Ed25519 key.
An Ed25519 Signature.