Class ChaosEncrypterImpl

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


    public class ChaosEncrypterImpl
    extends Object
    implements ChaosEncrypter
    The Class ChaosEncrypterImpl.
    Author:
    steiner
    • 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 ShortBufferException,
                               org.refcodes.security.EncryptionException
        Specified by:
        toEncrypted in interface org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
        Throws:
        ShortBufferException
        org.refcodes.security.EncryptionException