Merge pull request #98918 from bruvzg/pck_enc_iv

Allow setting custom initialization vector for FileAccessEncrypted. Add export setting to set static seed for PCK encryption initialization vectors.
This commit is contained in:
Thaddeus Crews 2024-11-13 08:34:31 -06:00
commit 1627912d11
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
18 changed files with 200 additions and 52 deletions

View file

@ -308,6 +308,7 @@
<param index="0" name="path" type="String" />
<param index="1" name="mode_flags" type="int" enum="FileAccess.ModeFlags" />
<param index="2" name="key" type="PackedByteArray" />
<param index="3" name="iv" type="PackedByteArray" default="PackedByteArray()" />
<description>
Creates a new [FileAccess] object and opens an encrypted file in write or read mode. You need to pass a binary key to encrypt/decrypt it.
[b]Note:[/b] The provided key must be 32 bytes long.