Class ChaosDecrypterImpl

  • All Implemented Interfaces:
    ChaosDecrypter, org.refcodes.security.Decrypter<byte[],byte[],org.refcodes.security.DecryptionException>


    public class ChaosDecrypterImpl
    extends Object
    implements ChaosDecrypter
    The Class ChaosDecrypterImpl.
    Author:
    steiner
    • Constructor Detail

      • ChaosDecrypterImpl

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

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

      • toDecrypted

        public byte[] toDecrypted​(byte[] aEncrypted)
                           throws org.refcodes.security.DecryptionException
        Specified by:
        toDecrypted in interface org.refcodes.security.Decrypter<byte[],byte[],org.refcodes.security.DecryptionException>
        Throws:
        org.refcodes.security.DecryptionException
      • toDecrypted

        public int toDecrypted​(byte[] aInput,
                               int aInputOffset,
                               int aInputLength,
                               byte[] aOutput,
                               int aOutputOffset)
                        throws ShortBufferException,
                               org.refcodes.security.DecryptionException
        Specified by:
        toDecrypted in interface org.refcodes.security.Decrypter<byte[],byte[],org.refcodes.security.DecryptionException>
        Throws:
        ShortBufferException
        org.refcodes.security.DecryptionException