Crate zipsign_api

Source
Expand description

§zipsign-api

Sign and verify .zip and .tar.gz files with an ed25519 signing key.

GitHub Workflow Status Crates.io docs.rs

This library contains the brains of zipsign. You can use it in your projects to verify and sign .zip and .tar.gz files without running a separate application, e.g. to verify a self-update.

§Features

  • default: sign and verify .tar.gz and .zip files
  • sign-tar: sign a .tar.gz file
  • verify-tar: verify a signed .tar.gz file
  • sign-zip: sign a .zip file
  • verify-zip: verify a signed .zip file
  • tar: combines sign-tar and verify-tar
  • zip: combines sign-zip and verify-zip

Re-exports§

pub use ed25519_dalek::KEYPAIR_LENGTH;
pub use ed25519_dalek::PUBLIC_KEY_LENGTH;
pub use ed25519_dalek::SIGNATURE_LENGTH;
pub use ed25519_dalek::Signature;
pub use ed25519_dalek::SignatureError;
pub use ed25519_dalek::SigningKey;
pub use ed25519_dalek::VerifyingKey;

Modules§

sign
Functions to sign a file
unsign
Functions to remove signatures from a file
verify
Functions to verify a signed file

Structs§

Prehash
The unsigned hash of an input file

Enums§

ZipsignError
A collection of all errors this library can return