News for hackers. Stuff that matters.
Re:KeePass – questionable security by jarito on Tuesday June 16, 2015 @01:57PM (#9727587)
I assume that they are implying that the code is not constant time. In this snippet, the code bails as soon as a deviation is detected. This can, in theory, allow an attacker to determine the desired value by measuring the time taken to reject incorrect options. I haven't reviewed the code to see if this is actually a problem, but that's my guess for why it was highlighted.
Re:KeePass – questionable security by mc808 on Tuesday June 16, 2015 @02:12PM (#9727700)
I took it to mean they should use the Linq `x.SequenceEqual(y)` instead (assuming .NET 3.5+) (and x isn't null...).
Re:KeePass – questionable security by sdrapkin on Tuesday June 16, 2015 @02:16PM (#9727742)
Wrong.