SymmetricAlgorithmBase: CheckForWeakKey

CheckForWeakKey

Used for implementations that must check for some kind of weak or semi-weak key.



 Public Event CheckForWeakKey(
	  ByRef RgbKey ( ) As Byte,
	  ByRef Ex As Exception )

Parameters

RgbKey
[ByRef] Byte. The key to be checked for weakness.
Ex
[ByRef] Exception. The exception indicating the key is weak and should be thrown.

Remarks

If the RgbKey is considered weak by the current symmetric algorithm, it should set Ex to an appropriate Exception object. Typically a CryptographicException is set.

See Also

Project CorLib Overview

Class SymmetricAlgorithmBase Overview