Crate zipsign_api
source ·Expand description
zipsign-api
Sign and verify .zip and .tar.gz files with an ed25519 signing key.
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.
Re-exports
pub use ed25519_dalek::Digest;pub use ed25519_dalek::Sha512;pub use ed25519_dalek::Signature;pub use ed25519_dalek::SignatureError;pub use ed25519_dalek::SigningKey;pub use ed25519_dalek::VerifyingKey;pub use ed25519_dalek::KEYPAIR_LENGTH;pub use ed25519_dalek::PUBLIC_KEY_LENGTH;pub use ed25519_dalek::SIGNATURE_LENGTH;
Modules
- Common functions to sign a file
- Common functions to verify a signed file
Enums
- A collection of all error this library can return
Constants
- Maximum number of bytes the encoded signatures may have
- Suffix of the signature block in a signed .tar.gz file
- Total overhead the signature block in a signed .tar.gz file excluding signature data
- Prefix of the signature block in a signed .tar.gz file
- Total number of bytes in a
MAGIC_HEADER+SignatureCountLeInt - Bytes preceeding signatures
Functions
- Calculate the hash of an input file
Type Aliases
- Integer type to tell the number of signatures in a signed file, stored in little endian