Skip to content

Commit f82f729

Browse files
committed
Remove contract of mld_shake256_absorb_with_residual
This gets inlined into the proof of mld_H - no need for a separate contract if the proofs go through. Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent a8d2d6a commit f82f729

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

mldsa/sign.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,6 @@ int crypto_sign_keypair(uint8_t *pk, uint8_t *sk)
234234
static void mld_shake256_absorb_with_residual(mld_shake256ctx *state,
235235
const uint8_t *in, size_t inlen,
236236
uint8_t *residual, size_t *pos)
237-
__contract__(
238-
requires(0 <= *pos && pos <= 8)
239-
requires(memory_no_alias(state, sizeof(mld_shake256ctx)))
240-
requires(in == NULL || memory_no_alias(in, inlen))
241-
requires(memory_no_alias(residual, 8))
242-
assigns(memory_slice(state, sizeof(mld_shake256ctx)))
243-
assigns(memory_slice(residual, 8))
244-
assigns(*pos)
245-
)
246237
{
247238
size_t nb;
248239
if (in)

0 commit comments

Comments
 (0)