python-pskc branch master updated. 1.0-21-g5e93d32
[
Date Prev][Date Next]
[
Thread Prev][Thread Next]
python-pskc branch master updated. 1.0-21-g5e93d32
- From: Commits of the python-pskc project <python-pskc-commits [at] lists.arthurdejong.org>
- To: python-pskc-commits [at] lists.arthurdejong.org
- Reply-to: python-pskc-users [at] lists.arthurdejong.org
- Subject: python-pskc branch master updated. 1.0-21-g5e93d32
- Date: Mon, 30 Jul 2018 17:49:05 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-pskc".
The branch, master has been updated
via 5e93d32b75ef465903037ed1ea8b61e0094e7830 (commit)
from f4b255965479993c7b46e5c6699cb620b8a3ec31 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-pskc/commit/?id=5e93d32b75ef465903037ed1ea8b61e0094e7830
commit 5e93d32b75ef465903037ed1ea8b61e0094e7830
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Mon Jul 30 17:44:16 2018 +0200
Ignore more flake8 messages
diff --git a/pskc/crypto/aeskw.py b/pskc/crypto/aeskw.py
index b141aad..48d738e 100644
--- a/pskc/crypto/aeskw.py
+++ b/pskc/crypto/aeskw.py
@@ -85,7 +85,7 @@ def wrap(plaintext, key, iv=None, pad=None,
algorithm=algorithms.AES):
for i in range(n)]
for j in range(6):
for i in range(n):
- A, R[i] = _split(encryptor.update(A + R[i]))
+ A, R[i] = _split(encryptor.update(A + R[i])) # noqa: N806
A = _strxor(A, struct.pack('>Q', n * j + i + 1)) # noqa: N806
return A + b''.join(R)
@@ -110,7 +110,7 @@ def unwrap(ciphertext, key, iv=None, pad=None,
algorithm=algorithms.AES):
n = len(ciphertext) // 8 - 1
if n == 1:
- A, plaintext = _split(decryptor.update(ciphertext))
+ A, plaintext = _split(decryptor.update(ciphertext)) # noqa: N806
else:
A = ciphertext[:8] # noqa: N806
R = [ciphertext[(i + 1) * 8:(i + 2) * 8] # noqa: N806
@@ -118,7 +118,7 @@ def unwrap(ciphertext, key, iv=None, pad=None,
algorithm=algorithms.AES):
for j in reversed(range(6)):
for i in reversed(range(n)):
A = _strxor(A, struct.pack('>Q', n * j + i + 1)) # noqa: N806
- A, R[i] = _split(decryptor.update(A + R[i]))
+ A, R[i] = _split(decryptor.update(A + R[i])) # noqa: N806
plaintext = b''.join(R)
if iv is None:
-----------------------------------------------------------------------
Summary of changes:
pskc/crypto/aeskw.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
python-pskc
--
To unsubscribe send an email to
python-pskc-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-pskc-commits/
- python-pskc branch master updated. 1.0-21-g5e93d32,
Commits of the python-pskc project