MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / encrypt

Method encrypt

modules/crypt/etc/gcm.js:67–71  ·  view source on GitHub ↗
(data, buf)

Source from the content-addressed store, hash-verified

65 this.ctr.setIV(ArrayBuffer.fromBigInt(y1));
66 }
67 encrypt(data, buf) {
68 buf = this.ctr.encrypt(data, buf);
69 this.ghash.update(buf);
70 return buf;
71 };
72 decrypt(data, buf) {
73 this.ghash.update(data);
74 return this.ctr.decrypt(data, buf);

Callers 7

processMethod · 0.95
initMethod · 0.45
closeMethod · 0.45
packetizeFunction · 0.45
packetizeFunction · 0.45
testBlockCipherFunction · 0.45
testStreamCipherFunction · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected