a portable and fast pairing-based cryptography library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
mcl/docs/demo/she.html

41 lines
1.4 KiB

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>SHE with 1multi sample</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script type='text/javascript' src="./she_c.js"></script>
<script type='text/javascript' src="./she.js"></script>
<script type='text/javascript' src="./she-demo.js"></script>
</script>
</head>
<body>
<p>
library status <span name="status">initializing...</span>
</p>
<button type="text" id="testSHE" onclick="onClickTestSHE()">test SHE</button>
<div>
secretKey : <span name="secretKey"></span><br>
publicKey : <span name="publicKey"></span><br>
msg1 : <input type="text" name="msg1" value="1"><br>
msg2 : <input type="text" name="msg2" value="2"><br>
msg3 : <input type="text" name="msg3" value="3"><br>
msg4 : <input type="text" name="msg4" value="4"><br>
encG1(msg1) : <span name="encG11"></span><br>
encG1(msg2) : <span name="encG12"></span><br>
encG2(msg3) : <span name="encG21"></span><br>
encG2(msg4) : <span name="encG22"></span><br>
enc((msg1 + msg2) * (msg3 + msg4)) : <span name="encGT"></span><br>
dec : <span name="decMsg"></span><br>
</div>
<hr>
<button type="text" id="testSHE" onclick="onClickTestSHEclass()">test SHE class</button>
<div>
sec2 : <span name="sec2"></span><br>
pub2 : <span name="pub2"></span><br>
m2 : <span name="m2"></span><br>
c2 : <span name="c2"></span><br>
d2 : <span name="d2"></span><br>
</div>
</body>
</html>