Skip to main content

Module signing

Module signing 

Source
Expand description

OpenPGP / SSH signature verification.

Structs§

GpgConfig
Resolved signing/verification configuration.
SignatureCheck
A parsed signature check result.

Enums§

GpgFormat
The signature format selected via gpg.format.
TrustLevel
Signature trust level, as reported for a verified signature.

Constants§

GPG_SIG_HEADER_SHA1
The hash header label for a sha1 repository.
GPG_SIG_HEADER_SHA256
The hash header label for a sha256 repository.

Functions§

add_header_signature
Splice a signature into a serialized commit object as a gpgsig header.
append_tag_signature
Append an armored detached signature to a serialized tag object.
commit_gpg_sig_header
Header name for an embedded commit signature for hash_algo.
committer_signing_default
Build the committer-info default signing key (Git’s git_committer_info(IDENT_STRICT | IDENT_NO_DATE) — "Name <email>").
extra_headers_without_commit_signatures
Remove embedded commit signature headers from crate::objects::CommitData::extra_headers.
extract_signed_payload
Extract the gpgsig (or gpgsig-sha256) header value and the signed payload from a raw commit object.
parse_signed_buffer
Split a signed buffer (e.g. a tag object) into (payload, signature).
should_sign_commit
Whether a new commit object should be signed.
should_sign_tag
Whether a new annotated tag object should be signed.
sign_buffer
Sign payload with signing_key using the configured program.
sign_serialized_commit
Sign a serialized commit object (without gpgsig) and splice the signature header.
sign_serialized_tag
Sign a serialized tag object (without an appended signature).
verify_commit
Verify a raw commit object’s embedded signature.
verify_tag
Verify a raw tag object’s appended signature.