Skip to content

Commit

Permalink
Fix #194: Remove debug logging from rsa/key.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sybrenstuvel committed Mar 13, 2022
1 parent b1679ec commit 6391b1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
- Use the Chinese Remainder Theorem when decrypting with a private key. This
makes decryption 2-4x faster
([#163](https://github.com/sybrenstuvel/python-rsa/pull/163)).
- Remove debug logging from `rsa/key.py`
([#194](https://github.com/sybrenstuvel/python-rsa/pull/194)).

## Version 4.7.2 - released 2021-02-24

Expand Down
4 changes: 0 additions & 4 deletions rsa/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"""

import logging
import threading
import typing
import warnings
Expand All @@ -43,7 +42,6 @@
import rsa.core


log = logging.getLogger(__name__)
DEFAULT_EXPONENT = 65537


Expand Down Expand Up @@ -669,9 +667,7 @@ def find_p_q(
qbits = nbits - shift

# Choose the two initial primes
log.debug("find_p_q(%i): Finding p", nbits)
p = getprime_func(pbits)
log.debug("find_p_q(%i): Finding q", nbits)
q = getprime_func(qbits)

def is_acceptable(p: int, q: int) -> bool:
Expand Down

0 comments on commit 6391b1a

Please sign in to comment.