pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/py-axolotl py-axolotl: updated to 0.2.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b1dbec4eb6c1
branches:  trunk
changeset: 459164:b1dbec4eb6c1
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Sep 30 18:57:26 2021 +0000

description:
py-axolotl: updated to 0.2.3

0.2.3
- Apply padding also to messages of blocksize (16 bytes) length before
encryption

0.2.2
- Fixed error when plaintext to encrypt does not need padding

0.2.1
- Fixed error when signed prekey id is zero

0.2.0
- All operations are now to be done on bytes (which is str in py2),
removing all the need for decode/encode mumbo jumbo that was used in this lib
- Updated implementation of KeyHelper.generateRegistrationId to generate
values up to 16380 by default, and allow extending to 2147483647
- v2 messages are now not supported
- Use PKCS7 from cryptography lib for padding instead of own
implementation.

diffstat:

 chat/py-axolotl/Makefile |   11 +-
 chat/py-axolotl/PLIST    |  542 +++++++++++++++++++++++-----------------------
 chat/py-axolotl/distinfo |   10 +-
 3 files changed, 282 insertions(+), 281 deletions(-)

diffs (truncated from 596 to 300 lines):

diff -r 03d9b1ede878 -r b1dbec4eb6c1 chat/py-axolotl/Makefile
--- a/chat/py-axolotl/Makefile  Thu Sep 30 18:56:14 2021 +0000
+++ b/chat/py-axolotl/Makefile  Thu Sep 30 18:57:26 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2018/09/19 20:39:52 nia Exp $
+# $NetBSD: Makefile,v 1.2 2021/09/30 18:57:26 adam Exp $
 
-PKGNAME=       ${PYPKGPREFIX}-axolotl-0.1.42
-DISTNAME=      python-axolotl-${PKGVERSION}
+DISTNAME=      python-axolotl-0.2.3
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python-//}
 CATEGORIES=    chat security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-axolotl/}
 
@@ -10,12 +10,13 @@
 COMMENT=       Python port of the ratcheting forward secrecy protocol
 LICENSE=       gnu-gpl-v3
 
+DEPENDS+=      ${PYPKGPREFIX}-axolotl-curve25519>=0.4.1:../../chat/py-axolotl-curve25519
 DEPENDS+=      ${PYPKGPREFIX}-cryptography-[0-9]*:../../devel/py-protobuf
 DEPENDS+=      ${PYPKGPREFIX}-protobuf>=3.0.0:../../devel/py-protobuf
 
 USE_LANGUAGES= # none
 
-.include "../../chat/py-axolotl-curve25519/buildlink3.mk"
+PYTHON_VERSIONS_INCOMPATIBLE=   27 # py-protobuf
+
 .include "../../lang/python/egg.mk"
