C# Class 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.
Inheritance: System.Security.Cryptography.SymmetricAlgorithm, ISymmetricAlgorithm
Afficher le fichier Open project: drizzt/KeePass-SerpentCipher

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

GenerateIV() public méthode

Generates a random initialization vector (P:System.Security.Cryptography.SymmetricAlgorithm.IV) to use for the algorithm.
public GenerateIV ( ) : void
Résultat void

GenerateKey() public méthode

Generates a random non-weak key (P:System.Security.Cryptography.SymmetricAlgorithm.Key) to use for the algorithm.
public GenerateKey ( ) : void
Résultat void

GenerateNonWeakKey() public méthode

Returns a random non-weak key (P:System.Security.Cryptography.SymmetricAlgorithm.Key) to use for the algorithm.
public GenerateNonWeakKey ( ) : byte[]
Résultat byte[]

IsWeakKey() public abstract méthode

Determines whether the specified key is weak.
public abstract IsWeakKey ( byte rgbKey ) : bool
rgbKey byte /// The secret key to test for weakness. ///
Résultat bool