forked from I2P_Developers/i2p.www
formatting
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{% extends "global/layout.html" %}
|
{% extends "global/layout.html" %}
|
||||||
{% block title %}{% trans %}ElGamal/AES + SessionTag Encryption{% endtrans %}{% endblock %}
|
{% block title %}{% trans %}ElGamal/AES + SessionTag Encryption{% endtrans %}{% endblock %}
|
||||||
{% block lastupdated %}{% trans %}March 2014{% endtrans %}{% endblock %}
|
{% block lastupdated %}{% trans %}January 2016{% endtrans %}{% endblock %}
|
||||||
{% block accuratefor %}0.9.12{% endblock %}
|
{% block accuratefor %}0.9.24{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{% trans %}Overview{% endtrans %}</h2>
|
<h2>{% trans %}Overview{% endtrans %}</h2>
|
||||||
<p>{% trans -%}
|
<p>{% trans -%}
|
||||||
@@ -180,7 +180,8 @@ and the encrypted block is 514 bytes long.
|
|||||||
<p>{% trans -%}
|
<p>{% trans -%}
|
||||||
The unencrypted data in the AES block contains the following:
|
The unencrypted data in the AES block contains the following:
|
||||||
{%- endtrans %}</p>
|
{%- endtrans %}</p>
|
||||||
<pre>
|
|
||||||
|
{% highlight lang='dataspec' %}
|
||||||
+----+----+----+----+----+----+----+----+
|
+----+----+----+----+----+----+----+----+
|
||||||
|tag count| |
|
|tag count| |
|
||||||
+----+----+ +
|
+----+----+ +
|
||||||
@@ -220,7 +221,10 @@ The unencrypted data in the AES block contains the following:
|
|||||||
+----+----+----//---+----+ +
|
+----+----+----//---+----+ +
|
||||||
| Padding to 16 bytes |
|
| Padding to 16 bytes |
|
||||||
+----+----+----+----+----+----+----+----+
|
+----+----+----+----+----+----+----+----+
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
<h4>Definition</h4>
|
||||||
|
{% highlight lang='dataspec' %}
|
||||||
tag count: {% trans commonstructures=site_url('docs/spec/common-structures') -%}
|
tag count: {% trans commonstructures=site_url('docs/spec/common-structures') -%}
|
||||||
2-byte <a href="{{ commonstructures }}#type_Integer">Integer</a>, 0-200
|
2-byte <a href="{{ commonstructures }}#type_Integer">Integer</a>, 0-200
|
||||||
{%- endtrans %}
|
{%- endtrans %}
|
||||||
@@ -252,10 +256,10 @@ Padding: {% trans -%}
|
|||||||
Random data to a multiple of 16 bytes for the total length.
|
Random data to a multiple of 16 bytes for the total length.
|
||||||
May contain more than the minimum required padding.
|
May contain more than the minimum required padding.
|
||||||
{%- endtrans %}
|
{%- endtrans %}
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
{% trans %}Minimum length: 48 bytes{% endtrans %}
|
{% trans %}Minimum length: 48 bytes{% endtrans %}
|
||||||
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p>{% trans cryptography=site_url('docs/how/cryptography') -%}
|
<p>{% trans cryptography=site_url('docs/how/cryptography') -%}
|
||||||
The data is then <a href="{{ cryptography }}">AES Encrypted</a>,
|
The data is then <a href="{{ cryptography }}">AES Encrypted</a>,
|
||||||
@@ -287,7 +291,8 @@ ElGamal block.
|
|||||||
The existing session message is
|
The existing session message is
|
||||||
as follows:
|
as follows:
|
||||||
{%- endtrans %}</p>
|
{%- endtrans %}</p>
|
||||||
<pre>
|
|
||||||
|
{% highlight lang='dataspec' %}
|
||||||
+----+----+----+----+----+----+----+----+
|
+----+----+----+----+----+----+----+----+
|
||||||
| |
|
| |
|
||||||
+ +
|
+ +
|
||||||
@@ -305,15 +310,18 @@ as follows:
|
|||||||
+ +
|
+ +
|
||||||
| |
|
| |
|
||||||
+----+----+----+----+----+----+----+----+
|
+----+----+----+----+----+----+----+----+
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
<h4>Definition</h4>
|
||||||
|
{% highlight lang='dataspec' %}
|
||||||
Session Tag: {% trans commonstructures=site_url('docs/spec/common-structures') -%}
|
Session Tag: {% trans commonstructures=site_url('docs/spec/common-structures') -%}
|
||||||
A 32-byte <a href="{{ commonstructures }}#type_SessionTag">Session Tag</a>
|
A 32-byte <a href="{{ commonstructures }}#type_SessionTag">Session Tag</a>
|
||||||
previously delivered in an AES block
|
previously delivered in an AES block
|
||||||
{%- endtrans %}
|
{%- endtrans %}
|
||||||
|
|
||||||
AES Encrypyted Block: {% trans %}As specified <a href="#aes">above</a>.{% endtrans %}
|
AES Encrypyted Block: {% trans %}As specified <a href="#aes">above</a>.{% endtrans %}
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p>{% trans -%}
|
<p>{% trans -%}
|
||||||
The session tag also serves as
|
The session tag also serves as
|
||||||
|
Reference in New Issue
Block a user