ecdsa_mode didn't exists earlier, so no need for deprecated compat function.
SSL.sslfile: Make sure not to hang on destruct.

The destruct callbac could hang in the local backend when attempting
to close the connection cleanly. Make sure that the local backend
doesn't wait for I/O completion in this case.

Fixes [bug 7066].
Significantly faster HMAC_sha calculation.
Faster encrypt_packet, using the C padding code
Explicitly mark generic_extract as inline.
Significantly faster Crypto.Buffer.crypt for the most common cases.

Somewhat faster for the less common ones.
Added PAD_TLS. Works as PAD_SSL did. Changed PAD_SSL to not verify the padding.
Make the pad type explicit. Removed unused tls_pad function.
Try harder to be constant time.
Use C version of unpad as well.
Removed a few lines too much.