forked from Dniel97/artemis
chuni: fixing the network encryption for Sun Plus
This commit is contained in:
parent
37b1f41b44
commit
bf7d709b49
@ -101,8 +101,14 @@ class ChuniServlet(BaseServlet):
|
|||||||
]
|
]
|
||||||
for method in method_list:
|
for method in method_list:
|
||||||
method_fixed = inflection.camelize(method)[6:-7]
|
method_fixed = inflection.camelize(method)[6:-7]
|
||||||
# number of iterations was changed to 70 in SUN
|
# number of iterations was changed to 70 in SUN and then to 36
|
||||||
iter_count = 70 if version >= ChuniConstants.VER_CHUNITHM_SUN else 44
|
if version == ChuniConstants.VER_CHUNITHM_SUN_PLUS:
|
||||||
|
iter_count = 36
|
||||||
|
elif version == ChuniConstants.VER_CHUNITHM_SUN:
|
||||||
|
iter_count = 70
|
||||||
|
else:
|
||||||
|
iter_count = 44
|
||||||
|
|
||||||
hash = PBKDF2(
|
hash = PBKDF2(
|
||||||
method_fixed,
|
method_fixed,
|
||||||
bytes.fromhex(keys[2]),
|
bytes.fromhex(keys[2]),
|
||||||
|
Loading…
Reference in New Issue
Block a user