Oddbean new post about | logout
 I assume this is the code you are looking for?

https://git.vaughnnugent.com/cgit/vnuge/noscrypt.git/tree/src/noscrypt.c#n189 
 yes that's the one, thanks!