@@ -983,7 +983,10 @@ mod tests {
983983 inc_encoding:: target_sum:: TargetSumEncoding ,
984984 signature:: test_templates:: test_signature_scheme_correctness,
985985 symmetric:: {
986- message_hash:: { MessageHash , poseidon:: PoseidonMessageHashW1 } ,
986+ message_hash:: {
987+ MessageHash ,
988+ poseidon:: { PoseidonMessageHash , PoseidonMessageHashW1 } ,
989+ } ,
987990 prf:: shake_to_field:: ShakePRFtoF ,
988991 tweak_hash:: poseidon:: PoseidonTweakW1L5 ,
989992 } ,
@@ -1062,14 +1065,12 @@ mod tests {
10621065 assert_eq ! ( rho1, rho2) ;
10631066 }
10641067
1065- /* #[test]
1066- pub fn test_large_base_sha () {
1068+ #[ test]
1069+ pub fn test_large_base_poseidon ( ) {
10671070 // Note: do not use these parameters, they are just for testing
1068- type PRF = ShaPRF<24, 8>;
1069- type TH = ShaTweak192192;
1070-
1071- // use chunk size 8
1072- type MH = ShaMessageHash<24, 8, 32, 8>;
1071+ type PRF = ShakePRFtoF < 4 , 8 > ;
1072+ type TH = PoseidonTweakHash < 4 , 4 , 2 , 8 , 32 > ;
1073+ type MH = PoseidonMessageHash < 4 , 8 , 8 , 32 , 256 , 2 , 9 > ;
10731074 const TARGET_SUM : usize = 1 << 12 ;
10741075 type IE = TargetSumEncoding < MH , TARGET_SUM > ;
10751076 const LOG_LIFETIME : usize = 10 ;
@@ -1082,13 +1083,11 @@ mod tests {
10821083 }
10831084
10841085 #[ test]
1085- pub fn test_large_dimension_sha () {
1086+ pub fn test_large_dimension_poseidon ( ) {
10861087 // Note: do not use these parameters, they are just for testing
1087- type PRF = ShaPRF<24, 8>;
1088- type TH = ShaTweak192192;
1089-
1090- // use 256 chunks
1091- type MH = ShaMessageHash<24, 8, 256, 1>;
1088+ type PRF = ShakePRFtoF < 8 , 8 > ;
1089+ type TH = PoseidonTweakHash < 4 , 8 , 2 , 8 , 256 > ;
1090+ type MH = PoseidonMessageHash < 4 , 8 , 8 , 256 , 2 , 2 , 9 > ;
10921091 const TARGET_SUM : usize = 128 ;
10931092 type IE = TargetSumEncoding < MH , TARGET_SUM > ;
10941093 const LOG_LIFETIME : usize = 10 ;
@@ -1098,7 +1097,7 @@ mod tests {
10981097
10991098 test_signature_scheme_correctness :: < Sig > ( 2 , 0 , Sig :: LIFETIME as usize ) ;
11001099 test_signature_scheme_correctness :: < Sig > ( 19 , 0 , Sig :: LIFETIME as usize ) ;
1101- }*/
1100+ }
11021101
11031102 #[ test]
11041103 pub fn test_expand_activation_time ( ) {
0 commit comments