Correct `SignatureScheme::sign()` for ED25519/448

This commit is contained in:
Joseph Birr-Pixton 2024-01-02 12:26:27 +00:00 committed by Joe Birr-Pixton
parent 450224cde9
commit f804902c52
1 changed files with 2 additions and 0 deletions

View File

@ -525,6 +525,8 @@ impl SignatureScheme {
Self::ECDSA_NISTP256_SHA256
| Self::ECDSA_NISTP384_SHA384
| Self::ECDSA_NISTP521_SHA512 => SignatureAlgorithm::ECDSA,
Self::ED25519 => SignatureAlgorithm::ED25519,
Self::ED448 => SignatureAlgorithm::ED448,
_ => SignatureAlgorithm::Unknown(0),
}
}