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
Datei anzeigen Open project: drizzt/KeePass-SerpentCipher

Private Properties

Property Type Description

Public Methods

Method 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 method

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

GenerateKey() public method

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

GenerateNonWeakKey() public method

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

IsWeakKey() public abstract method

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