diff --git a/crypto/frost/src/curve/ed448.rs b/crypto/frost/src/curve/ed448.rs index a3500c84..954464d9 100644 --- a/crypto/frost/src/curve/ed448.rs +++ b/crypto/frost/src/curve/ed448.rs @@ -57,6 +57,6 @@ pub struct NonIetfEd448Hram; impl Hram for NonIetfEd448Hram { #[allow(non_snake_case)] fn hram(R: &Point, A: &Point, m: &[u8]) -> Scalar { - Ietf8032Ed448Hram::hram(&[CONTEXT, b"chal"].concat(), R, A, m) + Ietf8032Ed448Hram::hram(&[], R, A, m) } } diff --git a/crypto/frost/src/tests/literal/ed448.rs b/crypto/frost/src/tests/literal/ed448.rs index f0f5623c..c013ebcd 100644 --- a/crypto/frost/src/tests/literal/ed448.rs +++ b/crypto/frost/src/tests/literal/ed448.rs @@ -86,47 +86,49 @@ fn ed448_non_ietf() { nonces: &[ [ concat!( - "afa99ad5138f89d064c828ecb17accde77e4dc52e017c20b34d1db11", - "bdd0b17d2f4ec6ea7d5414df33977267c49b8d4b3b35c7f4a089db2f", + "f770bcb22f3c0acac7f09d3b757f13f31b53489776ede2cff944b4c0", + "cd28bb7dfbd33809e87201e152beeb552292eb748efa5267fa2dcd20", "00" ), concat!( - "c9c2f6119d5a7f60fc1a3517f08f3aced6f84f53cbcfa4709080858d", - "b8c8b49d4cb9921c4118f1961d4fb653ad5e320d175de3ee5258e904", + "d3196c7f14b1a99f1715053c00fa3a30b0fe9cbeb461068c262b1714", + "78458a15598cc1c33cd415a766577996a6efcc520c411abf0280c816", "00" ), ], [ concat!( - "a575cf9ae013b63204a56cc0bb0c21184eed6e42f448344e59153cf4", - "3798ad3b8c300a2c0ffa04ee7228a5c4ff84fcad4cf9616d1cd7fe0a", + "9172a7cea56b7f564ed93116adf078ee013e4160e2687489ea580bc6", + "f034f10e58db0b0cdf98bf1d3c85b2eb1f30b8b6df57b3611d205d2e", "00" ), concat!( - "12419016a6c0d38a1d9d1eeb1455525d73a464113a9323fcfc75e5fb", - "7c1f17ad71ca2f2852b71f33950adedd7f8489551ad356ecf39a4d29", + "3b60b4dc036b21441620a36c84b0ec780267a9275b411a495b182dc6", + "bfc812d1a21d93142d375b7ed80314d1693b61c1f42e20c575a4530e", "00" ), ], ], sig_shares: &[ concat!( - "e88d1e9743ac059553de940131508205eff504816935f8c9d22a29df", - "4c541e4bb55d4c4a5c58dd65e6d2c421e35f2ddc7ea11095cffb3b16", + "95aeb18a46bac9e239d8eb51a7168da25a000d8a6938e26446c36e5d", + "b88eff9523e0b09934558ddc8b2679bf2f10ed66415df1eb6e38a507", "00" ), concat!( - "d6ae2965ee86f925d38eedf0690ee54395243d244b59a5fece45cece", - "721867a00a6c7af9635c621ea09edad8fc26db5de4ce3aa4e7e7ea3f", + "521672ae547cd95b94a9be55b72a0dfb6938715230304d39017f5a54", + "f1333a96da50a0759eea78bdb6b670c8243dbe706cd388763fe4c50b", "00" ), ], - sig: "c07db58a26bd0c33930455f1923df2ffa50c3a1679e06a1940f84e0e".to_owned() + - "067bcec3e46008c3b4018b7b2563ba0f26740b7b5932883355e569f5" + - "00" + - "cbf7ef509f708697d1ddbc64289cfa27f4e36bf66ab34e04b84c2d31" + - "c06c85ebbfc9c643c0b43f8486719ffadf86083a63704b39b7e32616" + + sig: concat!( + "f1c2605fc0b724696dff10d2df0ac28939f40dc3d9ba864605462355", + "c139229de643a6580e5807994cfcab0796644571c501cab00e85056a", "00", + "e7c423399b36a33ece81aaa75e419a9dc4387edc99682f9e4742c9b1", + "a9c2392cfe30510fd33f069a42dde987544dabd7ad307a62ae1c6b13", + "00" + ).to_string() }, ); }