@ -110,7 +110,7 @@ function onClickTestSHEclass() {
setText('pub2', Uint8ArrayToHexString(pub.serialize()))
let m = 15
setText('m2', m)
let c = pub.enc(m)
let c = pub.encG1(m)
setText('c2', Uint8ArrayToHexString(c.serialize()))
if (0) {
let s1 = sheSecretKey_malloc()
@ -285,7 +285,7 @@
mod.Runtime.stackRestore(stack)
return pub
}
she.PublicKey.prototype.enc = function(m) {
she.PublicKey.prototype.encG1 = function(m) {
return she.callEnc(sheEnc32G1, she.CipherTextG1, this.a_, m)
she.SecretKey.prototype.dec = function(c) {