Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/build_ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def wolfssl_lib_dir(local_wolfssl=None, fips=False):
lib_names.append("libwolfssl.so")

found = False
for root, dirs, files in os.walk(local_wolfssl):
for root, _dirs, files in os.walk(local_wolfssl):
for name in lib_names:
if name in files:
lib_dir = root
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ciphers.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def test_ecc_sign_verify_raw(ecc_private, ecc_public):

# invalid signature
ret = ecc_public.verify_raw(r, s[:-1], plaintext)
assert ret == False
assert not ret

# private object holds both private and public info, so it can also verify
# using the known public key.
Expand Down
2 changes: 1 addition & 1 deletion wolfcrypt/ciphers.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def encrypt(self, string):
raise ValueError(
"empty string not allowed")

if len(string) % self.block_size and not self.mode == MODE_CTR and not "ChaCha" in self._native_type:
if len(string) % self.block_size and not self.mode == MODE_CTR and "ChaCha" not in self._native_type:
raise ValueError(
"string must be a multiple of %d in length" % self.block_size)

Expand Down
Loading