Skip to content

Commit

Permalink
Disable OpenSSL 3 RSA key blinding to speed up unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ronf committed Jun 10, 2022
1 parent 34137ec commit aa465c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015-2020 by Ron Frederick <ronf@timeheart.net> and others.
# Copyright (c) 2015-2022 by Ron Frederick <ronf@timeheart.net> and others.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v2.0 which accompanies this
Expand Down Expand Up @@ -31,6 +31,8 @@

from unittest.mock import patch

from cryptography.hazmat.backends.openssl import backend

# pylint: disable=unused-import

try:
Expand Down Expand Up @@ -72,6 +74,13 @@
# pylint: enable=no-member


# pylint: disable=protected-access

# Disable RSA key blinding to speed up unit tests
backend._rsa_skip_check_key = True

# pylint: enable=protected-access

_test_keys = {}


Expand Down

0 comments on commit aa465c8

Please sign in to comment.