Simplifying error handling (#232)
This commit is contained in:
@@ -763,7 +763,7 @@ fn test_complete_flow(
|
||||
);
|
||||
} else {
|
||||
assert!(match client_login_result {
|
||||
Err(ProtocolError::VerificationError(PakeError::InvalidLoginError)) => true,
|
||||
Err(ProtocolError::InvalidLoginError) => true,
|
||||
_ => false,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ fn test_blind<G: Group, H: Hash>(tvs: &[&str]) -> Result<(), ProtocolError> {
|
||||
}
|
||||
|
||||
// Tests sksm, blinded_element -> evaluation_element
|
||||
fn test_evaluate<G: Group>(tvs: &[&str]) -> Result<(), PakeError> {
|
||||
fn test_evaluate<G: Group>(tvs: &[&str]) -> Result<(), ProtocolError> {
|
||||
for tv in tvs {
|
||||
let parameters = populate_test_vectors(&serde_json::from_str(tv).unwrap());
|
||||
let evaluation_element = oprf::evaluate::<G>(
|
||||
|
||||
Reference in New Issue
Block a user