Class Gost3412_2015_Kexp15
Провайдер алгоритма ключа kexp15.
Inheritance
Implements
Inherited Members
Namespace: CryptoPro.Security.Cryptography
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
public abstract class Gost3412_2015_Kexp15 : SymmetricAlgorithm, IDisposable
Fields
BitsPerByte
Бит в байте.
Declaration
protected const int BitsPerByte = 8
Field Value
Type | Description |
---|---|
int |
Properties
DefaultIvSize
Размер синхропосылки - половина размера блока.
Declaration
public int DefaultIvSize { get; }
Property Value
Type | Description |
---|---|
int |
IV
Gets or sets the initialization vector (IV) for the symmetric algorithm.
Declaration
public override byte[] IV { get; set; }
Property Value
Type | Description |
---|---|
byte[] | The initialization vector. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | An attempt was made to set the initialization vector to null. |
CryptographicException | An attempt was made to set the initialization vector to an invalid size. |
KeySize
Gets or sets the size, in bits, of the secret key used by the symmetric algorithm.
Declaration
public override int KeySize { get; set; }
Property Value
Type | Description |
---|---|
int | The size, in bits, of the secret key used by the symmetric algorithm. |
Overrides
Exceptions
Type | Condition |
---|---|
CryptographicException | The key size is not valid. |
Methods
CreateDecryptor(byte[], byte[])
When overridden in a derived class, creates a symmetric decryptor object with the specified Key property and initialization vector (IV).
Declaration
public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
Parameters
Type | Name | Description |
---|---|---|
byte[] | rgbKey | The secret key to use for the symmetric algorithm. |
byte[] | rgbIV | The initialization vector to use for the symmetric algorithm. |
Returns
Type | Description |
---|---|
ICryptoTransform | A symmetric decryptor object. |
Overrides
CreateEncryptor(byte[], byte[])
When overridden in a derived class, creates a symmetric encryptor object with the specified Key property and initialization vector (IV).
Declaration
public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
Parameters
Type | Name | Description |
---|---|---|
byte[] | rgbKey | The secret key to use for the symmetric algorithm. |
byte[] | rgbIV | The initialization vector to use for the symmetric algorithm. |
Returns
Type | Description |
---|---|
ICryptoTransform | A symmetric encryptor object. |
Overrides
GenerateIV()
When overridden in a derived class, generates a random initialization vector (IV) to use for the algorithm.
Declaration
public override void GenerateIV()
Overrides
GenerateKey()
When overridden in a derived class, generates a random key (Key) to use for the algorithm.
Declaration
public override void GenerateKey()
Overrides
Unwrap3412_2015_K(byte[])
Импортирует (расшифровывает) секретный ключ.
Declaration
public abstract SymmetricAlgorithm Unwrap3412_2015_K(byte[] wrapped)
Parameters
Type | Name | Description |
---|---|---|
byte[] | wrapped | Зашифрованный секретный ключ. |
Returns
Type | Description |
---|---|
SymmetricAlgorithm |
Unwrap3412_2015_M(byte[])
Импортирует (расшифровывает) секретный ключ.
Declaration
public abstract SymmetricAlgorithm Unwrap3412_2015_M(byte[] wrapped)
Parameters
Type | Name | Description |
---|---|---|
byte[] | wrapped | Зашифрованный секретный ключ. |
Returns
Type | Description |
---|---|
SymmetricAlgorithm |
Wrap(Gost3412_2015_K, GostKeyWrapMethod)
Экспортирует (шифрует) секретный ключ.
Declaration
public abstract byte[] Wrap(Gost3412_2015_K prov, GostKeyWrapMethod method)
Parameters
Type | Name | Description |
---|---|---|
Gost3412_2015_K | prov | Шифруемый ключ. |
GostKeyWrapMethod | method | Алгоритм экспорта ключа. |
Returns
Type | Description |
---|---|
byte[] | Зашифрованный симметричный ключ |
Wrap(Gost3412_2015_M, GostKeyWrapMethod)
Экспортирует (шифрует) секретный ключ.
Declaration
public abstract byte[] Wrap(Gost3412_2015_M prov, GostKeyWrapMethod method)
Parameters
Type | Name | Description |
---|---|---|
Gost3412_2015_M | prov | Шифруемый ключ. |
GostKeyWrapMethod | method | Алгоритм экспорта ключа. |
Returns
Type | Description |
---|---|
byte[] | Зашифрованный симметричный ключ |