This commit is contained in:
zzz
2016-01-13 15:51:59 +00:00
parent aae070a708
commit 88a3db6d04

View File

@@ -227,35 +227,28 @@ The unencrypted data in the AES block contains the following:
{% highlight lang='dataspec' %}
tag count:
2-byte `Integer`, 0-200
{%- endtrans %}
Session Tags:
That many 32-byte `SessionTag`s
{%- endtrans %}
payload size:
4-byte `Integer`
{%- endtrans %}
Payload Hash:
The 32-byte SHA256 `Hash` of the payload
{%- endtrans %}
flag: {% trans -%}
flag:
A one-byte value. Normally == 0. If == 0x01, a Session Key follows
{%- endtrans %}
New Session Key:
A 32-byte `SessionKey`,
to replace the old key, and is only present if preceding flag is 0x01
{%- endtrans %}
Payload: {% trans %}the data{% endtrans %}
Payload: the data
Padding: {% trans -%}
Padding:
Random data to a multiple of 16 bytes for the total length.
May contain more than the minimum required padding.
{%- endtrans %}
{% endhighlight %}
{% trans %}Minimum length: 48 bytes{% endtrans %}
@@ -317,9 +310,8 @@ as follows:
Session Tag:
A 32-byte `SessionTag`
previously delivered in an AES block
{%- endtrans %}
AES Encrypyted Block: {% trans %}As specified <a href="#aes">above</a>.{% endtrans %}
AES Encrypyted Block: As specified above.
{% endhighlight %}