Class ChaosEncrypterImpl

  • All Implemented Interfaces:
    ChaosEncrypter, org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>

    public class ChaosEncrypterImpl
    extends java.lang.Object
    implements ChaosEncrypter
    The Class ChaosEncrypterImpl.
    Author:
    steiner
    • Constructor Summary

      Constructors 
      Constructor Description
      ChaosEncrypterImpl​(double x0, double a, double s)
      Instantiates a new chaos encrypter impl.
      ChaosEncrypterImpl​(ChaosKey aKey)
      Instantiates a new chaos encrypter impl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] toEncrypted​(byte[] aDecrypted)
      int toEncrypted​(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChaosEncrypterImpl

        public ChaosEncrypterImpl​(double x0,
                                  double a,
                                  double s)
        Instantiates a new chaos encrypter impl.
        Parameters:
        x0 - the x 0
        a - the a
        s - the s
      • ChaosEncrypterImpl

        public ChaosEncrypterImpl​(ChaosKey aKey)
        Instantiates a new chaos encrypter impl.
        Parameters:
        aKey - the key
    • Method Detail

      • toEncrypted

        public byte[] toEncrypted​(byte[] aDecrypted)
                           throws org.refcodes.security.EncryptionException
        Specified by:
        toEncrypted in interface org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
        Throws:
        org.refcodes.security.EncryptionException
      • toEncrypted

        public int toEncrypted​(byte[] aInput,
                               int aInputOffset,
                               int aInputLength,
                               byte[] aOutput,
                               int aOutputOffset)
                        throws javax.crypto.ShortBufferException,
                               org.refcodes.security.EncryptionException
        Specified by:
        toEncrypted in interface org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
        Throws:
        javax.crypto.ShortBufferException
        org.refcodes.security.EncryptionException