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

Method close

modules/crypt/etc/hmac.js:78–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 this.h.write(arguments[i]);
77 };
78 close() {
79 let h = this.h;
80 let digest = h.close();
81 h.reset();
82 h.write(this.opad.buffer);
83 h.write(digest);
84 return h.close();
85 };
86 reset() {
87 this.h.reset();
88 this.h.write(this.ipad.buffer);

Callers 3

processMethod · 0.95
signMethod · 0.95
verifyMethod · 0.95

Calls 3

closeMethod · 0.65
writeMethod · 0.65
resetMethod · 0.45

Tested by

no test coverage detected