summaryrefslogtreecommitdiffstats
path: root/modules/mbedtls/crypto_mbedtls.cpp
Commit message (Collapse)AuthorAgeFilesLines
* feat: HMAC support in Crypto APIsJon Bonazza2020-11-261-3/+68
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-2/+2
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Fix certificate generation with mbedtls 2.16.8 .Fabio Alessandrelli2020-09-151-13/+8
| | | | | | | | | | | | | | When generating certificates with `Crypto.generate_self_signed_certificate` we generate the PEM in a buffer via `mbedtls_x509write_crt_pem`. Since version 2.16.8, mbedtls adds spurious data at the end of the buffer due to internal optimizations, this breaks our logic when we try to immediately parse it and return a proper `X509Certificate` object. This commit updates the code to find the actual PEM length to parse using `strlen`, takes extra caution always adding the terminator to the buffer, and slightly improve error messages.
* Implement RSA encryption/decryption.Fabio Alessandrelli2020-06-181-0/+27
|
* Implement sign and verify in crypto.Fabio Alessandrelli2020-06-181-0/+45
|
* CryptoKey supports public keys.Fabio Alessandrelli2020-06-181-5/+48
|
* Better zeroizing in CryptoKey.Fabio Alessandrelli2020-06-181-15/+8
| | | | Small code clenup (after PoolByteArray change).
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-1/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Replace NULL with nullptrlupoDharkael2020-04-021-13/+13
|
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-1/+1
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-16/+16
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-051-2/+2
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Removed unused variables, add some constants numbersRafał Mikrut2019-12-101-2/+0
|
* Fix crash when passing invalid key to Crypto.Fabio Alessandrelli2019-10-091-0/+1
| | | | In generate_self_signed_certificate
* Added some obvious errors explanationsqarmin2019-09-251-7/+7
|
* Better error handling in SSLContext, CryptoFabio Alessandrelli2019-08-221-1/+1
|
* New CryptoMbedTLS Crypto implementation.Fabio Alessandrelli2019-08-211-0/+285
Allows random bytes, RSA keys, and X509 certificates generation.