Fix nasty bug with the signature length

It is unlikely that this bug ever affected the stability of any software depending on the library, but it might have created bigger messages that required.