Class ChaosDecrypterImpl

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

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] toDecrypted​(byte[] aEncrypted)
      int toDecrypted​(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

      • 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 javax.crypto.ShortBufferException,
                               org.refcodes.security.DecryptionException
        Specified by:
        toDecrypted in interface org.refcodes.security.Decrypter<byte[],byte[],org.refcodes.security.DecryptionException>
        Throws:
        javax.crypto.ShortBufferException
        org.refcodes.security.DecryptionException