public class FirstMixCipher extends java.lang.Object implements IMixCipher
Constructor and Description |
---|
FirstMixCipher(ISymCipher a_mixCipher,
ISymCipher a_channelSymCipher) |
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 FirstMixCipher(ISymCipher a_mixCipher, ISymCipher a_channelSymCipher)
public byte[] encrypt(byte[] a_packet, int a_virtualPacketLength, java.util.Vector a_sendCallbackHandlers)
IMixCipher
encrypt
in interface IMixCipher
a_packet
- The byte array to be encrypted.a_virtualPacketLength
- The minimal length of the resulting packet.public boolean decrypt(byte[] a_packet)
IMixCipher
decrypt
in interface IMixCipher
public int getNextPacketEncryptionOverhead()
IMixCipher
getNextPacketEncryptionOverhead
in interface IMixCipher
Copyright © 2023. All rights reserved.