@@ -286,7 +286,7 @@ __contract__(
286286 * - const mld_poly *a: pointer to input polynomial
287287 **************************************************/
288288MLD_INTERNAL_API
289- void mld_polyt1_pack (uint8_t * r , const mld_poly * a )
289+ void mld_polyt1_pack (uint8_t r [ MLDSA_POLYT1_PACKEDBYTES ] , const mld_poly * a )
290290__contract__ (
291291 requires (memory_no_alias (r , MLDSA_POLYT1_PACKEDBYTES ))
292292 requires (memory_no_alias (a , sizeof (mld_poly )))
@@ -305,7 +305,7 @@ __contract__(
305305 * - const uint8_t *a: byte array with bit-packed polynomial
306306 **************************************************/
307307MLD_INTERNAL_API
308- void mld_polyt1_unpack (mld_poly * r , const uint8_t * a )
308+ void mld_polyt1_unpack (mld_poly * r , const uint8_t a [ MLDSA_POLYT1_PACKEDBYTES ] )
309309__contract__ (
310310 requires (memory_no_alias (r , sizeof (mld_poly )))
311311 requires (memory_no_alias (a , MLDSA_POLYT1_PACKEDBYTES ))
@@ -325,7 +325,7 @@ __contract__(
325325 * - const mld_poly *a: pointer to input polynomial
326326 **************************************************/
327327MLD_INTERNAL_API
328- void mld_polyt0_pack (uint8_t * r , const mld_poly * a )
328+ void mld_polyt0_pack (uint8_t r [ MLDSA_POLYT0_PACKEDBYTES ] , const mld_poly * a )
329329__contract__ (
330330 requires (memory_no_alias (r , MLDSA_POLYT0_PACKEDBYTES ))
331331 requires (memory_no_alias (a , sizeof (mld_poly )))
@@ -345,7 +345,7 @@ __contract__(
345345 * - const uint8_t *a: byte array with bit-packed polynomial
346346 **************************************************/
347347MLD_INTERNAL_API
348- void mld_polyt0_unpack (mld_poly * r , const uint8_t * a )
348+ void mld_polyt0_unpack (mld_poly * r , const uint8_t a [ MLDSA_POLYT0_PACKEDBYTES ] )
349349__contract__ (
350350 requires (memory_no_alias (r , sizeof (mld_poly )))
351351 requires (memory_no_alias (a , MLDSA_POLYT0_PACKEDBYTES ))
0 commit comments