Package io.aether.crypto.sodium
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
public class SodiumAsymmetricEngine extends java.lang.Object implements io.aether.crypto.CryptoEngine
-
-
Constructor Summary
Constructors Constructor Description SodiumAsymmetricEngine(io.aether.crypto.AKey.AsymmetricPrivate privateKey, io.aether.crypto.AKey.AsymmetricPublic publicKey)SodiumAsymmetricEngine(io.aether.crypto.AKey.AsymmetricPublic publicKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte @NotNull []decrypt(byte @NotNull [] dataBytes)byte @NotNull []encrypt(byte @NotNull [] dataBytes)io.aether.crypto.CryptoProvidergetCryptoProvider()java.lang.StringgetProviderName()
-
-
-
Method Detail
-
encrypt
public byte @NotNull [] encrypt(byte @NotNull [] dataBytes)
- Specified by:
encryptin interfaceio.aether.crypto.CryptoEngine
-
decrypt
public byte @NotNull [] decrypt(byte @NotNull [] dataBytes)
- Specified by:
decryptin interfaceio.aether.crypto.CryptoEngine
-
getProviderName
public java.lang.String getProviderName()
- Specified by:
getProviderNamein interfaceio.aether.crypto.CryptoProviderUnit
-
getCryptoProvider
public io.aether.crypto.CryptoProvider getCryptoProvider()
- Specified by:
getCryptoProviderin interfaceio.aether.crypto.CryptoProviderUnit
-
-