mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-12-18 18:10:17 +00:00
26 lines
1.1 KiB
Python
26 lines
1.1 KiB
Python
import os
|
|
import glob
|
|
|
|
from .Hashes import sha256
|
|
from .Hashes import sha512
|
|
from .HKDF import hkdf
|
|
from .PKCS7 import PKCS7
|
|
from .Token import Token
|
|
from .Provider import backend
|
|
|
|
import RNS.Cryptography.Provider as cp
|
|
|
|
if cp.PROVIDER == cp.PROVIDER_INTERNAL:
|
|
from RNS.Cryptography.X25519 import X25519PrivateKey, X25519PublicKey
|
|
from RNS.Cryptography.Ed25519 import Ed25519PrivateKey, Ed25519PublicKey
|
|
|
|
elif cp.PROVIDER == cp.PROVIDER_PYCA:
|
|
from RNS.Cryptography.Proxies import X25519PrivateKeyProxy as X25519PrivateKey
|
|
from RNS.Cryptography.Proxies import X25519PublicKeyProxy as X25519PublicKey
|
|
from RNS.Cryptography.Proxies import Ed25519PrivateKeyProxy as Ed25519PrivateKey
|
|
from RNS.Cryptography.Proxies import Ed25519PublicKeyProxy as Ed25519PublicKey
|
|
|
|
py_modules = glob.glob(os.path.dirname(__file__)+"/*.py")
|
|
pyc_modules = glob.glob(os.path.dirname(__file__)+"/*.pyc")
|
|
modules = py_modules+pyc_modules
|
|
__all__ = list(set([os.path.basename(f).replace(".pyc", "").replace(".py", "") for f in modules if not (f.endswith("__init__.py") or f.endswith("__init__.pyc"))])) |