Fix ECDSA 521 bit signing.
This fix also allows the creation and use of an 521 bit ECDH key which used to fail while creating the binding signature.