Class PrfGost
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
[ComVisible(true)]
public abstract class PrfGost : IDisposable
Fields
_aValue
Declaration
Field Value
_buffer
Declaration
Field Value
_key
Declaration
protected Gost28147CryptoServiceProvider _key
Field Value
_keyIndex
Declaration
Field Value
_labelseed
Declaration
protected byte[] _labelseed
Field Value
Methods
ComputeHash(byte[])
Declaration
protected byte[] ComputeHash(byte[] buffer)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
Returns
DeriveBytes()
Порождает очередные биты псевдослучайной последовательности по
алгоритму PRF_GOSTR3411.
Declaration
public byte[] DeriveBytes()
Returns
DeriveKey()
Порождает очередной симметричный ключ ГОСТ 28147 по алгоритму
PRF_GOSTR3411.
Declaration
public Gost28147 DeriveKey()
Returns
DeriveKey(int)
Порождает симметричный глюч ГОСТ 28147 по алгоритму
PRF_GOSTR3411 с необходимым порядковым номером.
Declaration
public Gost28147 DeriveKey(int position)
Parameters
Type |
Name |
Description |
int |
position |
Позиция порождаемого ключа в выходной
последовательности функции PRF_GOSTR3411. Отсчитывается в
байтах.
|
Returns
Exceptions
Type |
Condition |
ArgumentOutOfRangeException |
Если position
не кратна длине ключа в байтах или ключ с требуемой позицией
уже был порождён.
|
Dispose()
Освобождает используемые ресурсы.
Declaration
DoPrfStep()
Declaration
protected void DoPrfStep()
DuplicateKey(Gost28147)
Declaration
protected static Gost28147CryptoServiceProvider DuplicateKey(Gost28147 src)
Parameters
Returns
HashSize()
Declaration
protected abstract int HashSize()
Returns
InitializeHmac()
Declaration
protected abstract void InitializeHmac()
Implements