Skip to content

Commit

Permalink
fix compiler errors in Keccak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkannwischer committed Apr 11, 2024
1 parent 53d45c4 commit 6190478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asm/manual/keccak_f1600/keccak_f1600_variants.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void keccak_f1600_x2_scalar_C ( uint64_t state[KECCAK_F1600_X2_STATE_SIZE_UI
void keccak_f1600_x2_bas ( uint64_t state[KECCAK_F1600_X2_STATE_SIZE_UINT64] );
#include <arm_neon.h>
typedef uint64x2_t v128;
void keccak_f1600_x2_neon_C_cothan( v128 state[25] );
void keccak_f1600_x2_neon_C_cothan( uint64_t stateu64[2*25] );

/* PQAX implementations */
void keccak_f1600_x2_v84a_asm_v1( uint64_t state[KECCAK_F1600_X2_STATE_SIZE_UINT64] );
Expand Down
3 changes: 2 additions & 1 deletion asm/manual/keccak_f1600/third_party/keccakx2_cothan.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ static const uint64_t neon_KeccakF_RoundConstants[NROUNDS] = {
*
* Arguments: - v128 *state: pointer to input/output Keccak state
**************************************************/
void keccak_f1600_x2_neon_C_cothan(v128 state[25])
void keccak_f1600_x2_neon_C_cothan(uint64_t stateu64[2*25])
{
v128 *state = (v128 *) stateu64;
v128 Aba, Abe, Abi, Abo, Abu;
v128 Aga, Age, Agi, Ago, Agu;
v128 Aka, Ake, Aki, Ako, Aku;
Expand Down

0 comments on commit 6190478

Please sign in to comment.