Skip to content

Commit

Permalink
Add first AArch64 Keccak-f1600 ASM
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <[email protected]>
  • Loading branch information
hanno-becker committed Sep 17, 2024
1 parent 640005d commit cfefcb2
Show file tree
Hide file tree
Showing 7 changed files with 1,000 additions and 19 deletions.
12 changes: 12 additions & 0 deletions fips202/asm/aarch64/common.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: MIT

#if __APPLE__
#define ASM_LOAD(dst, symbol) \
adrp dst, symbol @PAGE %% add dst, dst, symbol @PAGEOFF
#else
#define ASM_LOAD(dst, symbol) \
adrp dst, symbol; \
add dst, dst, : lo12 : symbol;
.endm

#endif
Loading

0 comments on commit cfefcb2

Please sign in to comment.