Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
options.encrypt_buffer = function (chunk) {
return crypto_utils.encryptBufferWithDerivedKeys(chunk, derivedKeys);
};
options.encryptBufferFunc = (chunk: Buffer) => encryptBufferWithDerivedKeys(chunk, derivedKeys);
encryptBufferFunc: (chunk: Buffer) => encryptBufferWithDerivedKeys(chunk, derivedKeys),
plainBlockSize: derivedKeys.encryptingBlockSize,
encrypt_buffer: function (chunk) {
return crypto_utils.encryptBufferWithDerivedKeys(chunk, derivedKeys);
}
});