[js] rename files

dev
MITSUNARI Shigeo 7 years ago
parent 8ff379387e
commit f274a57db5
  1. 14
      docs/demo/mclshe.js
  2. 56
      docs/demo/she-ja.html
  3. 14
      docs/demo/she_c.js
  4. BIN
      docs/demo/she_c.wasm

File diff suppressed because one or more lines are too long

@ -1,56 +0,0 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Two-level Homomorphic Encryption demo</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type='text/javascript' src="jquery-3.2.1.min.js"></script>
<script type='text/javascript' src="mclshe.js"></script>
<script type='text/javascript' src="she.js"></script>
<script type="text/javascript" src="she-demo2.js"></script>
</head>
<body>
<h1>レベル2の準同型暗号デモ</h1>
<div>
ライブラリの状態 <span name="status">初期化中</span>
</div>
<div id="left">
<h2>クライアント</h2>
秘密鍵 : <div name="sec" class="hex"></div>
<table border=1 id="client_table" width="100%" summary="client">
<tr id="client_header"><th>x(喫煙)<th>y(肺癌)<th class="hex">EncG1(x)<th class="hex">EncG2(y)</tr>
</table>
<input type="text" name="append" value="1,1">
<button type="button" onclick="append()">1. 行を追加する</button>
<br>
<button type="button" onclick="send()">2. サーバに送信する</button>
<div>暗号文を受信する</div>
<div name="encSumC" class="hex">0</div>
<button type="button" onclick="dec()">6. 暗号文を復号する</button><br>
喫煙で肺癌になった人数<div name="ret">0</div>
</div>
<div id="middle">
</div>
<div id="right">
<h2>サーバ</h2>
公開鍵 : <div name="pub" class="hex"></div>
<table border=1 id="server_table" width="100%" summary="server">
</table>
<button type="button" onclick="mul()">3. EncG1(x)とEncG2(y)を掛けてEncGT(x * y)にする(=各行が喫煙で肺癌になっかどうか)</button><br>
<button type="button" onclick="sum()">4. EncGT(x * y)の総和をとる(喫煙で肺癌になった人数)</button>
<div>暗号文の集計結果</div>
<div name="encSumS" class="hex">0</div>
<button type="button" onclick="recv()">5. 結果をクライアントに送信する</button>
</div>
</body>
</html>

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save