summaryrefslogtreecommitdiff
path: root/doc/classes/AESContext.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/AESContext.xml')
-rw-r--r--doc/classes/AESContext.xml26
1 files changed, 9 insertions, 17 deletions
diff --git a/doc/classes/AESContext.xml b/doc/classes/AESContext.xml
index f577bab992..847d1226a2 100644
--- a/doc/classes/AESContext.xml
+++ b/doc/classes/AESContext.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<class name="AESContext" inherits="Reference" version="4.0">
+<class name="AESContext" inherits="RefCounted" version="4.0">
<brief_description>
Interface to low level AES encryption features.
</brief_description>
@@ -80,38 +80,30 @@
</tutorials>
<methods>
<method name="finish">
- <return type="void">
- </return>
+ <return type="void" />
<description>
Close this AES context so it can be started again. See [method start].
</description>
</method>
<method name="get_iv_state">
- <return type="PackedByteArray">
- </return>
+ <return type="PackedByteArray" />
<description>
Get the current IV state for this context (IV gets updated when calling [method update]). You normally don't need this function.
Note: This function only makes sense when the context is started with [constant MODE_CBC_ENCRYPT] or [constant MODE_CBC_DECRYPT].
</description>
</method>
<method name="start">
- <return type="int" enum="Error">
- </return>
- <argument index="0" name="mode" type="int" enum="AESContext.Mode">
- </argument>
- <argument index="1" name="key" type="PackedByteArray">
- </argument>
- <argument index="2" name="iv" type="PackedByteArray" default="PackedByteArray( )">
- </argument>
+ <return type="int" enum="Error" />
+ <argument index="0" name="mode" type="int" enum="AESContext.Mode" />
+ <argument index="1" name="key" type="PackedByteArray" />
+ <argument index="2" name="iv" type="PackedByteArray" default="PackedByteArray()" />
<description>
Start the AES context in the given [code]mode[/code]. A [code]key[/code] of either 16 or 32 bytes must always be provided, while an [code]iv[/code] (initialization vector) of exactly 16 bytes, is only needed when [code]mode[/code] is either [constant MODE_CBC_ENCRYPT] or [constant MODE_CBC_DECRYPT].
</description>
</method>
<method name="update">
- <return type="PackedByteArray">
- </return>
- <argument index="0" name="src" type="PackedByteArray">
- </argument>
+ <return type="PackedByteArray" />
+ <argument index="0" name="src" type="PackedByteArray" />
<description>
Run the desired operation for this AES context. Will return a [PackedByteArray] containing the result of encrypting (or decrypting) the given [code]src[/code]. See [method start] for mode of operation.
Note: The size of [code]src[/code] must be a multiple of 16. Apply some padding if needed.