@@ -143,7 +143,7 @@ impl HypertreeParams for Shake128s {
143143impl ForsParams for Shake128s {
144144 type K = U < 14 > ;
145145 type A = U < 12 > ;
146- type MD = U < { ( 12 * 14 + 7 ) / 8 } > ;
146+ type MD = U < { ( 12 * 14usize ) . div_ceil ( 8 ) } > ;
147147}
148148impl ParameterSet for Shake128s {
149149 const NAME : & ' static str = "SLH-DSA-SHAKE-128s" ;
@@ -189,7 +189,7 @@ impl HypertreeParams for Shake192s {
189189impl ForsParams for Shake192s {
190190 type K = U < 17 > ;
191191 type A = U < 14 > ;
192- type MD = U < { ( 14 * 17 + 7 ) / 8 } > ;
192+ type MD = U < { ( 14 * 17usize ) . div_ceil ( 8 ) } > ;
193193}
194194impl ParameterSet for Shake192s {
195195 const NAME : & ' static str = "SLH-DSA-SHAKE-192s" ;
@@ -212,7 +212,7 @@ impl HypertreeParams for Shake192f {
212212impl ForsParams for Shake192f {
213213 type K = U < 33 > ;
214214 type A = U < 8 > ;
215- type MD = U < { ( 33 * 8 + 7 ) / 8 } > ;
215+ type MD = U < { ( 33 * 8usize ) . div_ceil ( 8 ) } > ;
216216}
217217impl ParameterSet for Shake192f {
218218 const NAME : & ' static str = "SLH-DSA-SHAKE-192f" ;
@@ -235,7 +235,7 @@ impl HypertreeParams for Shake256s {
235235impl ForsParams for Shake256s {
236236 type K = U < 22 > ;
237237 type A = U < 14 > ;
238- type MD = U < { ( 14 * 22 + 7 ) / 8 } > ;
238+ type MD = U < { ( 14 * 22usize ) . div_ceil ( 8 ) } > ;
239239}
240240impl ParameterSet for Shake256s {
241241 const NAME : & ' static str = "SLH-DSA-SHAKE-256s" ;
@@ -258,7 +258,7 @@ impl HypertreeParams for Shake256f {
258258impl ForsParams for Shake256f {
259259 type K = U < 35 > ;
260260 type A = U < 9 > ;
261- type MD = U < { ( 35 * 9 + 7 ) / 8 } > ;
261+ type MD = U < { ( 35 * 9usize ) . div_ceil ( 8 ) } > ;
262262}
263263impl ParameterSet for Shake256f {
264264 const NAME : & ' static str = "SLH-DSA-SHAKE-256f" ;
0 commit comments