Skip to content
Snippets Groups Projects
Commit 4a91fa7a authored by Matt Johnston's avatar Matt Johnston
Browse files

Uncomment signature verification

parent ac8487a2
Branches
No related merge requests found
...@@ -68,11 +68,10 @@ impl SigType { ...@@ -68,11 +68,10 @@ impl SigType {
let k: salty::PublicKey = k.try_into().map_err(|_| Error::BadKey)?; let k: salty::PublicKey = k.try_into().map_err(|_| Error::BadKey)?;
let s: &[u8; 64] = s.sig.0.try_into().map_err(|_| Error::BadSig)?; let s: &[u8; 64] = s.sig.0.try_into().map_err(|_| Error::BadSig)?;
let s: salty::Signature = s.into(); let s: salty::Signature = s.into();
todo!("get verify_parts upstream"); k.verify_parts(&s, |h| {
// k.verify_parts(&s, |h| { sshwire::hash_ser(h, msg, None).map_err(|_| salty::Error::ContextTooLong)
// sshwire::hash_ser(h, msg, None).map_err(|_| salty::Error::ContextTooLong) })
// }) .map_err(|_| Error::BadSig)
// .map_err(|_| Error::BadSig)
} }
(SigType::RSA256, PubKey::RSA(_k), Signature::RSA256(_s)) => { (SigType::RSA256, PubKey::RSA(_k), Signature::RSA256(_s)) => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment