Crate ksign

Source
Expand description

§ksign

Crates.io Version Docs dependency status

OpenWRT’s usign utility rewritten in Rust. The crate provides both the executable and the library. Use it to sign files using Ed25519 keys.

Usage: ksign [OPTIONS]

Options:
  -V                  Verify signed file
  -S                  Sign speificed file
  -F                  Print key fingerprint for public key, secret key or signature
  -G                  Generate a new key pair
  -c <COMMENT>        The comment to include in the file
  -m <FILE>           Message file
  -p <FILE>           Public key file
  -P <DIRECTORY>      Public key directory
  -q                  Do not print signature verification status to stdout
  -s <FILE>           Secret key file
  -x <FILE>           Signature file
  -h                  Print help

Re-exports§

pub use ed25519_dalek as ed25519;

Structs§

Checksum
Checksum of the signing key.
Fingerprint
Fingerprint generated along with the signing key.
Salt
Salt generated along with the signing key.
Signature
Ed25519 signature.
SigningKey
Signing (secret) key.
VerifyingKey
Verifying (public) key.

Enums§

Error
Common error values.
UntrustedComment
Untrusted comment in key/signature file.

Traits§

IO
Represents an object that can be written to file and read from file.