News for hackers. Stuff that matters.
Re:Backdoor in event-stream library dependency by regularfry on Monday November 26, 2018 @12:29PM (#18535036)
That just looks like a convenience function to me. Rather than passing 1,2,4,8,16 in as the value of N, you pass in 0,1,2,3,4. Has the benefit that it's not possible to pass in a number that's not a power of 2 (which might not be valid, I don't know how scrypt works).
Re:Backdoor in event-stream library dependency by CiPHPerCoder on Monday November 26, 2018 @12:32PM (#18535079)
IIRC scrypt is only defined for powers of 2 for N.