CryptoCore class to access to base crypto utils.
Godot core needs MD5/SHA256/AES/Base64 which used to be provided by
separate libraries.
Since we bundle mbedtls in most cases, and we can easily only include
the needed sources if we so desire, let's use it.
To simplify library changes in the future, and better isolate header
dependencies all functions have been wrapped around inside a class in
`core/math/crypto_base.h`.
If the mbedtls module is disabled, we only bundle the needed source
files independently of the `builtin_mbedtls` option.
If the module is enabled, the `builtin_mbedtls` option works as usual.
Also remove some unused headers from StreamPeerMbedTLS which were
causing build issues.
Showing
core/math/crypto_core.cpp
0 → 100644
core/math/crypto_core.h
0 → 100644
thirdparty/misc/aes256.cpp
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
thirdparty/misc/aes256.h
deleted
100644 → 0
thirdparty/misc/base64.c
deleted
100644 → 0
thirdparty/misc/base64.h
deleted
100644 → 0
thirdparty/misc/md5.cpp
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
thirdparty/misc/md5.h
deleted
100644 → 0
thirdparty/misc/sha256.c
deleted
100644 → 0
thirdparty/misc/sha256.h
deleted
100644 → 0
Please
register
or
sign in
to comment