DESUtil (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.jcajce.provider.asymmetric.util

## Class DESUtil

- java.lang.Object
- - org.bouncycastle.jcajce.provider.asymmetric.util.DESUtil

-     public class DESUtil
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DESUtil()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `isDES(java.lang.String algorithmID)`
    `static void` | `setOddParity(byte[] bytes)` DES Keys use the LSB as the odd parity bit.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DESUtil

          public DESUtil()

  - ### Method Detail

    - #### isDES

          public static boolean isDES(java.lang.String algorithmID)

    - #### setOddParity

          public static void setOddParity(byte[] bytes)

      DES Keys use the LSB as the odd parity bit. This can be used to check for corrupt keys.
      Parameters:
        `bytes` - the byte array to set the parity on.