public class LastMixCipher extends java.lang.Object implements IMixCipher
| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_bDebug |
private IDataChannelChipher |
m_dataChannelCipher |
private boolean |
m_firstEncryptionPacket |
private MixParameters |
m_mixParameters |
| Constructor and Description |
|---|
LastMixCipher(MixParameters a_mixParameters,
IDataChannelChipher a_dataChannelCipher,
boolean bDebug) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
decrypt(byte[] a_packet)
Decrypts the given byte array and saves the result in place.
|
byte[] |
encrypt(byte[] a_packet,
int a_virtualPacketLength,
java.util.Vector a_sendCallbackHandlers)
Encrypts a byte array using the underlying encryption algorithm for that
mix.
|
int |
getNextPacketEncryptionOverhead()
Returns the overhead an encryption operation with this mix brings with it.
|
private boolean m_firstEncryptionPacket
private MixParameters m_mixParameters
private IDataChannelChipher m_dataChannelCipher
private boolean m_bDebug
public LastMixCipher(MixParameters a_mixParameters, IDataChannelChipher a_dataChannelCipher, boolean bDebug)
public byte[] encrypt(byte[] a_packet,
int a_virtualPacketLength,
java.util.Vector a_sendCallbackHandlers)
IMixCipherencrypt in interface IMixCiphera_packet - The byte array to be encrypted.a_virtualPacketLength - The minimal length of the resulting packet.public boolean decrypt(byte[] a_packet)
IMixCipherdecrypt in interface IMixCipherpublic int getNextPacketEncryptionOverhead()
IMixCiphergetNextPacketEncryptionOverhead in interface IMixCipherCopyright © 2023. All rights reserved.