The built-in hmac module in python performs the initialisation of the HMAC in pure python code. Implement an abstraction layer that uses m2crypto or pyca/cryptography as the concrete implementation. That should speed up handshaking and CBC ciphers a bit.
The built-in
hmacmodule in python performs the initialisation of the HMAC in pure python code. Implement an abstraction layer that uses m2crypto or pyca/cryptography as the concrete implementation. That should speed up handshaking and CBC ciphers a bit.