-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add overrides value_barrier_u32_ov and value_barrier_w_ov for EC rela…
…ted proofs (#120) and disable RSA proof in debug mode
- Loading branch information
Showing
8 changed files
with
51 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/crypto/internal.h b/crypto/internal.h | ||
index 295f1dd97..a5470c17a 100644 | ||
--- a/crypto/internal.h | ||
+++ b/crypto/internal.h | ||
@@ -289,7 +289,8 @@ static inline crypto_word_t value_barrier_w(crypto_word_t a) { | ||
} | ||
|
||
// value_barrier_u32 behaves like |value_barrier_w| but takes a |uint32_t|. | ||
-static inline uint32_t value_barrier_u32(uint32_t a) { | ||
+__attribute__((noinline)) | ||
+static uint32_t value_barrier_u32(uint32_t a) { | ||
#if defined(__GNUC__) || defined(__clang__) | ||
__asm__("" : "+r"(a) : /* no inputs */); | ||
#endif |
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
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
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
Submodule src
updated
98 files