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/exported-she.js

44 lines
3.6 KiB

function define_exported_she(mod) {
_sheInit = mod.cwrap('sheInit', 'number', ['number', 'number', ])
_sheSecretKeySerialize = mod.cwrap('sheSecretKeySerialize', 'number', ['number', 'number', 'number', ])
_shePublicKeySerialize = mod.cwrap('shePublicKeySerialize', 'number', ['number', 'number', 'number', ])
_sheCipherTextG1Serialize = mod.cwrap('sheCipherTextG1Serialize', 'number', ['number', 'number', 'number', ])
_sheCipherTextG2Serialize = mod.cwrap('sheCipherTextG2Serialize', 'number', ['number', 'number', 'number', ])
_sheCipherTextGTSerialize = mod.cwrap('sheCipherTextGTSerialize', 'number', ['number', 'number', 'number', ])
_sheSecretKeyDeserialize = mod.cwrap('sheSecretKeyDeserialize', 'number', ['number', 'number', 'number', ])
_shePublicKeyDeserialize = mod.cwrap('shePublicKeyDeserialize', 'number', ['number', 'number', 'number', ])
_sheCipherTextG1Deserialize = mod.cwrap('sheCipherTextG1Deserialize', 'number', ['number', 'number', 'number', ])
_sheCipherTextG2Deserialize = mod.cwrap('sheCipherTextG2Deserialize', 'number', ['number', 'number', 'number', ])
_sheCipherTextGTDeserialize = mod.cwrap('sheCipherTextGTDeserialize', 'number', ['number', 'number', 'number', ])
sheSecretKeySetByCSPRNG = mod.cwrap('sheSecretKeySetByCSPRNG', 'number', ['number', ])
sheGetPublicKey = mod.cwrap('sheGetPublicKey', 'null', ['number', 'number', ])
sheSetRangeForDLP = mod.cwrap('sheSetRangeForDLP', 'number', ['number', 'number', ])
sheSetRangeForG1DLP = mod.cwrap('sheSetRangeForG1DLP', 'number', ['number', 'number', ])
sheSetRangeForG2DLP = mod.cwrap('sheSetRangeForG2DLP', 'number', ['number', 'number', ])
sheSetRangeForGTDLP = mod.cwrap('sheSetRangeForGTDLP', 'number', ['number', 'number', ])
sheEncG1 = mod.cwrap('sheEncG1', 'number', ['number', 'number', 'number', ])
sheEncG2 = mod.cwrap('sheEncG2', 'number', ['number', 'number', 'number', ])
sheEncGT = mod.cwrap('sheEncGT', 'number', ['number', 'number', 'number', ])
sheEnc32G1 = mod.cwrap('sheEnc32G1', 'number', ['number', 'number', 'number', ])
sheEnc32G2 = mod.cwrap('sheEnc32G2', 'number', ['number', 'number', 'number', ])
sheEnc32GT = mod.cwrap('sheEnc32GT', 'number', ['number', 'number', 'number', ])
_sheDecG1 = mod.cwrap('sheDecG1', 'number', ['number', 'number', 'number', ])
_sheDecG2 = mod.cwrap('sheDecG2', 'number', ['number', 'number', 'number', ])
_sheDecGT = mod.cwrap('sheDecGT', 'number', ['number', 'number', 'number', ])
sheAddG1 = mod.cwrap('sheAddG1', 'number', ['number', 'number', 'number', ])
sheAddG2 = mod.cwrap('sheAddG2', 'number', ['number', 'number', 'number', ])
sheAddGT = mod.cwrap('sheAddGT', 'number', ['number', 'number', 'number', ])
sheSubG1 = mod.cwrap('sheSubG1', 'number', ['number', 'number', 'number', ])
sheSubG2 = mod.cwrap('sheSubG2', 'number', ['number', 'number', 'number', ])
sheSubGT = mod.cwrap('sheSubGT', 'number', ['number', 'number', 'number', ])
sheMulG1 = mod.cwrap('sheMulG1', 'number', ['number', 'number', 'number', ])
sheMulG2 = mod.cwrap('sheMulG2', 'number', ['number', 'number', 'number', ])
sheMulGT = mod.cwrap('sheMulGT', 'number', ['number', 'number', 'number', ])
sheMul32G1 = mod.cwrap('sheMul32G1', 'number', ['number', 'number', 'number', ])
sheMul32G2 = mod.cwrap('sheMul32G2', 'number', ['number', 'number', 'number', ])
sheMul32GT = mod.cwrap('sheMul32GT', 'number', ['number', 'number', 'number', ])
sheMul = mod.cwrap('sheMul', 'number', ['number', 'number', 'number', ])
sheReRandG1 = mod.cwrap('sheReRandG1', 'number', ['number', 'number', ])
sheReRandG2 = mod.cwrap('sheReRandG2', 'number', ['number', 'number', ])
sheReRandGT = mod.cwrap('sheReRandGT', 'number', ['number', 'number', ])
}