Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
getIvState
Get the current IV state for this context (IV gets updated when calling update(src:)
). You normally don’t need this function.
final func getIvState() -> PackedByteArray
Other members in extension
Types
Type members
Instance members
func finish(
) Close this AES context so it can be started again. See
start(mode:key:iv:)
.func start(mode: AESContext.Mode, key: PackedByteArray, iv: PackedByteArray
) -> GodotError Start the AES context in the given
mode
. Akey
of either 16 or 32 bytes must always be provided, while aniv
(initialization vector) of exactly 16 bytes, is only needed whenmode
is either .cbcEncrypt or .cbcDecrypt.func update(src: PackedByteArray
) -> PackedByteArray Run the desired operation for this AES context. Will return a
PackedByteArray
containing the result of encrypting (or decrypting) the givensrc
. Seestart(mode:key:iv:)
for mode of operation.