-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AArch64: Add secure native implementations for verify.h
This commit adds native implementations of the verify.h API for AArch64. Instead of writing the functions in assembly, they are largely kept in C, and only the decisive operations are implemented in inline assembly to prevent the compiler from inadvertently introducing secret-dependent branches. Sticking to C and inline assembly keeps most of the work to the compiler while giving it large scheduling freedom through the precise register usage annotations in the inline assembly. A function call, in turn, would need to obey the function call ABI and potentially force the compiler to stash registers on the stack. Signed-off-by: Hanno Becker <[email protected]>
- Loading branch information
1 parent
c26a0d4
commit e92ceb7
Showing
2 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters