Descriptioncrypto/ecdsa: hashToInt() mishandles curves with BitLen() % 8 > 0
hashToInt() should only calculate excess bit length when the hash
length exceeds the curve length. Otherwise non-truncated hashes will
be right shifted when they shouldn't be. Currently, this only impacts
the P521 curve.
Patch Set 1 #Patch Set 2 : diff -r 3ce27769ca65 https://code.google.com/p/go/ #Patch Set 3 : diff -r 3ce27769ca65 https://code.google.com/p/go/ #MessagesTotal messages: 4
|