mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
crypto: Refactor (P)RNG functionality into new crypto_rand module.
* ADD new /src/common/crypto_rand.[ch] module. * ADD new /src/common/crypto_util.[ch] module (contains the memwipe() function, since all crypto_* modules need this). * FIXES part of #24658: https://bugs.torproject.org/24658
This commit is contained in:
@@ -118,8 +118,10 @@ LIBOR_CRYPTO_A_SRC = \
|
||||
src/common/crypto_rsa.c \
|
||||
src/common/crypto_openssl_mgt.c \
|
||||
src/common/crypto_pwbox.c \
|
||||
src/common/crypto_rand.c \
|
||||
src/common/crypto_s2k.c \
|
||||
src/common/crypto_format.c \
|
||||
src/common/crypto_util.c \
|
||||
src/common/tortls.c \
|
||||
src/common/crypto_curve25519.c \
|
||||
src/common/crypto_ed25519.c
|
||||
@@ -173,7 +175,9 @@ COMMONHEADERS = \
|
||||
src/common/crypto_openssl_mgt.h \
|
||||
src/common/crypto_rsa.h \
|
||||
src/common/crypto_pwbox.h \
|
||||
src/common/crypto_rand.h \
|
||||
src/common/crypto_s2k.h \
|
||||
src/common/crypto_util.h \
|
||||
src/common/di_ops.h \
|
||||
src/common/handles.h \
|
||||
src/common/memarea.h \
|
||||
|
||||
Reference in New Issue
Block a user