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

33 lines
1.1 KiB

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>SHE with 1multi sample</title>
<script type='text/javascript' src="./exported-she.js"></script>
<script type='text/javascript' src="./mclshe.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>
mul((c11 + c12) * (c21 + c22)) : <span name="encGT"></span><br>
dec : <span name="decMsg"></span><br>
</div>
<hr>
</body>
</html>