generated from godotengine/godot-cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
libsodium provides utilities for handling "secure" memory, that is, utilities for sanity checking memory and ensuring it's overwritten with random data so that functions within the process are less likely to stumble upon keys.
Secure memory could be implemented, but it's uncertain whether there would be many guarantees on its behavior.
- Evaluate whether or not secure memory can actually be kept by Godot (References should suffice)
- Add a subclass of PackedByteArray, SecureBytes/SecureByteArray, which stores all data in libsodium secure memory
- Add secure memory versions of the GDSodiumType classes
- Add versions of every API which stores the output in an existing PackedByteArray or subclass
The procedure for using secure memory would then be very similar to using it in libsodium, but with less boilerplate.
var smem = GDSodiumSecureMemory.create(GDSodiumAEAD.CHACHA20_IETF_KEY_SIZE)
GDSodiumAEAD.chacha20_ietf_generate_key_in(smem)
smem.clear()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request