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

Method decrypt

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

Source from the content-addressed store, hash-verified

70 return buf;
71 };
72 decrypt(data, buf) {
73 this.ghash.update(data);
74 return this.ctr.decrypt(data, buf);
75 };
76 close() {
77 let t = this.ghash.close();
78 return Bin.xor(t, this.block.encrypt(this.y0));

Callers 3

processMethod · 0.95
unpacketizeFunction · 0.45
testBlockCipherFunction · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected