feat(core): add device::fingerprint helper for SSH SHA256 fingerprints

Wraps ssh-key's PublicKey::fingerprint(HashAlg::Sha256). Output format
matches ssh-keygen -lf and git verify-commit --raw stderr
(SHA256:<43-char base64>). Used by the upcoming relicario-server
verify-commit rewrite (audit S1).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
adlee-was-taken
2026-05-02 16:23:10 -04:00
parent c3d8778042
commit 8a72b5e192
2 changed files with 34 additions and 1 deletions

View File

@@ -85,4 +85,4 @@ pub mod import_lastpass;
pub use import_lastpass::{parse_lastpass_csv, ImportWarning};
pub mod device;
pub use device::{DeviceEntry, RevokedEntry, generate_keypair, sign, verify};
pub use device::{fingerprint, DeviceEntry, RevokedEntry, generate_keypair, sign, verify};