public class DefaultMixCipher extends java.lang.Object implements IMixCipher
| Constructor and Description |
|---|
DefaultMixCipher(MixParameters a_mixParameters,
ISymCipher a_symCipher) |
| 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.
|
public DefaultMixCipher(MixParameters a_mixParameters, ISymCipher a_symCipher)
a_mixParameters - a_symCipher - 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.