summaryrefslogtreecommitdiff
path: root/core/crypto/SCsub
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-08 10:34:43 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-14 10:45:50 +0100
commitee7b67e13538bf67a1613650986d4520281808df (patch)
tree005da0285d3e50b6f42f7ec6096f2aa020ca6e80 /core/crypto/SCsub
parent6b5634b96aa90ab2db7357b353fc8f96ad4878c5 (diff)
[Crypto] Implement CryptoCore::RandomGenerator.
As a cryptographically secure random generator. Internally it uses mbedTLS CTR-DRBG implementation which gets re-seeded with entropy from OS::get_entropy when needed. CryptoCore now additionally depends on `ctr_drbg.c` and `entropy.c` thirdparty mbedtls files.
Diffstat (limited to 'core/crypto/SCsub')
-rw-r--r--core/crypto/SCsub2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/crypto/SCsub b/core/crypto/SCsub
index 1fe2fa5b23..9b7953fdc5 100644
--- a/core/crypto/SCsub
+++ b/core/crypto/SCsub
@@ -31,6 +31,8 @@ if not has_module:
"aes.c",
"base64.c",
"constant_time.c",
+ "ctr_drbg.c",
+ "entropy.c",
"md5.c",
"sha1.c",
"sha256.c",