dchest / tweetnacl-js

Port of TweetNaCl cryptographic library to JavaScript
https://tweetnacl.js.org
The Unlicense
1.75k stars 292 forks source link

Remove useless assignment #176

Closed DanielRuf closed 4 years ago

DanielRuf commented 4 years ago

This PR removes a useless assignment as the method always return either -1or the value of n.

dchest commented 4 years ago

Thanks! It was a useless left-over from manual porting, but had a different semantics to the original C code. I've completely removed mlen.