Skip to content

Commit 6afeb5b

Browse files
committed
Update OpenSSL version 3.4.1 => 3.6.0
1 parent c2b5e4c commit 6afeb5b

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
_nakamoto_ changelogs
33

4+
## [0.1.5] - 2025-11-23
5+
- Update OpenSSL version 3.4.1 => [3.6.0](https://github.com/openssl/openssl/releases/tag/openssl-3.6.0) ✔️
6+
- Add reference of system entropy function detector _(verify_system_entropy)_ implementation related to [MIT - 7.3 A Statistical Definition of Entropy](https://web.mit.edu/16.unified/www/FALL/thermodynamics/notes/node56.html) ✔️
7+
48
## [0.1.4] - 2025-03-27
59
- Update OpenSSL version 3.4.0 => 3.4.1 ✔️
610

@@ -33,5 +37,6 @@ _nakamoto_ changelogs
3337
[0.1.2]: https://github.com/devfabiosilva/nakamoto/tree/v0.1.2
3438
[0.1.3]: https://github.com/devfabiosilva/nakamoto/tree/v0.1.3
3539
[0.1.4]: https://github.com/devfabiosilva/nakamoto/tree/v0.1.4
40+
[0.1.5]: https://github.com/devfabiosilva/nakamoto/tree/v0.1.5
3641
[master]: https://github.com/devfabiosilva/nakamoto/tree/master
3742

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TEST_DIR=$(CURDIR)/test
88

99
THIRD_PARTY_DIR=$(CURDIR)/third-party
1010
OPENSSL_GIT=https://github.com/openssl/openssl.git
11-
OPENSSL_BRANCH=openssl-3.4.1
11+
OPENSSL_BRANCH=openssl-3.6.0
1212
OPENSSL_DIR=$(THIRD_PARTY_DIR)/openssl
1313
OPENSSL_COMPILED_DIR=$(OPENSSL_DIR)/compiled
1414
OPENSSL_COMPILED_DIR_LIB=$(OPENSSL_COMPILED_DIR)/lib64

include/nakamoto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#define VERSION_MAJOR 0
1212
#define VERSION_MINOR 1
13-
#define VERSION_REVISION 4
13+
#define VERSION_REVISION 5
1414
#define GET_VER_MAJ(val) (val>>20)
1515
#define GET_VER_MIN(val) ((val>>10)&0x03FF)
1616
#define GET_VER_REV(val) (val&0x03FF)

src/rnd.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,22 @@ uint64_t *getCurrentSecond(uint64_t *timestamp)
146146
#define clear_entropy \
147147
memset((void *)rand_entropy->__entropy_val, 0, sizeof(rand_entropy->__entropy_val));
148148

149+
/**
150+
* @fn int verify_system_entropy(uint32_t type, void *rand, size_t rand_size, int timeoutInS)
151+
* @brief Take a random number generator function and returns random value only if randomized data have a desired entropy value
152+
* @param [in] type Entropy type. Entropy type values are:
153+
* - F_ENTROPY_TYPE_PARANOIC Highest level entropy recommended for generate a paranoic entropy. Very slow
154+
* - F_ENTROPY_TYPE_EXCELENT Gives a very excellent entropy. Slow
155+
* - F_ENTROPY_TYPE_GOOD Good entropy type. Normal.
156+
* - F_ENTROPY_TYPE_NOT_ENOUGH Moderate entropy. Usually fast to create a temporary random values. Fast
157+
* - F_ENTROPY_TYPE_NOT_RECOMENDED Fast but not recommended for generating ramdom.
158+
* @param [out] rand Random data with a satisfied type of entropy
159+
* @param [in] rand_size Size of random data output
160+
* @param [in] timeoutInS timeout for random generator
161+
*
162+
* NOTE: This implementation is based on topic in <a href="https://web.mit.edu/16.unified/www/FALL/thermodynamics/notes/node56.html">Definition 7.12</a> in MIT opencourseware (7.3 A Statistical Definition of Entropy - 2005)<br> Many thanks to <b>Professor Z. S. Spakovszky</b> for this amazing topic
163+
* @retval 0: On Success, otherwise Error
164+
*/
149165
int verify_system_entropy(
150166
uint32_t type,
151167
uint8_t *rand,

test/testutil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#define VERSION_MAJOR_STR "0"
1212
#define VERSION_MINOR_STR "1"
13-
#define VERSION_REVISION_STR "4"
13+
#define VERSION_REVISION_STR "5"
1414

1515
#define STR_CONST(str) str, (sizeof(str)-1)
1616
#define VEC_CONST(vec) vec, sizeof(vec)

0 commit comments

Comments
 (0)