SevenZipCipher

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.Security.Cryptography.ICryptoTransform

public abstract class SevenZipCipher implements System.Security.Cryptography.ICryptoTransform

Base class for AES cipher used for 7-zip encryption.

Methods

MethodDescription
canReuseTransform()Gets a value indicating whether the current transform can be reused.
canTransformMultipleBlocks()Gets a value indicating whether multiple blocks can be transformed.
dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
getInputBlockSize()Gets the input block size.
getOutputBlockSize()Gets the output block size.
transformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.
transformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)Transforms the specified region of the specified byte array.

canReuseTransform()

public abstract boolean canReuseTransform()

Gets a value indicating whether the current transform can be reused.

Returns: boolean - a value indicating whether the current transform can be reused

canTransformMultipleBlocks()

public abstract boolean canTransformMultipleBlocks()

Gets a value indicating whether multiple blocks can be transformed.

Returns: boolean - a value indicating whether multiple blocks can be transformed

dispose()

public abstract void dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

getInputBlockSize()

public abstract int getInputBlockSize()

Gets the input block size.

Returns: int - the input block size

getOutputBlockSize()

public abstract int getOutputBlockSize()

Gets the output block size.

Returns: int - the output block size

transformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)

public abstract int transformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)

Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.

Parameters:

ParameterTypeDescription
inputBufferbyte[]the input for which to compute the transform
inputOffsetintthe offset into the input byte array from which to begin using data
inputCountintthe number of bytes in the input byte array to use as data
outputBufferbyte[]the output to which to write the transform
outputOffsetintthe offset into the output byte array from which to begin writing data

Returns: int - the number of bytes written

transformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)

public abstract byte[] transformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)

Transforms the specified region of the specified byte array.

Parameters:

ParameterTypeDescription
inputBufferbyte[]the input for which to compute the transform
inputOffsetintthe offset into the input byte array from which to begin using data
inputCountintthe number of bytes in the input byte array to use as data

Returns: byte[] - the computed transform