MCPcopy Index your code
hub / github.com/nodejs/node / updateFinal

Function updateFinal

test/parallel/test-crypto-keyobject-hidden-slots.js:34–36  ·  view source on GitHub ↗
(cipher, data = Buffer.alloc(16))

Source from the content-addressed store, hash-verified

32const fixtures = require('../common/fixtures');
33
34function updateFinal(cipher, data = Buffer.alloc(16)) {
35 return Buffer.concat([cipher.update(data), cipher.final()]);
36}
37
38{
39 const secret = createSecretKey(Buffer.alloc(16));

Calls 4

allocMethod · 0.80
concatMethod · 0.80
updateMethod · 0.65
finalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…