C# Класс DotNetCrypt.SymmetricAlgorithmBase

An abstract base class for managed implementations of SymmetricAlgorithm.
This class introduces the ExtendedMode property, allowing a wider range of block cipher chaining modes to be used. For this reason, the Mode property is now marked with the ObsoleteAttribute.
Наследование: System.Security.Cryptography.SymmetricAlgorithm, ISymmetricAlgorithm
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
GenerateIV ( ) : void

Generates a random initialization vector (P:System.Security.Cryptography.SymmetricAlgorithm.IV) to use for the algorithm.

GenerateKey ( ) : void

Generates a random non-weak key (P:System.Security.Cryptography.SymmetricAlgorithm.Key) to use for the algorithm.

GenerateNonWeakKey ( ) : byte[]

Returns a random non-weak key (P:System.Security.Cryptography.SymmetricAlgorithm.Key) to use for the algorithm.

IsWeakKey ( byte rgbKey ) : bool

Determines whether the specified key is weak.

Описание методов

GenerateIV() публичный Метод

Generates a random initialization vector (P:System.Security.Cryptography.SymmetricAlgorithm.IV) to use for the algorithm.
public GenerateIV ( ) : void
Результат void

GenerateKey() публичный Метод

Generates a random non-weak key (P:System.Security.Cryptography.SymmetricAlgorithm.Key) to use for the algorithm.
public GenerateKey ( ) : void
Результат void

GenerateNonWeakKey() публичный Метод

Returns a random non-weak key (P:System.Security.Cryptography.SymmetricAlgorithm.Key) to use for the algorithm.
public GenerateNonWeakKey ( ) : byte[]
Результат byte[]

IsWeakKey() публичный абстрактный Метод

Determines whether the specified key is weak.
public abstract IsWeakKey ( byte rgbKey ) : bool
rgbKey byte /// The secret key to test for weakness. ///
Результат bool