forked from Hay1tsme/artemis
[chuni] Add correct endpoint iter_count
s for all versions with encryption
This commit is contained in:
parent
eaab3728c4
commit
c3efc36be2
@ -107,8 +107,23 @@ class ChuniServlet(BaseServlet):
|
||||
iter_count = 36
|
||||
elif version == ChuniConstants.VER_CHUNITHM_SUN:
|
||||
iter_count = 70
|
||||
else:
|
||||
elif version == ChuniConstants.VER_CHUNITHM_NEW_PLUS:
|
||||
iter_count = 25
|
||||
elif version == ChuniConstants.VER_CHUNITHM_NEW:
|
||||
iter_count = 54
|
||||
elif version == ChuniConstants.VER_CHUNITHM_PARADISE:
|
||||
iter_count = 44
|
||||
elif version == ChuniConstants.VER_CHUNITHM_CRYSTAL_PLUS:
|
||||
iter_count = 67
|
||||
else:
|
||||
disp_version = (
|
||||
ChuniConstants.VERSION_NAMES[version]
|
||||
if version in ChuniConstants.VERSION_NAMES
|
||||
else str(version)
|
||||
)
|
||||
|
||||
self.logger.warning("Version %s does not support encryption", disp_version)
|
||||
continue
|
||||
|
||||
hash = PBKDF2(
|
||||
method_fixed,
|
||||
|
Loading…
Reference in New Issue
Block a user