Skip to content

ssh-key: add SshSig prehash support#384

Merged
tarcieri merged 1 commit into
masterfrom
ssh-key/sshsig-prehash-support
Jul 4, 2025
Merged

ssh-key: add SshSig prehash support#384
tarcieri merged 1 commit into
masterfrom
ssh-key/sshsig-prehash-support

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented Jul 4, 2025

Adds basic support for signing and verifying raw message digests, which can be computed incrementally e.g. over a large file.

Closes #380

Adds basic support for signing and verifying raw message digests, which
can be computed incrementally e.g. over a large file.

Closes #380
@tarcieri tarcieri merged commit 0d5202d into master Jul 4, 2025
14 checks passed
@tarcieri tarcieri deleted the ssh-key/sshsig-prehash-support branch July 4, 2025 20:10
tarcieri added a commit that referenced this pull request Jul 4, 2025
Similar to #384, but adds an `AssociatedHashAlg` trait, impls it for
`sha2::{Sha256, Sha512}`, and adds the following methods which operate
on a `Digest`, inferring the `HashAlg` to use from the type:

- `PrivateKey::sign_digest`
- `PublicKey::verify_digest`
- `SshSig::sign_digest`
tarcieri added a commit that referenced this pull request Jul 4, 2025
Similar to #384, but adds an `AssociatedHashAlg` trait, impls it for
`sha2::{Sha256, Sha512}`, and adds the following methods which operate
on a `Digest`, inferring the `HashAlg` to use from the type:

- `PrivateKey::sign_digest`
- `PublicKey::verify_digest`
- `SshSig::sign_digest`
tarcieri added a commit that referenced this pull request Jul 4, 2025
Similar to #384, but adds an `AssociatedHashAlg` trait, impls it for
`sha2::{Sha256, Sha512}`, and adds the following methods which operate
on a `Digest`, inferring the `HashAlg` to use from the type:

- `PrivateKey::sign_digest`
- `PublicKey::verify_digest`
- `SshSig::sign_digest`
tarcieri added a commit that referenced this pull request Jul 4, 2025
Similar to #384, but adds an `AssociatedHashAlg` trait, impls it for
`sha2::{Sha256, Sha512}`, and adds the following methods which operate
on a `Digest`, inferring the `HashAlg` to use from the type:

- `PrivateKey::sign_digest`
- `PublicKey::verify_digest`
- `SshSig::sign_digest`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Verifying SSH signature of a file without loading the entire file into memory

1 participant