Skip to content

Commit

Permalink
Fix ntt-1024 test
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
hanno-becker committed Jul 23, 2024
1 parent a4a6d87 commit c9bdded
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ include tests/ntt-256/ntt-256.mk
include tests/ntt-384/ntt-384.mk
include tests/ntt-512/ntt-512.mk
include tests/ntt-768/ntt-768.mk
#include tests/ntt-1024/ntt-1024.mk
include tests/ntt-1024/ntt-1024.mk
include tests/ntt-n256/ntt-n256.mk
include tests/ntt-dilithium/ntt-dilithium.mk
include tests/ntt-kyber/ntt-kyber.mk
Expand Down
8 changes: 6 additions & 2 deletions tests/ntt-1024/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,11 +833,15 @@ int run_test_ntt_incomplete_double_rev4()

void poly_mul_1024( int32_t *dst, int32_t *srcA, int32_t *srcB )
{
int32_t params[] = {
modulus, modulus_inv_u32
};

int32_t tmpB[2*NTT_SIZE];
ntt_u32_mve_rev4( srcA );
ntt_u32_mve_double_rev4( srcB, tmpB );
twisted_cyclic_mul_deg4_u32_add_sub_rev_mve( srcA, tmpB, dst );
//ntt_u32_mve_bitrev_skipfirst( dst );
twisted_cyclic_mul_deg4_u32_add_sub_rev_mve( srcA, tmpB, dst, params );
ntt_u32_mve_bitrev_skipfirst( dst );
}

int run_test_poly_mul()
Expand Down

0 comments on commit c9bdded

Please sign in to comment.