diff options
author | gpotter2 <gabriel@potter.fr> | 2018-01-17 17:37:32 +0100 |
---|---|---|
committer | gpotter2 <gabriel@potter.fr> | 2018-01-18 20:00:56 +0100 |
commit | 74cce696b9c21b3aa43823c16964e423b45dbfdd (patch) | |
tree | a69331944233882f98b4e66b0bf872e00ab62ece /scapy | |
parent | 7698bba2e6a9cfeae9a1d575cf97870c8dec09f7 (diff) | |
download | scapy-74cce696b9c21b3aa43823c16964e423b45dbfdd.tar.gz |
Small format fix
Diffstat (limited to 'scapy')
-rw-r--r-- | scapy/layers/tls/cert.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scapy/layers/tls/cert.py b/scapy/layers/tls/cert.py index b2abec6f..acd771a0 100644 --- a/scapy/layers/tls/cert.py +++ b/scapy/layers/tls/cert.py @@ -279,9 +279,9 @@ class PubKeyRSA(PubKey, _EncryptAndVerifyRSA): def import_from_tuple(self, tup): # this is rarely used e, m, mLen = tup - if isinstance(m, (str, bytes)): + if isinstance(m, bytes): m = pkcs_os2ip(m) - if isinstance(e, (str, bytes)): + if isinstance(e, bytes): e = pkcs_os2ip(e) self.fill_and_store(modulus=m, pubExp=e) self.pem = self.pubkey.public_bytes( |