mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-10-01 03:15:44 -04:00
Cleanup
This commit is contained in:
parent
94edc8eff3
commit
34efbc6100
@ -9,14 +9,12 @@ from .Fernet import Fernet
|
|||||||
import RNS.Cryptography.Provider as cp
|
import RNS.Cryptography.Provider as cp
|
||||||
|
|
||||||
if cp.PROVIDER == cp.PROVIDER_INTERNAL:
|
if cp.PROVIDER == cp.PROVIDER_INTERNAL:
|
||||||
print("INTERNAL")
|
|
||||||
from RNS.Cryptography.X25519 import X25519PrivateKey, X25519PublicKey
|
from RNS.Cryptography.X25519 import X25519PrivateKey, X25519PublicKey
|
||||||
|
|
||||||
# TODO: Use internal Ed25519
|
# TODO: Use internal Ed25519
|
||||||
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey, Ed25519PublicKey
|
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey, Ed25519PublicKey
|
||||||
|
|
||||||
elif cp.PROVIDER == cp.PROVIDER_PYCA:
|
elif cp.PROVIDER == cp.PROVIDER_PYCA:
|
||||||
print("PYCA")
|
|
||||||
from RNS.Cryptography.Proxies import X25519PrivateKeyProxy as X25519PrivateKey
|
from RNS.Cryptography.Proxies import X25519PrivateKeyProxy as X25519PrivateKey
|
||||||
from RNS.Cryptography.Proxies import X25519PublicKeyProxy as X25519PublicKey
|
from RNS.Cryptography.Proxies import X25519PublicKeyProxy as X25519PublicKey
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user