Class FinCipherBase
Inheritance
System.Object
FinCipherBase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Subsembly.FinTS.Core.dll
Syntax
public abstract class FinCipherBase : IFinCipherAlgorithm
Methods
Decrypt(Byte[], Byte[], Int32, Int32)
Declaration
public int Decrypt(byte[] vbSessionKey, byte[] vbData, int nOffset, int nLength)
Parameters
Type |
Name |
Description |
System.Byte[] |
vbSessionKey |
|
System.Byte[] |
vbData |
|
System.Int32 |
nOffset |
|
System.Int32 |
nLength |
|
Returns
Type |
Description |
System.Int32 |
|
Encrypt(Byte[], Byte[], Int32, Int32)
Declaration
public int Encrypt(byte[] vbSessionKey, byte[] vbData, int nOffset, int nLength)
Parameters
Type |
Name |
Description |
System.Byte[] |
vbSessionKey |
|
System.Byte[] |
vbData |
|
System.Int32 |
nOffset |
|
System.Int32 |
nLength |
|
Returns
Type |
Description |
System.Int32 |
|
GenerateSessionKey()
Declaration
public byte[] GenerateSessionKey()
Returns
Type |
Description |
System.Byte[] |
|
GetPadAmount(Byte[], Int32, Int32)
Determines the number of pad bytes contained in the given buffer.
Declaration
protected abstract int GetPadAmount(byte[] vbData, int nOffset, int nLength)
Parameters
Type |
Name |
Description |
System.Byte[] |
vbData |
|
System.Int32 |
nOffset |
Offset of the beginning of the data.
|
System.Int32 |
nLength |
|
Returns
Type |
Description |
System.Int32 |
The returned amount of padding must always be in the range from 1 to the block
size of the cipher algorithm.
|
InsertPadding(Byte[], Int32, Int32)
Declaration
protected abstract void InsertPadding(byte[] vbData, int nOffset, int nLength)
Parameters
Type |
Name |
Description |
System.Byte[] |
vbData |
|
System.Int32 |
nOffset |
|
System.Int32 |
nLength |
|
PaddedLength(Int32)
Declaration
public int PaddedLength(int nLength)
Parameters
Type |
Name |
Description |
System.Int32 |
nLength |
|
Returns
Type |
Description |
System.Int32 |
|
UnwrapSessionKey(Byte[])
Declaration
protected virtual byte[] UnwrapSessionKey(byte[] vbSessionKey)
Parameters
Type |
Name |
Description |
System.Byte[] |
vbSessionKey |
|
Returns
Type |
Description |
System.Byte[] |
|
Implements