Projet

Général

Profil

0001-replace-Crypto-with-Cryptodome-59924.patch

Thomas Noël, 20 décembre 2021 15:00

Télécharger (2,22 ko)

Voir les différences:

Subject: [PATCH] replace Crypto with Cryptodome (#59924)

 README.txt          | 2 +-
 debian/control      | 1 +
 eopayment/paybox.py | 6 +++---
 setup.py            | 2 +-
 4 files changed, 6 insertions(+), 5 deletions(-)
README.txt
26 26
one it was. The full content (which is specific to the service) is also
27 27
reported for logging purpose.
28 28

  
29
The spplus and paybox module also depend upon the python Crypto library for DES
29
The spplus and paybox module also depend upon the python Cryptodome library for DES
30 30
decoding of the merchant key and RSA signature validation on the responses.
31 31

  
32 32
Some backends allow to specify the order and transaction ids in different
debian/control
19 19
Architecture: all
20 20
Depends: ${python3:Depends},
21 21
 python3-zeep (>= 2.5),
22
 python3-pycryptodome,
22 23
 python3-click
23 24
Description: common API to access online payment services (Python 3)
24 25
 eopayment is a Python module to interface with French's bank credit
eopayment/paybox.py
27 27

  
28 28
import pytz
29 29
import requests
30
from Crypto.Hash import SHA
31
from Crypto.PublicKey import RSA
32
from Crypto.Signature import PKCS1_v1_5
30
from Cryptodome.Hash import SHA
31
from Cryptodome.PublicKey import RSA
32
from Cryptodome.Signature import PKCS1_v1_5
33 33
from six.moves.urllib import parse as urllib
34 34
from six.moves.urllib import parse as urlparse
35 35

  
setup.py
147 147
    ],
148 148
    packages=['eopayment'],
149 149
    install_requires=[
150
        'pycrypto >= 2.5',
150
        'pycryptodomex',
151 151
        'pytz',
152 152
        'requests',
153 153
        'six',
154
-