Development #31171
python3 : gérer les variations d'encodage pour le sous-module authentic2.crypto
Début:
06 mars 2019
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
En python3 la gestion des objets bytes
change la donne.
Fichiers
Demandes liées
Révisions associées
python3: struct-unpack C strings into Python bytes (#31171)
python3: handle AES padding variations (#31171)
python3: base64-url-encoding returns bytes (#31171)
Historique
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Fichier 0001-python3-handle-encoding-variations-in-crypto-submodu.patch 0001-python3-handle-encoding-variations-in-crypto-submodu.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Lié à Development #28276: Fonctionner avec Python3 pour Django1.11 ajouté
Mis à jour par Benjamin Dauvergne il y a environ 5 ans
Es-tu sûr que pack/unpack prennent un bytes comme premier argument ? Ça me semblerait étrange, et au vu des exemples1 c'est faux.
Il y a un module tests/test_crypto.py tu peux tenter de le lancer en python3 pour voir si ça passe.
Mis à jour par Benjamin Dauvergne il y a environ 5 ans
- Statut changé de Solution proposée à En cours
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Fichier 0001-python3-encode-salt-before-hashing-in-crypto-submodu.patch 0001-python3-encode-salt-before-hashing-in-crypto-submodu.patch ajouté
- Fichier 0002-python3-struct-packed-C-strings-are-Python-bytes-311.patch 0002-python3-struct-packed-C-strings-are-Python-bytes-311.patch ajouté
- Fichier 0003-python3-struct-unpack-C-strings-into-Python-bytes-31.patch 0003-python3-struct-unpack-C-strings-into-Python-bytes-31.patch ajouté
- Fichier 0004-python3-handle-AES-padding-variations-31171.patch 0004-python3-handle-AES-padding-variations-31171.patch ajouté
- Statut changé de En cours à Solution proposée
Pardon, lu le manuel trop vite.
Je pense que ce sera mieux ainsi.
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Fichier 0005-python3-base64-url-encoding-returns-bytes-31171.patch 0005-python3-base64-url-encoding-returns-bytes-31171.patch ajouté
Un cinquième, qui a sa place ici.
Mis à jour par Benjamin Dauvergne il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
À rebaser, éventuellement.
Mis à jour par Paul Marillonnet il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 8820acd1a03d0c575a6a29b08918c745bef9a793 Author: Paul Marillonnet <pmarillonnet@entrouvert.com> Date: Wed Apr 10 13:49:30 2019 +0200 python3: base64-url-encoding returns bytes (#31171) commit 98425ac1ba54b0ada461aeee66bd978c890b7f4e Author: Paul Marillonnet <pmarillonnet@entrouvert.com> Date: Wed Apr 10 14:04:50 2019 +0200 python3: handle AES padding variations (#31171) commit 185e59fdbef8d482a2245c9ad91f899b7a677855 Author: Paul Marillonnet <pmarillonnet@entrouvert.com> Date: Wed Apr 10 13:50:26 2019 +0200 python3: struct-unpack C strings into Python bytes (#31171) commit c1c8ca918236f2bf272192546e0ab1b36145a809 Author: Paul Marillonnet <pmarillonnet@entrouvert.com> Date: Wed Apr 10 12:28:45 2019 +0200 python3: struct-packed C strings are Python bytes (#31171)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
python3: struct-packed C strings are Python bytes (#31171)