DESKeySpec.IsWeak(Byte[], Int32) Method

Definition

Checks if the given DES key material is weak or semi-weak.

[Android.Runtime.Register("isWeak", "([BI)Z", "")]
public static bool IsWeak (byte[]? key, int offset);
[<Android.Runtime.Register("isWeak", "([BI)Z", "")>]
static member IsWeak : byte[] * int -> bool

Parameters

key
Byte[]

the buffer with the DES key material.

offset
Int32

the offset in key, where the DES key material starts.

Returns

true if the given DES key material is weak or semi-weak, false otherwise.

Attributes

Exceptions

if the length of the key data starting at offset is less than 8, or it is null.

Remarks

Checks if the given DES key material is weak or semi-weak.

Java documentation for javax.crypto.spec.DESKeySpec.isWeak(byte[], int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to