Class FinCipherBase

Namespace
Subsembly.FinTS
Assembly
Subsembly.FinTS.Core.dll
public abstract class FinCipherBase : IFinCipherAlgorithm
Inheritance
FinCipherBase
Implements
Derived
Inherited Members

Methods

Decrypt(byte[], byte[], int, int)

public int Decrypt(byte[] vbSessionKey, byte[] vbData, int nOffset, int nLength)

Parameters

vbSessionKey byte[]
vbData byte[]
nOffset int
nLength int

Returns

int

Encrypt(byte[], byte[], int, int)

public int Encrypt(byte[] vbSessionKey, byte[] vbData, int nOffset, int nLength)

Parameters

vbSessionKey byte[]
vbData byte[]
nOffset int
nLength int

Returns

int

GenerateSessionKey()

public byte[] GenerateSessionKey()

Returns

byte[]

GetPadAmount(byte[], int, int)

Determines the number of pad bytes contained in the given buffer.

protected abstract int GetPadAmount(byte[] vbData, int nOffset, int nLength)

Parameters

vbData byte[]
nOffset int

Offset of the beginning of the data.

nLength int

Returns

int

The returned amount of padding must always be in the range from 1 to the block size of the cipher algorithm.

InsertPadding(byte[], int, int)

protected abstract void InsertPadding(byte[] vbData, int nOffset, int nLength)

Parameters

vbData byte[]
nOffset int
nLength int

PaddedLength(int)

public int PaddedLength(int nLength)

Parameters

nLength int

Returns

int

UnwrapSessionKey(byte[])

protected virtual byte[] UnwrapSessionKey(byte[] vbSessionKey)

Parameters

vbSessionKey byte[]

Returns

byte[]