Project

General

Profile

Development #31171

python3 : gérer les variations d'encodage pour le sous-module authentic2.crypto

Added by Paul Marillonnet over 1 year ago. Updated 6 months ago.

Status:
Solution déployée
Priority:
Normal
Category:
-
Target version:
-
Start date:
06 Mar 2019
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

En python3 la gestion des objets bytes change la donne.

0001-python3-handle-encoding-variations-in-crypto-submodu.patch View (3.47 KB) Paul Marillonnet, 06 Mar 2019 09:02 PM

0001-python3-encode-salt-before-hashing-in-crypto-submodu.patch View (1.2 KB) Paul Marillonnet, 18 Apr 2019 02:19 PM

0002-python3-struct-packed-C-strings-are-Python-bytes-311.patch View (1.28 KB) Paul Marillonnet, 18 Apr 2019 02:19 PM

0003-python3-struct-unpack-C-strings-into-Python-bytes-31.patch View (974 Bytes) Paul Marillonnet, 18 Apr 2019 02:19 PM

0004-python3-handle-AES-padding-variations-31171.patch View (1.11 KB) Paul Marillonnet, 18 Apr 2019 02:19 PM

0005-python3-base64-url-encoding-returns-bytes-31171.patch View (708 Bytes) Paul Marillonnet, 18 Apr 2019 02:20 PM


Related issues

Related to Authentic 2 - Development #28276: Fonctionner avec Python3 pour Django1.11 Solution déployée 23 Nov 2018

Associated revisions

Revision c1c8ca91 (diff)
Added by Paul Marillonnet 6 months ago

python3: struct-packed C strings are Python bytes (#31171)

Revision 185e59fd (diff)
Added by Paul Marillonnet 6 months ago

python3: struct-unpack C strings into Python bytes (#31171)

Revision 98425ac1 (diff)
Added by Paul Marillonnet 6 months ago

python3: handle AES padding variations (#31171)

Revision 8820acd1 (diff)
Added by Paul Marillonnet 6 months ago

python3: base64-url-encoding returns bytes (#31171)

History

#1 Updated by Paul Marillonnet over 1 year ago

#2 Updated by Paul Marillonnet over 1 year ago

#3 Updated by Benjamin Dauvergne over 1 year ago

  • Assignee set to Paul Marillonnet

#4 Updated by Benjamin Dauvergne over 1 year ago

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.

1 https://docs.python.org/3/library/struct.html#examples

#5 Updated by Benjamin Dauvergne over 1 year ago

  • Status changed from Solution proposée to En cours

#7 Updated by Paul Marillonnet over 1 year ago

Un cinquième, qui a sa place ici.

#8 Updated by Benjamin Dauvergne 10 months ago

  • Status changed from Solution proposée to Solution validée

À rebaser, éventuellement.

#9 Updated by Paul Marillonnet 6 months ago

  • Status changed from Solution validée to 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)

#10 Updated by Frédéric Péters 6 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF