|
112 | 112 |
|
113 | 113 |
|
114 | 114 |
|
115 | | -class _Cipher(object): |
| 115 | +class _Cipher: |
116 | 116 | """ |
117 | 117 | A **PEP 272: Block Encryption Algorithms** compliant |
118 | 118 | **Symmetric Key Cipher**. |
@@ -275,7 +275,7 @@ def _decrypt(self, destination, source): |
275 | 275 | raise ValueError("Invalid mode associated to cipher") |
276 | 276 |
|
277 | 277 | if _lib.AES_SIV_ENABLED: |
278 | | - class AesSiv(object): |
| 278 | + class AesSiv: |
279 | 279 | """ |
280 | 280 | AES-SIV (Synthetic Initialization Vector) implementation as described in RFC 5297. |
281 | 281 | """ |
@@ -383,7 +383,7 @@ def _prepare_associated_data(associated_data): |
383 | 383 |
|
384 | 384 |
|
385 | 385 | if _lib.AESGCM_STREAM_ENABLED: |
386 | | - class AesGcmStream(object): |
| 386 | + class AesGcmStream: |
387 | 387 | """ |
388 | 388 | AES GCM Stream |
389 | 389 | """ |
@@ -540,7 +540,7 @@ def set_iv(self, nonce, counter = 0): |
540 | 540 | self._set_key(0) |
541 | 541 |
|
542 | 542 | if _lib.CHACHA20_POLY1305_ENABLED: |
543 | | - class ChaCha20Poly1305(object): |
| 543 | + class ChaCha20Poly1305: |
544 | 544 | """ |
545 | 545 | ChaCha20-Poly1305 AEAD cipher. |
546 | 546 |
|
@@ -645,7 +645,7 @@ def _decrypt(self, destination, source): |
645 | 645 |
|
646 | 646 |
|
647 | 647 | if _lib.RSA_ENABLED: |
648 | | - class _Rsa(object): # pylint: disable=too-few-public-methods |
| 648 | + class _Rsa: # pylint: disable=too-few-public-methods |
649 | 649 | RSA_MIN_PAD_SIZE = 11 |
650 | 650 | _mgf = None |
651 | 651 | _hash_type = None |
@@ -1006,7 +1006,7 @@ def sign_pss(self, plaintext): |
1006 | 1006 |
|
1007 | 1007 |
|
1008 | 1008 | if _lib.ECC_ENABLED: |
1009 | | - class _Ecc(object): # pylint: disable=too-few-public-methods |
| 1009 | + class _Ecc: # pylint: disable=too-few-public-methods |
1010 | 1010 | def __init__(self): |
1011 | 1011 | self.native_object = _ffi.new("ecc_key *") |
1012 | 1012 | ret = _lib.wc_ecc_init(self.native_object) |
@@ -1352,7 +1352,7 @@ def sign_raw(self, plaintext, rng=Random()): |
1352 | 1352 |
|
1353 | 1353 |
|
1354 | 1354 | if _lib.ED25519_ENABLED: |
1355 | | - class _Ed25519(object): # pylint: disable=too-few-public-methods |
| 1355 | + class _Ed25519: # pylint: disable=too-few-public-methods |
1356 | 1356 | def __init__(self): |
1357 | 1357 | self.native_object = _ffi.new("ed25519_key *") |
1358 | 1358 | ret = _lib.wc_ed25519_init(self.native_object) |
@@ -1542,7 +1542,7 @@ def sign(self, plaintext): |
1542 | 1542 | return _ffi.buffer(signature, signature_size[0])[:] |
1543 | 1543 |
|
1544 | 1544 | if _lib.ED448_ENABLED: |
1545 | | - class _Ed448(object): # pylint: disable=too-few-public-methods |
| 1545 | + class _Ed448: # pylint: disable=too-few-public-methods |
1546 | 1546 | def __init__(self): |
1547 | 1547 | self.native_object = _ffi.new("ed448_key *") |
1548 | 1548 | ret = _lib.wc_ed448_init(self.native_object) |
@@ -1762,7 +1762,7 @@ class MlKemType(IntEnum): |
1762 | 1762 | ML_KEM_768 = _lib.WC_ML_KEM_768 |
1763 | 1763 | ML_KEM_1024 = _lib.WC_ML_KEM_1024 |
1764 | 1764 |
|
1765 | | - class _MlKemBase(object): |
| 1765 | + class _MlKemBase: |
1766 | 1766 | INVALID_DEVID = _lib.INVALID_DEVID |
1767 | 1767 |
|
1768 | 1768 | def __init__(self, mlkem_type): |
@@ -2045,7 +2045,7 @@ class MlDsaType(IntEnum): |
2045 | 2045 | ML_DSA_65 = _lib.WC_ML_DSA_65 |
2046 | 2046 | ML_DSA_87 = _lib.WC_ML_DSA_87 |
2047 | 2047 |
|
2048 | | - class _MlDsaBase(object): |
| 2048 | + class _MlDsaBase: |
2049 | 2049 | INVALID_DEVID = _lib.INVALID_DEVID |
2050 | 2050 |
|
2051 | 2051 | def __init__(self, mldsa_type): |
|
0 commit comments