Package org.refcodes.security.alt.chaos
Class ChaosDecrypterImpl
- java.lang.Object
-
- org.refcodes.security.alt.chaos.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)
-
-
-
Constructor Detail
-
ChaosDecrypterImpl
public ChaosDecrypterImpl(double x0, double a, double s)
Instantiates a new chaos decrypter impl.- Parameters:
x0
- the x 0a
- the as
- 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 interfaceorg.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 interfaceorg.refcodes.security.Decrypter<byte[],byte[],org.refcodes.security.DecryptionException>
- Throws:
javax.crypto.ShortBufferException
org.refcodes.security.DecryptionException
-
-