diff options
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 7e619a10..7da0ae25 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -1033,6 +1033,8 @@ class Backend(object): assert bn_ctx != self._ffi.NULL bn_ctx = self._ffi.gc(bn_ctx, self._lib.BN_CTX_free) + self._lib.BN_CTX_start(bn_ctx) + group = self._lib.EC_KEY_get0_group(ctx) assert group != self._ffi.NULL @@ -1069,6 +1071,8 @@ class Backend(object): self._lib.BN_cmp(bn_y, check_y) == 0 ) + self._lib.BN_CTX_end(bn_ctx) + res = self._lib.EC_KEY_set_public_key(ctx, point) assert res == 1 |