mirror of
https://github.com/FIX94/hbc.git
synced 2024-11-01 08:35:09 +01:00
use crypodomeex to prevent clashes with the old pycrypto
This commit is contained in:
parent
859b04bc37
commit
20681a0e28
@ -39,7 +39,7 @@ You can download binaries of those
|
|||||||
|
|
||||||
Additionally, you'll need the following packages on your host machine:
|
Additionally, you'll need the following packages on your host machine:
|
||||||
|
|
||||||
* pycryptodome (for PyWii)
|
* pycryptodomeex (for PyWii)
|
||||||
* libpng headers (libpng-dev)
|
* libpng headers (libpng-dev)
|
||||||
* gettext
|
* gettext
|
||||||
* sox
|
* sox
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
from array import array
|
from array import array
|
||||||
from struct import pack, unpack
|
from struct import pack, unpack
|
||||||
from Crypto.Util.number import bytes_to_long, long_to_bytes
|
from Cryptodome.Util.number import bytes_to_long, long_to_bytes
|
||||||
|
|
||||||
# y**2 + x*y = x**3 + x + b
|
# y**2 + x*y = x**3 + x + b
|
||||||
ec_b = "\x00\x66\x64\x7e\xde\x6c\x33\x2c\x7f\x8c\x09\x23\xbb\x58\x21"+\
|
ec_b = "\x00\x66\x64\x7e\xde\x6c\x33\x2c\x7f\x8c\x09\x23\xbb\x58\x21"+\
|
||||||
|
@ -8,11 +8,11 @@ from struct import unpack, pack
|
|||||||
import os, os.path
|
import os, os.path
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from Crypto.Cipher import AES
|
from Cryptodome.Cipher import AES
|
||||||
from Crypto.Hash import SHA
|
from Cryptodome.Hash import SHA
|
||||||
from Crypto.PublicKey import RSA
|
from Cryptodome.PublicKey import RSA
|
||||||
from Crypto.Util.number import bytes_to_long, long_to_bytes
|
from Cryptodome.Util.number import bytes_to_long, long_to_bytes
|
||||||
from Crypto.Signature import pkcs1_15
|
from Cryptodome.Signature import pkcs1_15
|
||||||
|
|
||||||
import ec
|
import ec
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import sys, os, os.path
|
import sys, os, os.path
|
||||||
import pywii as wii
|
import pywii as wii
|
||||||
from Crypto.Hash import SHA
|
from Cryptodome.Hash import SHA
|
||||||
|
|
||||||
wii.loadkeys()
|
wii.loadkeys()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user