mirror of
https://github.com/serai-dex/serai.git
synced 2025-04-22 05:58:13 +00:00
3.6.4 Document inclusion of Ed448 HRAM vector
This commit is contained in:
parent
39b3452da1
commit
6a15b21949
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,14 @@ use crate::{
|
|||
tests::vectors::{Vectors, test_with_vectors},
|
||||
};
|
||||
|
||||
// This is a vector from RFC 8032 to sanity check the HRAM is properly implemented
|
||||
// The RFC 8032 Ed448 HRAM is much more complex than the other HRAMs, hence why it's helpful to
|
||||
// have additional testing for it
|
||||
// Additionally, FROST, despite being supposed to use the RFC 8032 HRAMs, originally applied
|
||||
// Ed25519's HRAM to both Ed25519 and Ed448
|
||||
// This test was useful when proposing the corrections to the spec to demonstrate the correctness
|
||||
// the new algorithm/vectors
|
||||
// While we could test all Ed448 vectors here, this is sufficient for sanity
|
||||
#[test]
|
||||
fn ed448_8032_vector() {
|
||||
let context = hex::decode("666f6f").unwrap();
|
||||
|
|
Loading…
Reference in a new issue