Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brunneis committed Jun 1, 2021
1 parent 1b5ac9f commit 5fd0b03
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 2 additions & 3 deletions digsig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from . import *
from .auto import *
from .auto import PrivateKey as PrivateKeyAuto
from .auto import PublicKey as PublicKeyAuto

__version__ = '1.215.1'

__version__ = '1.216.0'
10 changes: 8 additions & 2 deletions digsig/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def get_instance(

raise ValueError

# Backwards compatible
PublicKeyAuto = PublicKey


class PrivateKey:
@staticmethod
Expand Down Expand Up @@ -91,7 +94,7 @@ def get_instance(
raise ValueError
elif mode in RsaModes.options():
private_key_class = RsaPrivateKey
if key_format not in EcdsaFormats.options():
if key_format not in RsaFormats.options():
raise ValueError
else:
raise ValueError
Expand All @@ -103,4 +106,7 @@ def get_instance(
key_format=key_format,
)

raise ValueError
raise ValueError

# Backwards compatible
PrivateKeyAuto = PrivateKey
1 change: 0 additions & 1 deletion digsig/rsa.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from build.lib.digsig.ecdsa import EcdsaFormats
from .hashing import hash_message
from .digsig import PublicKeyInterface, PrivateKeyInterface
from .errors import InvalidSignatureError
Expand Down

0 comments on commit 5fd0b03

Please sign in to comment.