1
0
mirror of https://github.com/x-hw/amazing-qr.git synced 2025-07-15 01:24:37 +02:00

complete more

This commit is contained in:
sylnsfar
2016-08-28 23:07:55 +08:00
parent e836a50719
commit e6fe986e6d
4 changed files with 100 additions and 6 deletions

3
ecc.py
View File

@ -38,8 +38,9 @@ def XOR(MP, GP):
GP += [0] * a
remainder = []
for i in range(1, len(MP)):
for i in range(len(MP)):
remainder.append(MP[i]^GP[i])
remainder = [i for i in remainder if i]
return remainder
def get_power_of_2_list():