Skip to content

Commit

Permalink
padding fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Nov 15, 2017
1 parent d7a732e commit 66bcdda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions libdisco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ A `libdisco.Config` is **mandatory** for setting up both clients and servers.
```
type Config struct {
HandshakePattern noiseHandshakeType
KeyPair *KeyPair
RemoteKey []byte
Prologue []byte
StaticPublicKeyProof []byte
PublicKeyVerifier func(publicKey, proof []byte) bool
HalfDuplex bool
KeyPair *KeyPair
RemoteKey []byte
Prologue []byte
StaticPublicKeyProof []byte
PublicKeyVerifier func(publicKey, proof []byte) bool
HalfDuplex bool
}
```

Expand Down
4 changes: 2 additions & 2 deletions specification/output/disco.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h1 id="protocol-naming">2. Protocol naming</h1>
<h1 id="the-strobestate-object">3. The <code>StrobeState</code> object</h1>
<p>A <code>StrobeState</code> depends on a Strobe object (as defined in <a href="https://strobe.sourceforge.io/specs/#object">section 5 of the Strobe Specification</a>) as well as the following associated constant:</p>
<ul>
<li><strong><code>R</code></strong>: The blocksize of the Strobe state (computed as <code>N - (2*sec)/8 - 2</code>, <a href="https://strobe.sourceforge.io/specs/#params">see section 4 of the Strobe specification</a>).</li>
<li><strong><code>StrobeR</code></strong>: The blocksize of the Strobe state (computed as <code>N - (2*sec)/8 - 2</code>, <a href="https://strobe.sourceforge.io/specs/#params">see section 4 of the Strobe specification</a>).</li>
</ul>
<p>While a Strobe object responds to many functions (<a href="https://strobe.sourceforge.io/">see Strobe's specification</a>), only the following ones need to be implemented in order for the Disco extension to work properly:</p>
<p><strong><code>InitializeStrobe(protocol_name)</code></strong>: Initialize the Strobe object with a custom protocol name.</p>
Expand Down Expand Up @@ -139,7 +139,7 @@ <h1 id="modifications-to-the-symmetric-state">5. Modifications to the Symmetric
<ul>
<li>Let <code>s1</code> be the Strobe state and <code>s2</code> the result returned by <code>Clone()</code>.</li>
<li>Calls <code>meta_AD(&quot;initiator&quot;)</code> on <code>s1</code> and <code>meta_AD(&quot;responder&quot;)</code> on <code>s2</code>.</li>
<li>Calls <code>RATCHET(R)</code> on <code>s1</code> and on <code>s2</code>.</li>
<li>Calls <code>RATCHET(StrobeR)</code> on <code>s1</code> and on <code>s2</code>.</li>
<li>Returns the pair <code>(s1, s2)</code>.</li>
</ul>
<h1 id="modifications-to-advanced-features">6. Modifications to Advanced Features</h1>
Expand Down
Binary file modified specification/output/disco.pdf
Binary file not shown.

0 comments on commit 66bcdda

Please sign in to comment.