public class ChaosEncrypterImpl extends Object implements ChaosEncrypter
Constructor and Description |
---|
ChaosEncrypterImpl(ChaosKey aKey)
Instantiates a new chaos encrypter impl.
|
ChaosEncrypterImpl(double x0,
double a,
double s)
Instantiates a new chaos encrypter impl.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
toEncrypted(byte[] aDecrypted) |
int |
toEncrypted(byte[] aInput,
int aInputOffset,
int aInputLength,
byte[] aOutput,
int aOutputOffset) |
public ChaosEncrypterImpl(double x0, double a, double s)
x0
- the x 0a
- the as
- the spublic ChaosEncrypterImpl(ChaosKey aKey)
aKey
- the a keypublic byte[] toEncrypted(byte[] aDecrypted) throws org.refcodes.security.EncryptionException
toEncrypted
in interface org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
org.refcodes.security.EncryptionException
public int toEncrypted(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset) throws ShortBufferException, org.refcodes.security.EncryptionException
toEncrypted
in interface org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
ShortBufferException
org.refcodes.security.EncryptionException
Copyright © 2017. All rights reserved.