Class SodiumAsymmetricEngine
java.lang.Object
io.aether.crypto.sodium.SodiumAsymmetricEngine
- All Implemented Interfaces:
io.aether.crypto.CryptoEngine, io.aether.crypto.CryptoProviderUnit, io.aether.utils.ToString
-
Constructor Summary
ConstructorsConstructorDescriptionSodiumAsymmetricEngine(io.aether.crypto.AKey.AsymmetricPrivate privateKey, io.aether.crypto.AKey.AsymmetricPublic publicKey) SodiumAsymmetricEngine(io.aether.crypto.AKey.AsymmetricPublic publicKey) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.aether.utils.ToString
toString, toString2
-
Constructor Details
-
SodiumAsymmetricEngine
public SodiumAsymmetricEngine(io.aether.crypto.AKey.AsymmetricPublic publicKey) -
SodiumAsymmetricEngine
public SodiumAsymmetricEngine(io.aether.crypto.AKey.AsymmetricPrivate privateKey, io.aether.crypto.AKey.AsymmetricPublic publicKey)
-
-
Method Details
-
encrypt
public byte[] encrypt(byte[] data) - Specified by:
encryptin interfaceio.aether.crypto.CryptoEngine
-
decrypt
public byte[] decrypt(byte[] data) - Specified by:
decryptin interfaceio.aether.crypto.CryptoEngine
-
getCryptoProvider
public io.aether.crypto.CryptoProvider getCryptoProvider()- Specified by:
getCryptoProviderin interfaceio.aether.crypto.CryptoProviderUnit
-
getProviderName
- Specified by:
getProviderNamein interfaceio.aether.crypto.CryptoProviderUnit
-