Expand description
OpenPGP / SSH signature verification.
Structs§
- GpgConfig
- Resolved signing/verification configuration.
- Signature
Check - A parsed signature check result.
Enums§
- GpgFormat
- The signature format selected via
gpg.format. - Trust
Level - 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
gpgsigheader. - 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(orgpgsig-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
payloadwithsigning_keyusing 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.