Class FinCipherBase
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
Returns
Encrypt(byte[], byte[], int, int)
public int Encrypt(byte[] vbSessionKey, byte[] vbData, int nOffset, int nLength)Parameters
Returns
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
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
PaddedLength(int)
public int PaddedLength(int nLength)Parameters
- nLengthint
Returns
UnwrapSessionKey(byte[])
protected virtual byte[] UnwrapSessionKey(byte[] vbSessionKey)Parameters
- vbSessionKeybyte[]
Returns
- byte[]