[js] update doc in she2.html

dev
MITSUNARI Shigeo 7 years ago
parent f7c8fc96ae
commit 9501612d55
  1. 6
      docs/demo/she2.html

@ -26,7 +26,7 @@ secretKey : <div name="sec" class="hex"></div>
<tr id="client_header"><th>x<th>y<th class="hex">EncG1(x)<th class="hex">EncG2(y)</tr> <tr id="client_header"><th>x<th>y<th class="hex">EncG1(x)<th class="hex">EncG2(y)</tr>
</table> </table>
<input type="text" name="append" value="1,1"> <input type="text" name="append" value="1,1">
<button type="button" onclick="append()">1. append</button> <button type="button" onclick="append()">1. append "x,y" and encrypt them (multiple times)</button>
<br> <br>
<button type="button" onclick="send()">2. send to server</button> <button type="button" onclick="send()">2. send to server</button>
<div>received ciphertext</div> <div>received ciphertext</div>
@ -46,8 +46,8 @@ publicKey : <div name="pub" class="hex"></div>
<table border=1 id="server_table" width="100%" summary="server"> <table border=1 id="server_table" width="100%" summary="server">
</table> </table>
<button type="button" onclick="mul()">3. compute EncGT(x * y) := EncG1(x) * EncG2(y)</button><br> <button type="button" onclick="mul()">3. compute EncGT(x * y) := EncG1(x) * EncG2(y) for eacy row</button><br>
<button type="button" onclick="sum()">4. sum Enc(x * y)</button> <button type="button" onclick="sum()">4. sum of all values in EncGT(x * y) colomn</button>
<div>result</div> <div>result</div>
<div name="encSumS" class="hex">0</div> <div name="encSumS" class="hex">0</div>
<button type="button" onclick="recv()">5. return to client</button> <button type="button" onclick="recv()">5. return to client</button>

Loading…
Cancel
Save