Class SevenZipCipher
Namespace: Aspose.Zip.Crypto
Assembly: Aspose.Zip.dll (25.2.0)
Base class for AES cipher used for 7-zip encryption.
public abstract class SevenZipCipher : ICryptoTransform, IDisposable
Inheritance
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
SevenZipCipher()
Initializes a new instance of the Aspose.Zip.Crypto.SevenZipCipher.
protected SevenZipCipher()
Exceptions
The Aspose.Zip.Crypto.SevenZipCipher.NumberOfCyclesPower is too big.
Properties
CanReuseTransform
Gets a value indicating whether the current transform can be reused.
public abstract bool CanReuseTransform { get; }
Property Value
CanTransformMultipleBlocks
Gets a value indicating whether multiple blocks can be transformed.
public abstract bool CanTransformMultipleBlocks { get; }
Property Value
InputBlockSize
Gets the input block size.
public abstract int InputBlockSize { get; }
Property Value
LastBlockUnderflowSize
Gets the number of lacking bytes wihtin the last block.
protected abstract int LastBlockUnderflowSize { get; set; }
Property Value
NumberOfCyclesPower
Gets binary logarithm of the number of cycles used for AES key calculation.
protected virtual byte NumberOfCyclesPower { get; set; }
Property Value
Remarks
Default value is 19. Must not exceed 24.
OutputBlockSize
Gets the output block size.
public abstract int OutputBlockSize { get; }
Property Value
Salt
Gets the salt used for key initialization of AES algorithm.
protected abstract byte[] Salt { get; }
Property Value
byte[]
Seed
Gets the seed used to compose initialization vector of AES algorithm.
protected abstract byte[] Seed { get; }
Property Value
byte[]
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public abstract void Dispose()
TransformBlock(byte[], int, int, byte[], int)
Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.
public abstract int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
Parameters
inputBuffer
byte[]
The input for which to compute the transform.
inputOffset
int
The offset into the input byte array from which to begin using data.
inputCount
int
The number of bytes in the input byte array to use as data.
outputBuffer
byte[]
The output to which to write the transform.
outputOffset
int
The offset into the output byte array from which to begin writing data.
Returns
TransformFinalBlock(byte[], int, int)
Transforms the specified region of the specified byte array.
public abstract byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
Parameters
inputBuffer
byte[]
The input for which to compute the transform.
inputOffset
int
The offset into the input byte array from which to begin using data.
inputCount
int
The number of bytes in the input byte array to use as data.
Returns
byte[]
The computed transform.