TripleDESStatic: IsWeakKey

IsWeakKey

Determines if a key is weak or not.



 Public Function IsWeakKey(
	  ByRef RgbKey ( ) As Byte ) As Boolean

Parameters

RgbKey
[ByRef] Byte. The key to be tested for weakness.

Return Values

Boolean -  Returns True if the key is weak, or False if not.

Remarks

A weak key is determined if the first 64 bits are equal to the second 64 bits for a 128 bit key. For a 192 bit key, weakness is determined if the first 64 bits is equal to the second 64 bits, or if the second 64 bits is equal to the third 64 bits.

See Also

Project CorLib Overview

Class TripleDESStatic Overview