blob: 808b210b89b6d33161f296c07da4d7b30f6805ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
_mod = None
try:
import srp._srp
_mod = srp._srp
except ImportError:
pass
if not _mod:
try:
import srp._ctsrp
_mod = srp._ctsrp
except ImportError:
pass
if not _mod:
import srp._pysrp
_mod = srp._pysrp
User = _mod.User
Verifier = _mod.Verifier
create_salted_verification_key = _mod.create_salted_verification_key
SHA1 = _mod.SHA1
SHA224 = _mod.SHA224
SHA256 = _mod.SHA256
SHA384 = _mod.SHA384
SHA512 = _mod.SHA512
NG_1024 = _mod.NG_1024
NG_2048 = _mod.NG_2048
NG_4096 = _mod.NG_4096
NG_8192 = _mod.NG_8192
NG_CUSTOM = _mod.NG_CUSTOM
|