-.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 03d9b1ede878 -r b1dbec4eb6c1 chat/py-axolotl/PLIST
--- a/chat/py-axolotl/PLIST     Thu Sep 30 18:56:14 2021 +0000
+++ b/chat/py-axolotl/PLIST     Thu Sep 30 18:57:26 2021 +0000
@@ -1,276 +1,276 @@
-@comment $NetBSD: PLIST,v 1.1 2018/09/19 20:39:52 nia Exp $
-${PYSITELIB}/axolotl/__init__.py
-${PYSITELIB}/axolotl/__init__.pyo
-${PYSITELIB}/axolotl/__init__.pyc
-${PYSITELIB}/axolotl/axolotladdress.pyo
-${PYSITELIB}/axolotl/axolotladdress.pyc
-${PYSITELIB}/axolotl/duplicatemessagexception.pyo
-${PYSITELIB}/axolotl/duplicatemessagexception.pyc
-${PYSITELIB}/axolotl/identitykey.pyo
-${PYSITELIB}/axolotl/identitykey.pyc
-${PYSITELIB}/axolotl/identitykeypair.pyo
-${PYSITELIB}/axolotl/identitykeypair.pyc
-${PYSITELIB}/axolotl/invalidkeyexception.pyo
-${PYSITELIB}/axolotl/invalidkeyexception.pyc
-${PYSITELIB}/axolotl/invalidkeyidexception.pyo
-${PYSITELIB}/axolotl/invalidkeyidexception.pyc
-${PYSITELIB}/axolotl/invalidmessageexception.pyo
-${PYSITELIB}/axolotl/invalidmessageexception.pyc
-${PYSITELIB}/axolotl/invalidversionexception.pyo
-${PYSITELIB}/axolotl/invalidversionexception.pyc
-${PYSITELIB}/axolotl/legacymessageexception.pyo
-${PYSITELIB}/axolotl/legacymessageexception.pyc
-${PYSITELIB}/axolotl/nosessionexception.pyo
-${PYSITELIB}/axolotl/nosessionexception.pyc
-${PYSITELIB}/axolotl/sessionbuilder.pyo
-${PYSITELIB}/axolotl/sessionbuilder.pyc
-${PYSITELIB}/axolotl/sessioncipher.pyo
-${PYSITELIB}/axolotl/sessioncipher.pyc
-${PYSITELIB}/axolotl/statekeyexchangeexception.pyo
-${PYSITELIB}/axolotl/statekeyexchangeexception.pyc
-${PYSITELIB}/axolotl/untrustedidentityexception.pyo
-${PYSITELIB}/axolotl/untrustedidentityexception.pyc
-${PYSITELIB}/axolotl/axolotladdress.py
-${PYSITELIB}/axolotl/duplicatemessagexception.py
-${PYSITELIB}/axolotl/ecc/__init__.py
-${PYSITELIB}/axolotl/ecc/__init__.pyo
-${PYSITELIB}/axolotl/ecc/__init__.pyc
-${PYSITELIB}/axolotl/ecc/curve.pyo
-${PYSITELIB}/axolotl/ecc/curve.pyc
-${PYSITELIB}/axolotl/ecc/djbec.pyo
-${PYSITELIB}/axolotl/ecc/djbec.pyc
-${PYSITELIB}/axolotl/ecc/ec.pyo
-${PYSITELIB}/axolotl/ecc/ec.pyc
-${PYSITELIB}/axolotl/ecc/eckeypair.pyo
-${PYSITELIB}/axolotl/ecc/eckeypair.pyc
-${PYSITELIB}/axolotl/ecc/curve.py
-${PYSITELIB}/axolotl/ecc/djbec.py
-${PYSITELIB}/axolotl/ecc/ec.py
-${PYSITELIB}/axolotl/ecc/eckeypair.py
-${PYSITELIB}/axolotl/groups/__init__.py
-${PYSITELIB}/axolotl/groups/__init__.pyo
-${PYSITELIB}/axolotl/groups/__init__.pyc
-${PYSITELIB}/axolotl/groups/groupcipher.pyo
-${PYSITELIB}/axolotl/groups/groupcipher.pyc
-${PYSITELIB}/axolotl/groups/groupsessionbuilder.pyo
-${PYSITELIB}/axolotl/groups/groupsessionbuilder.pyc
-${PYSITELIB}/axolotl/groups/senderkeyname.pyo
-${PYSITELIB}/axolotl/groups/senderkeyname.pyc
-${PYSITELIB}/axolotl/groups/groupcipher.py
-${PYSITELIB}/axolotl/groups/groupsessionbuilder.py
-${PYSITELIB}/axolotl/groups/ratchet/__init__.py
-${PYSITELIB}/axolotl/groups/ratchet/__init__.pyo
-${PYSITELIB}/axolotl/groups/ratchet/__init__.pyc
-${PYSITELIB}/axolotl/groups/ratchet/senderchainkey.pyo
-${PYSITELIB}/axolotl/groups/ratchet/senderchainkey.pyc
-${PYSITELIB}/axolotl/groups/ratchet/sendermessagekey.pyo
-${PYSITELIB}/axolotl/groups/ratchet/sendermessagekey.pyc
-${PYSITELIB}/axolotl/groups/ratchet/senderchainkey.py
-${PYSITELIB}/axolotl/groups/ratchet/sendermessagekey.py
-${PYSITELIB}/axolotl/groups/senderkeyname.py
-${PYSITELIB}/axolotl/groups/state/__init__.py
-${PYSITELIB}/axolotl/groups/state/__init__.pyo
-${PYSITELIB}/axolotl/groups/state/__init__.pyc
-${PYSITELIB}/axolotl/groups/state/senderkeyrecord.pyo
-${PYSITELIB}/axolotl/groups/state/senderkeyrecord.pyc
-${PYSITELIB}/axolotl/groups/state/senderkeystate.pyo
-${PYSITELIB}/axolotl/groups/state/senderkeystate.pyc
-${PYSITELIB}/axolotl/groups/state/senderkeystore.pyo
-${PYSITELIB}/axolotl/groups/state/senderkeystore.pyc
-${PYSITELIB}/axolotl/groups/state/senderkeyrecord.py
-${PYSITELIB}/axolotl/groups/state/senderkeystate.py
-${PYSITELIB}/axolotl/groups/state/senderkeystore.py
-${PYSITELIB}/axolotl/identitykey.py
-${PYSITELIB}/axolotl/identitykeypair.py
-${PYSITELIB}/axolotl/invalidkeyexception.py
-${PYSITELIB}/axolotl/invalidkeyidexception.py
-${PYSITELIB}/axolotl/invalidmessageexception.py
-${PYSITELIB}/axolotl/invalidversionexception.py
-${PYSITELIB}/axolotl/kdf/__init__.py
-${PYSITELIB}/axolotl/kdf/__init__.pyo
-${PYSITELIB}/axolotl/kdf/__init__.pyc
-${PYSITELIB}/axolotl/kdf/derivedmessagesecrets.pyo
-${PYSITELIB}/axolotl/kdf/derivedmessagesecrets.pyc
-${PYSITELIB}/axolotl/kdf/derivedrootsecrets.pyo
-${PYSITELIB}/axolotl/kdf/derivedrootsecrets.pyc
-${PYSITELIB}/axolotl/kdf/hkdf.pyo
-${PYSITELIB}/axolotl/kdf/hkdf.pyc
-${PYSITELIB}/axolotl/kdf/hkdfv2.pyo
-${PYSITELIB}/axolotl/kdf/hkdfv2.pyc
-${PYSITELIB}/axolotl/kdf/hkdfv3.pyo
-${PYSITELIB}/axolotl/kdf/hkdfv3.pyc
-${PYSITELIB}/axolotl/kdf/messagekeys.pyo
-${PYSITELIB}/axolotl/kdf/messagekeys.pyc
-${PYSITELIB}/axolotl/kdf/derivedmessagesecrets.py
-${PYSITELIB}/axolotl/kdf/derivedrootsecrets.py
-${PYSITELIB}/axolotl/kdf/hkdf.py
-${PYSITELIB}/axolotl/kdf/hkdfv2.py
-${PYSITELIB}/axolotl/kdf/hkdfv3.py
-${PYSITELIB}/axolotl/kdf/messagekeys.py
-${PYSITELIB}/axolotl/legacymessageexception.py
-${PYSITELIB}/axolotl/nosessionexception.py
-${PYSITELIB}/axolotl/protocol/__init__.py
-${PYSITELIB}/axolotl/protocol/__init__.pyo
-${PYSITELIB}/axolotl/protocol/__init__.pyc
-${PYSITELIB}/axolotl/protocol/ciphertextmessage.pyo
-${PYSITELIB}/axolotl/protocol/ciphertextmessage.pyc
-${PYSITELIB}/axolotl/protocol/keyexchangemessage.pyo
-${PYSITELIB}/axolotl/protocol/keyexchangemessage.pyc
-${PYSITELIB}/axolotl/protocol/prekeywhispermessage.pyo
-${PYSITELIB}/axolotl/protocol/prekeywhispermessage.pyc
-${PYSITELIB}/axolotl/protocol/senderkeydistributionmessage.pyo
-${PYSITELIB}/axolotl/protocol/senderkeydistributionmessage.pyc
-${PYSITELIB}/axolotl/protocol/senderkeymessage.pyo
-${PYSITELIB}/axolotl/protocol/senderkeymessage.pyc
-${PYSITELIB}/axolotl/protocol/whispermessage.pyo
-${PYSITELIB}/axolotl/protocol/whispermessage.pyc
-${PYSITELIB}/axolotl/protocol/whisperprotos_pb2.pyo
-${PYSITELIB}/axolotl/protocol/whisperprotos_pb2.pyc
-${PYSITELIB}/axolotl/protocol/ciphertextmessage.py
-${PYSITELIB}/axolotl/protocol/keyexchangemessage.py
-${PYSITELIB}/axolotl/protocol/prekeywhispermessage.py
-${PYSITELIB}/axolotl/protocol/senderkeydistributionmessage.py
-${PYSITELIB}/axolotl/protocol/senderkeymessage.py
-${PYSITELIB}/axolotl/protocol/whispermessage.py
-${PYSITELIB}/axolotl/protocol/whisperprotos_pb2.py
-${PYSITELIB}/axolotl/ratchet/__init__.py
-${PYSITELIB}/axolotl/ratchet/__init__.pyo
-${PYSITELIB}/axolotl/ratchet/__init__.pyc
-${PYSITELIB}/axolotl/ratchet/aliceaxolotlparameters.pyo
-${PYSITELIB}/axolotl/ratchet/aliceaxolotlparameters.pyc
-${PYSITELIB}/axolotl/ratchet/bobaxolotlparamaters.pyo
-${PYSITELIB}/axolotl/ratchet/bobaxolotlparamaters.pyc
-${PYSITELIB}/axolotl/ratchet/chainkey.pyo
-${PYSITELIB}/axolotl/ratchet/chainkey.pyc
-${PYSITELIB}/axolotl/ratchet/ratchetingsession.pyo
-${PYSITELIB}/axolotl/ratchet/ratchetingsession.pyc
-${PYSITELIB}/axolotl/ratchet/rootkey.pyo
-${PYSITELIB}/axolotl/ratchet/rootkey.pyc
-${PYSITELIB}/axolotl/ratchet/symmetricaxolotlparameters.pyo
-${PYSITELIB}/axolotl/ratchet/symmetricaxolotlparameters.pyc
-${PYSITELIB}/axolotl/ratchet/aliceaxolotlparameters.py
-${PYSITELIB}/axolotl/ratchet/bobaxolotlparamaters.py
-${PYSITELIB}/axolotl/ratchet/chainkey.py
-${PYSITELIB}/axolotl/ratchet/ratchetingsession.py
-${PYSITELIB}/axolotl/ratchet/rootkey.py
-${PYSITELIB}/axolotl/ratchet/symmetricaxolotlparameters.py
-${PYSITELIB}/axolotl/sessionbuilder.py
-${PYSITELIB}/axolotl/sessioncipher.py
-${PYSITELIB}/axolotl/state/__init__.py
-${PYSITELIB}/axolotl/state/__init__.pyo
-${PYSITELIB}/axolotl/state/__init__.pyc
-${PYSITELIB}/axolotl/state/axolotlstore.pyo
-${PYSITELIB}/axolotl/state/axolotlstore.pyc
-${PYSITELIB}/axolotl/state/identitykeystore.pyo
-${PYSITELIB}/axolotl/state/identitykeystore.pyc
-${PYSITELIB}/axolotl/state/prekeybundle.pyo
-${PYSITELIB}/axolotl/state/prekeybundle.pyc
-${PYSITELIB}/axolotl/state/prekeyrecord.pyo
-${PYSITELIB}/axolotl/state/prekeyrecord.pyc
-${PYSITELIB}/axolotl/state/prekeystore.pyo
-${PYSITELIB}/axolotl/state/prekeystore.pyc
-${PYSITELIB}/axolotl/state/sessionrecord.pyo
-${PYSITELIB}/axolotl/state/sessionrecord.pyc
-${PYSITELIB}/axolotl/state/sessionstate.pyo
-${PYSITELIB}/axolotl/state/sessionstate.pyc
-${PYSITELIB}/axolotl/state/sessionstore.pyo
-${PYSITELIB}/axolotl/state/sessionstore.pyc
-${PYSITELIB}/axolotl/state/signedprekeyrecord.pyo
-${PYSITELIB}/axolotl/state/signedprekeyrecord.pyc
-${PYSITELIB}/axolotl/state/signedprekeystore.pyo
-${PYSITELIB}/axolotl/state/signedprekeystore.pyc
-${PYSITELIB}/axolotl/state/storageprotos_pb2.pyo
-${PYSITELIB}/axolotl/state/storageprotos_pb2.pyc
-${PYSITELIB}/axolotl/state/axolotlstore.py
-${PYSITELIB}/axolotl/state/identitykeystore.py
-${PYSITELIB}/axolotl/state/prekeybundle.py
-${PYSITELIB}/axolotl/state/prekeyrecord.py
-${PYSITELIB}/axolotl/state/prekeystore.py
-${PYSITELIB}/axolotl/state/sessionrecord.py
-${PYSITELIB}/axolotl/state/sessionstate.py
-${PYSITELIB}/axolotl/state/sessionstore.py
-${PYSITELIB}/axolotl/state/signedprekeyrecord.py
-${PYSITELIB}/axolotl/state/signedprekeystore.py
-${PYSITELIB}/axolotl/state/storageprotos_pb2.py
-${PYSITELIB}/axolotl/statekeyexchangeexception.py
-${PYSITELIB}/axolotl/tests/__init__.py
-${PYSITELIB}/axolotl/tests/__init__.pyo
-${PYSITELIB}/axolotl/tests/__init__.pyc
-${PYSITELIB}/axolotl/tests/inmemoryaxolotlstore.pyo
-${PYSITELIB}/axolotl/tests/inmemoryaxolotlstore.pyc
-${PYSITELIB}/axolotl/tests/inmemoryidentitykeystore.pyo
-${PYSITELIB}/axolotl/tests/inmemoryidentitykeystore.pyc
-${PYSITELIB}/axolotl/tests/inmemoryprekeystore.pyo
-${PYSITELIB}/axolotl/tests/inmemoryprekeystore.pyc
-${PYSITELIB}/axolotl/tests/inmemorysessionstore.pyo
-${PYSITELIB}/axolotl/tests/inmemorysessionstore.pyc
-${PYSITELIB}/axolotl/tests/inmemorysignedprekeystore.pyo
-${PYSITELIB}/axolotl/tests/inmemorysignedprekeystore.pyc
-${PYSITELIB}/axolotl/tests/test_sessionbuilder.pyo
-${PYSITELIB}/axolotl/tests/test_sessionbuilder.pyc
-${PYSITELIB}/axolotl/tests/test_sessioncipher.pyo
-${PYSITELIB}/axolotl/tests/test_sessioncipher.pyc
-${PYSITELIB}/axolotl/tests/test_sigs.pyo
-${PYSITELIB}/axolotl/tests/test_sigs.pyc
-${PYSITELIB}/axolotl/tests/groups/__init__.py
-${PYSITELIB}/axolotl/tests/groups/__init__.pyo
-${PYSITELIB}/axolotl/tests/groups/__init__.pyc
-${PYSITELIB}/axolotl/tests/groups/inmemorysenderkeystore.pyo
-${PYSITELIB}/axolotl/tests/groups/inmemorysenderkeystore.pyc
-${PYSITELIB}/axolotl/tests/groups/test_groupcipher.pyo
-${PYSITELIB}/axolotl/tests/groups/test_groupcipher.pyc
-${PYSITELIB}/axolotl/tests/groups/inmemorysenderkeystore.py
-${PYSITELIB}/axolotl/tests/groups/test_groupcipher.py
-${PYSITELIB}/axolotl/tests/inmemoryaxolotlstore.py
-${PYSITELIB}/axolotl/tests/inmemoryidentitykeystore.py
-${PYSITELIB}/axolotl/tests/inmemoryprekeystore.py
-${PYSITELIB}/axolotl/tests/inmemorysessionstore.py
-${PYSITELIB}/axolotl/tests/inmemorysignedprekeystore.py
-${PYSITELIB}/axolotl/tests/kdf/__init__.py
-${PYSITELIB}/axolotl/tests/kdf/__init__.pyo
-${PYSITELIB}/axolotl/tests/kdf/__init__.pyc
-${PYSITELIB}/axolotl/tests/kdf/test_hkdf.pyo
-${PYSITELIB}/axolotl/tests/kdf/test_hkdf.pyc
-${PYSITELIB}/axolotl/tests/kdf/test_hkdf.py
-${PYSITELIB}/axolotl/tests/ratchet/__init__.py
-${PYSITELIB}/axolotl/tests/ratchet/__init__.pyo
-${PYSITELIB}/axolotl/tests/ratchet/__init__.pyc
-${PYSITELIB}/axolotl/tests/ratchet/test_chainkey.pyo
-${PYSITELIB}/axolotl/tests/ratchet/test_chainkey.pyc
-${PYSITELIB}/axolotl/tests/ratchet/test_ratchetingsession.pyo
-${PYSITELIB}/axolotl/tests/ratchet/test_ratchetingsession.pyc
-${PYSITELIB}/axolotl/tests/ratchet/test_rootkey.pyo
-${PYSITELIB}/axolotl/tests/ratchet/test_rootkey.pyc
-${PYSITELIB}/axolotl/tests/ratchet/test_chainkey.py
-${PYSITELIB}/axolotl/tests/ratchet/test_ratchetingsession.py
-${PYSITELIB}/axolotl/tests/ratchet/test_rootkey.py
-${PYSITELIB}/axolotl/tests/test_sessionbuilder.py
-${PYSITELIB}/axolotl/tests/test_sessioncipher.py
-${PYSITELIB}/axolotl/tests/test_sigs.py
-${PYSITELIB}/axolotl/tests/util/__init__.py
-${PYSITELIB}/axolotl/tests/util/__init__.pyo
-${PYSITELIB}/axolotl/tests/util/__init__.pyc
-${PYSITELIB}/axolotl/tests/util/test_byteutil.pyo
-${PYSITELIB}/axolotl/tests/util/test_byteutil.pyc
-${PYSITELIB}/axolotl/tests/util/test_byteutil.py
-${PYSITELIB}/axolotl/untrustedidentityexception.py
-${PYSITELIB}/axolotl/util/__init__.py
-${PYSITELIB}/axolotl/util/__init__.pyo
-${PYSITELIB}/axolotl/util/__init__.pyc
-${PYSITELIB}/axolotl/util/byteutil.pyo
-${PYSITELIB}/axolotl/util/byteutil.pyc
-${PYSITELIB}/axolotl/util/hexutil.pyo
-${PYSITELIB}/axolotl/util/hexutil.pyc
-${PYSITELIB}/axolotl/util/keyhelper.pyo
-${PYSITELIB}/axolotl/util/keyhelper.pyc
-${PYSITELIB}/axolotl/util/medium.pyo



Home | Main Index | Thread Index | Old Index