-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.wrong repoIssues that should be opened in another repository.Issues that should be opened in another repository.
Description
Ciao!
How are you?
- Version:
8.3.0 - Platform:
Linux workstation 4.10.0-30-generic fix LICENSE #34~16.04.1-Ubuntu SMP Wed Aug 2 02:13:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux - Subsystem:
Linux Mint / Debian / Windows etc..
I have been using my own crypto based on AES, with an additional 512 rounds, but my program is not working anymore and have no idea to get around this, the error:
patrikx3@workstation:~/ramdisk$ ~/Projects/patrikx3/p3x/aes-folder/index.js
Generated command:
krip read krip.krip
Password? ****************
_stream_writable.js:274
ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
^
RangeError: Maximum call stack size exceeded
at Decipher.Writable.write (_stream_writable.js:274:11)
at Decipher.ondata (_stream_readable.js:628:20)
at emitOne (events.js:115:13)
at Decipher.emit (events.js:210:7)
at addChunk (_stream_readable.js:252:12)
at readableAddChunk (_stream_readable.js:239:11)
at Decipher.Readable.push (_stream_readable.js:197:10)
at Decipher.Transform.push (_stream_transform.js:147:32)
at Decipher._transform (crypto.js:150:8)
at Decipher.Transform._read (_stream_transform.js:186:10)
The not liking code is:
const settings = require('./settings');
module.exports = (crypto, cipherPipe, password) => {
const roundCipher = (lastCipherPipe) => {
const newCipher = crypto(settings.cypher, password);
newCipher.on('error', (err) => {throw err} );
return lastCipherPipe.pipe(newCipher)
}
let round = 0;
while(round++ < settings.rounds) {
cipherPipe = roundCipher(cipherPipe);
}
return cipherPipe;
}
Metadata
Metadata
Assignees
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.wrong repoIssues that should be opened in another repository.Issues that should be opened in another repository.