Class SodiumSymmetricEngine

  • All Implemented Interfaces:
    io.aether.crypto.CryptoEngine, io.aether.crypto.CryptoProviderUnit, io.aether.utils.ToString

    public class SodiumSymmetricEngine
    extends java.lang.Object
    implements io.aether.crypto.CryptoEngine
    • Constructor Summary

      Constructors 
      Constructor Description
      SodiumSymmetricEngine​(io.aether.crypto.AKey.Symmetric key)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte @NotNull [] decrypt​(byte @NotNull [] data)  
      byte @NotNull [] encrypt​(byte @NotNull [] data)  
      io.aether.crypto.CryptoProvider getCryptoProvider()  
      java.lang.String getProviderName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.aether.utils.ToString

        toString, toString2
    • Constructor Detail

      • SodiumSymmetricEngine

        public SodiumSymmetricEngine​(io.aether.crypto.AKey.Symmetric key)
    • Method Detail

      • encrypt

        public byte @NotNull [] encrypt​(byte @NotNull [] data)
        Specified by:
        encrypt in interface io.aether.crypto.CryptoEngine
      • decrypt

        public byte @NotNull [] decrypt​(byte @NotNull [] data)
        Specified by:
        decrypt in interface io.aether.crypto.CryptoEngine
      • getProviderName

        public java.lang.String getProviderName()
        Specified by:
        getProviderName in interface io.aether.crypto.CryptoProviderUnit
      • getCryptoProvider

        public io.aether.crypto.CryptoProvider getCryptoProvider()
        Specified by:
        getCryptoProvider in interface io.aether.crypto.CryptoProviderUnit