Merge branch 'ed25519-strict-verification' into 'main'
use strict verification for ed25519 See merge request veilid/veilid!136
This commit is contained in:
commit
595b237f64
@ -225,7 +225,7 @@ impl CryptoSystem for CryptoSystemVLD0 {
|
|||||||
let mut dig = Blake3Digest512::new();
|
let mut dig = Blake3Digest512::new();
|
||||||
dig.update(data);
|
dig.update(data);
|
||||||
|
|
||||||
pk.verify_prehashed(dig, None, &sig)
|
pk.verify_prehashed_strict(dig, None, &sig)
|
||||||
.map_err(|e| VeilidAPIError::parse_error("Verification failed", e))?;
|
.map_err(|e| VeilidAPIError::parse_error("Verification failed", e))?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user