corrected examples

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3980 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2010-02-22 05:01:37 +00:00
parent 64bf9908af
commit d980f24094
1 changed files with 4 additions and 4 deletions

View File

@ -148,9 +148,9 @@
sending any session errors as specially-formatted identifiers. sending any session errors as specially-formatted identifiers.
</p> </p>
<p>The client sends requests with bodies in the following format:</p> <p>The client sends requests with bodies in the following format:</p>
<example caption="Request Format"> <code>
identifier ; key [ ; new_key] , [xml_body] identifier ; key [ ; new_key] , [xml_body]
</example> </code>
<p>If the identifier is zero, key indicates an initial key. In this case, <p>If the identifier is zero, key indicates an initial key. In this case,
new_key should not be specified, and must be ignored.</p> new_key should not be specified, and must be ignored.</p>
<table caption="Request Values"> <table caption="Request Values">
@ -231,10 +231,10 @@
sending messages and receiving incoming traffic from another machine. sending messages and receiving incoming traffic from another machine.
</p> </p>
<p>The key algorithm should be familiar with those with knowledge of Jabber zero-knowledge authentication.</p> <p>The key algorithm should be familiar with those with knowledge of Jabber zero-knowledge authentication.</p>
<example caption="Key Algorithm"> <code>
K(n, seed) = Base64Encode(SHA1(K(n - 1, seed))), for n &gt; 0 K(n, seed) = Base64Encode(SHA1(K(n - 1, seed))), for n &gt; 0
K(0, seed) = seed, which is client-determined K(0, seed) = seed, which is client-determined
</example> </code>
<p>Note: Base64 encoding is defined in &rfc3548;. SHA1 is defined in &rfc3174;.</p> <p>Note: Base64 encoding is defined in &rfc3548;. SHA1 is defined in &rfc3174;.</p>
<p> <p>
No framing is implied by a single request or reply. A single request can No framing is implied by a single request or reply. A single request can