Cache the public point in ED25519Public.

This commit is contained in:
2019-05-26 16:26:40 -07:00
parent 0e6664f232
commit 23a79300c8
3 changed files with 30 additions and 16 deletions

View File

@@ -42,7 +42,9 @@ impl From<ED25519PublicImportError> for SSHKeyParseError {
fn from(e: ED25519PublicImportError) -> SSHKeyParseError {
match e {
ED25519PublicImportError::WrongNumberOfBytes(_) =>
SSHKeyParseError::InvalidPublicKeyMaterial
SSHKeyParseError::InvalidPublicKeyMaterial,
ED25519PublicImportError::InvalidPublicPoint =>
SSHKeyParseError::InvalidPublicKeyMaterial,
}
}
}