Skip to content

Commit

Permalink
ssh-key: add Algorithm::Other Signature support (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuseby authored Dec 22, 2023
1 parent 56481bb commit ca5b2a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ssh-key/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ impl Signature {
Algorithm::SkEd25519 if data.len() == SK_ED25519_SIGNATURE_SIZE => (),
Algorithm::SkEcdsaSha2NistP256 => ecdsa_sig_size(&data, EcdsaCurve::NistP256, true)?,
Algorithm::Rsa { hash: Some(_) } => (),
Algorithm::Other(_) if !data.is_empty() => (),
_ => return Err(encoding::Error::Length.into()),
}

Expand Down

0 comments on commit ca5b2a5

Please sign in to comment.