-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58adb81
commit 88b88b7
Showing
6 changed files
with
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
From 14b985c86fd0f97b186adc445c224794c3c1b97b Mon Sep 17 00:00:00 2001 | ||
From 736bfaae854159d944772f24b2ab9b2622808470 Mon Sep 17 00:00:00 2001 | ||
From: maksim-ka <[email protected]> | ||
Date: Fri, 31 Jan 2020 15:15:46 +0100 | ||
Subject: [PATCH 1/2] use modul random for seeding | ||
Subject: [PATCH 1/3] use modul random for seeding | ||
|
||
--- | ||
src/rand/relic_rand_core.c | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/src/rand/relic_rand_core.c b/src/rand/relic_rand_core.c | ||
index 10f8929f..804b4455 100644 | ||
index c21c5a9..09cd948 100644 | ||
--- a/src/rand/relic_rand_core.c | ||
+++ b/src/rand/relic_rand_core.c | ||
@@ -171,6 +171,11 @@ void rand_init(void) { | ||
|
@@ -24,5 +24,5 @@ index 10f8929f..804b4455 100644 | |
|
||
#endif /* RAND == UDEV */ | ||
-- | ||
2.33.1 | ||
2.39.5 | ||
|
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
From ce1cd836aafefa92c3138f3e923147a42e95c886 Mon Sep 17 00:00:00 2001 | ||
From e2f067469fb02535f8cf773a3b9de1c2cd8543af Mon Sep 17 00:00:00 2001 | ||
From: Kaspar Schleiser <[email protected]> | ||
Date: Mon, 8 Nov 2021 22:37:38 +0100 | ||
Subject: [PATCH 2/2] add RIOT random support to cmake and relic_conf.h | ||
Subject: [PATCH 2/3] add RIOT random support to cmake and relic_conf.h | ||
|
||
--- | ||
cmake/rand.cmake | 1 + | ||
include/relic_conf.h.in | 2 ++ | ||
2 files changed, 3 insertions(+) | ||
|
||
diff --git a/cmake/rand.cmake b/cmake/rand.cmake | ||
index ed90c769..9f79fd6d 100644 | ||
index ed90c76..9f79fd6 100644 | ||
--- a/cmake/rand.cmake | ||
+++ b/cmake/rand.cmake | ||
@@ -12,6 +12,7 @@ message(" SEED=LIBC Use rand()/random() functions. (insecure!)") | ||
|
@@ -21,10 +21,10 @@ index ed90c769..9f79fd6d 100644 | |
# Choose the pseudo-random number generator. | ||
set(RAND "HASHD" CACHE STRING "Pseudo-random number generator") | ||
diff --git a/include/relic_conf.h.in b/include/relic_conf.h.in | ||
index 1245edc0..4e807621 100644 | ||
index f9bb79a..33db9d7 100644 | ||
--- a/include/relic_conf.h.in | ||
+++ b/include/relic_conf.h.in | ||
@@ -656,6 +656,8 @@ | ||
@@ -669,6 +669,8 @@ | ||
#define UDEV 3 | ||
/** Use Windows' CryptGenRandom. */ | ||
#define WCGR 4 | ||
|
@@ -34,5 +34,5 @@ index 1245edc0..4e807621 100644 | |
#cmakedefine SEED @SEED@ | ||
|
||
-- | ||
2.33.1 | ||
2.39.5 | ||
|
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
From be6a8c76f021a2cba3d371c16bfb84a8264f51fe Mon Sep 17 00:00:00 2001 | ||
From 49e5e3576572ebcaefab7fe996c89789c5476073 Mon Sep 17 00:00:00 2001 | ||
From: Marian Buschsieweke <[email protected]> | ||
Date: Sat, 20 May 2023 21:41:32 +0200 | ||
Subject: [PATCH] fix -Wformat-nonliteral by using printf() directly | ||
Date: Mon, 13 Jan 2025 14:13:25 +0100 | ||
Subject: [PATCH 3/3] fix -Wformat-nonliteral by using printf() directly | ||
|
||
--- | ||
include/relic_util.h | 2 +- | ||
src/relic_util.c | 36 ------------------------------------ | ||
2 files changed, 1 insertion(+), 37 deletions(-) | ||
|
||
diff --git a/include/relic_util.h b/include/relic_util.h | ||
index 0dd1744..74e3216 100644 | ||
index cdca0dc..379aa25 100644 | ||
--- a/include/relic_util.h | ||
+++ b/include/relic_util.h | ||
@@ -296,7 +296,7 @@ int util_cmp_const(const void *a, const void *b, int n); | ||
@@ -316,7 +316,7 @@ void util_perm(uint_t p[], size_t n); | ||
* @param[in] format - the format. | ||
* @param[in] ... - the list of arguments matching the format. | ||
*/ | ||
|
@@ -22,11 +22,11 @@ index 0dd1744..74e3216 100644 | |
/** | ||
* Prints a digit. | ||
diff --git a/src/relic_util.c b/src/relic_util.c | ||
index 3bb369d..133153d 100644 | ||
index c69fb5c..8207a41 100644 | ||
--- a/src/relic_util.c | ||
+++ b/src/relic_util.c | ||
@@ -151,42 +151,6 @@ int util_cmp_const(const void *a, const void *b, int size) { | ||
return (result == 0 ? RLC_EQ : RLC_NE); | ||
@@ -162,42 +162,6 @@ void util_perm(uint_t p[], size_t n) { | ||
} | ||
} | ||
|
||
-#ifndef QUIET | ||
|
@@ -69,5 +69,5 @@ index 3bb369d..133153d 100644 | |
#if RLC_DIG == 64 | ||
if (pad) { | ||
-- | ||
2.40.1 | ||
2.39.5 | ||
|
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