forked from I2P_Developers/i2p.www
prop 147 formatting
This commit is contained in:
@@ -123,9 +123,9 @@ Existing:
|
|||||||
{% highlight lang='dataspec' %}
|
{% highlight lang='dataspec' %}
|
||||||
HMAC-MD5(encryptedPayload + IV + (payloadLength ^ protocolVersion), macKey)
|
HMAC-MD5(encryptedPayload + IV + (payloadLength ^ protocolVersion), macKey)
|
||||||
|
|
||||||
'+' means append and '^' means exclusive-or.
|
'+' means append and '^' means exclusive-or.
|
||||||
payloadLength is a 2 byte unsigned integer
|
payloadLength is a 2 byte unsigned integer
|
||||||
protocolVersion is two bytes 0x0000
|
protocolVersion is two bytes 0x0000
|
||||||
|
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -136,10 +136,10 @@ New:
|
|||||||
{% highlight lang='dataspec' %}
|
{% highlight lang='dataspec' %}
|
||||||
HMAC-MD5(encryptedPayload + IV + (payloadLength ^ protocolVersion ^ ((netid - 2) << 1)), macKey)
|
HMAC-MD5(encryptedPayload + IV + (payloadLength ^ protocolVersion ^ ((netid - 2) << 1)), macKey)
|
||||||
|
|
||||||
'+' means append, '^' means exclusive-or, '<<' means left shift.
|
'+' means append, '^' means exclusive-or, '<<' means left shift.
|
||||||
payloadLength is a 2 byte unsigned integer
|
payloadLength is a 2 byte unsigned integer
|
||||||
protocolVersion is two bytes 0x0000
|
protocolVersion is two bytes 0x0000
|
||||||
netid is a 1 byte unsigned integer
|
netid is a 1 byte unsigned integer
|
||||||
|
|
||||||
|
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
Reference in New Issue
Block a user