To check if the key used is weak.
Namespace: LLCryptoLib.CryptoAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public bool IsWeakKey { get; } |
Visual Basic |
---|
Public ReadOnly Property IsWeakKey As Boolean Get |
Visual C++ |
---|
public: property bool IsWeakKey { bool get (); } |
Remarks
If a key is weak i means that eventually an attack is easier to apply than
just a simple brute force on keys. Due to the randomness in the key setup process
such a case however is unlikely to happen, yet checking after each setup might still
be the preferred way. In the case of a weak key detected a simple recreation with a
different key (or just a different salt value) is the recommended soltution. For
performance reasons we don't do the weak key check during the initialization, but on
demand only, and then only once to determine the flag.