DESKeySpec.IsParityAdjusted(Byte[], Int32) Method

Definition

Checks if the given DES key material, starting at offset inclusive, is parity-adjusted.

[Android.Runtime.Register("isParityAdjusted", "([BI)Z", "")]
public static bool IsParityAdjusted (byte[]? key, int offset);
[<Android.Runtime.Register("isParityAdjusted", "([BI)Z", "")>]
static member IsParityAdjusted : 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 parity-adjusted, false otherwise.

Attributes

Exceptions

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

Remarks

Checks if the given DES key material, starting at offset inclusive, is parity-adjusted.

Java documentation for javax.crypto.spec.DESKeySpec.isParityAdjusted(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