Project

General

Profile

Development #31171

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

Added by Paul Marillonnet about 2 years ago. Updated about 1 year ago.

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

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

En python3 la gestion des objets bytes change la donne.


Files


Related issues

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

Actions

Associated revisions

Revision c1c8ca91 (diff)
Added by Paul Marillonnet about 1 year ago

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

Revision 185e59fd (diff)
Added by Paul Marillonnet about 1 year ago

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

Revision 98425ac1 (diff)
Added by Paul Marillonnet about 1 year ago

python3: handle AES padding variations (#31171)

Revision 8820acd1 (diff)
Added by Paul Marillonnet about 1 year ago

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

History

#1

Updated by Paul Marillonnet about 2 years ago

#2

Updated by Paul Marillonnet about 2 years ago

#3

Updated by Benjamin Dauvergne about 2 years ago

  • Assignee set to Paul Marillonnet
#4

Updated by Benjamin Dauvergne about 2 years 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 about 2 years ago

  • Status changed from Solution proposée to En cours
#8

Updated by Benjamin Dauvergne over 1 year ago

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

À rebaser, éventuellement.

#9

Updated by Paul Marillonnet about 1 year 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 about 1 year ago

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

Also available in: Atom PDF