summaryrefslogtreecommitdiffstats
path: root/core/crypto
Commit message (Collapse)AuthorAgeFilesLines
* Rename Reference to RefCountedPedro J. Estébanez2021-06-114-12/+12
|
* Style: Apply clang-tidy's `readability-braces-around-statements`Rémi Verschelde2021-04-051-1/+2
|
* Fixes small typos and grammar correctionAnshul7sp12021-03-121-2/+2
|
* Improve resource load cachereduz2021-02-112-2/+2
| | | | | | -Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
* Update copyright statements to 2021Rémi Verschelde2021-01-018-16/+16
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* SCons: Add explicit dependencies on thirdparty code in cloned envRémi Verschelde2020-12-181-2/+13
| | | | | | | | | | | | | | Since we clone the environments to build thirdparty code, we don't get an explicit dependency on the build objects produced by that environment. So when we update thirdparty code, Godot code using it is not necessarily rebuilt (I think it is for changed headers, but not for changed .c/.cpp files), which can lead to an invalid compilation output (linking old Godot .o files with a newer, potentially ABI breaking version of thirdparty code). This was only seen as really problematic with bullet updates (leading to crashes when rebuilding Godot after a bullet update without cleaning .o files), but it's safer to fix it everywhere, even if it's a LOT of hacky boilerplate.
* feat: HMAC support in Crypto APIsJon Bonazza2020-11-262-0/+70
|
* Initialize class/struct variables with default values in core/ and drivers/Rafał Mikrut2020-11-234-7/+6
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-075-6/+6
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Adds PCK encryption support (using script encryption key for export).bruvzg2020-09-052-4/+18
| | | | Change default encryption mode from ECB to CFB.
* Implement RSA encryption/decryption.Fabio Alessandrelli2020-06-182-0/+4
|
* Implement sign and verify in crypto.Fabio Alessandrelli2020-06-182-0/+6
|
* CryptoKey supports public keys.Fabio Alessandrelli2020-06-182-8/+24
|
* Add AESContext.Fabio Alessandrelli2020-06-184-0/+196
| | | | | GDScript interface to CryptoCore::AESContext. Also add CBC mode in CryptoCore::AESContext and expose it.
* Crypto as a custom instance class.Fabio Alessandrelli2020-06-062-16/+4
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-142-9/+17
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-143-14/+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.
* Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-144-13/+5
| | | | | | | | | | Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
* Exposed RenderingDevice to script APIJuan Linietsky2020-04-202-2/+2
| | | | | | | | | | | | | Also added an easier way to load native GLSL shaders. Extras: Had to fix no-cache for subresources in resource loader, it was not properly working, making shaders not properly reload. Note: The precommit hooks are broken because they don't seem to support enums from one class being used in another. Feel free to fix this after merging this PR.
* DocData: Skip unexposed classesRémi Verschelde2020-04-201-4/+0
| | | | Properly expose classes that we actually want accessible.
* Replace NULL with nullptrlupoDharkael2020-04-023-18/+18
|
* SCons: Format buildsystem files with psf/blackRémi Verschelde2020-03-301-3/+5
| | | | | | | | | | | | | | | | | | | | | Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
* Removed interactive loader, added proper thread loading.Juan Linietsky2020-02-282-2/+2
|
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-185-16/+16
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Update copyright statements to 2020Rémi Verschelde2020-01-016-12/+12
| | | | | | | | | | | 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.
* Fix some crashes and using null pointersRafał Mikrut2019-10-281-0/+1
|
* Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde2019-09-251-1/+1
|\ | | | | Added some obvious errors explanations
| * Added some obvious errors explanationsqarmin2019-09-251-1/+1
| |
* | Changed some code found by Clang Tidy and Coverityqarmin2019-09-221-1/+1
|/
* Add hashing context classFabio Alessandrelli2019-08-212-0/+203
|
* Add Crypto custom classFabio Alessandrelli2019-08-213-0/+313
|
* Move CryptoCore to it's own folder.Fabio Alessandrelli2019-08-192-0/+287
Crypto classes will be placed in core/crypto.