Skip to content

Commit b882378

Browse files
committed
allow creation of malformed instances of DSA keys for testing
1 parent eace860 commit b882378

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tlslite/utils/python_dsakey.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ def __init__(self, p=0, q=0, g=0, x=0, y=0):
3535
self.public_key = y
3636
self.key_type = "dsa"
3737

38-
if p and q and p < q:
39-
raise ValueError("q is greater than p")
40-
4138
def __len__(self):
4239
return numBits(self.p)
4340

0 commit comments

Comments
 (0)