[js] rename pub.enc to pub.encG1

dev
MITSUNARI Shigeo 7 years ago
parent 204126a143
commit c5af29d908
  1. 2
      docs/demo/she-demo.js
  2. 2
      docs/demo/she.js

@ -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) {

Loading…
Cancel
Save