https://github.com/pyca/cryptography/pull/337