mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
3.6.4 Document inclusion of Ed448 HRAM vector
This commit is contained in:
@@ -9,6 +9,14 @@ use crate::{
|
|||||||
tests::vectors::{Vectors, test_with_vectors},
|
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]
|
#[test]
|
||||||
fn ed448_8032_vector() {
|
fn ed448_8032_vector() {
|
||||||
let context = hex::decode("666f6f").unwrap();
|
let context = hex::decode("666f6f").unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user