Class DESedeParameters

All Implemented Interfaces:
CipherParameters

public class DESedeParameters extends DESParameters
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     

    Fields inherited from class org.bouncycastle.crypto.params.DESParameters

    DES_KEY_LENGTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    DESedeParameters(byte[] key)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isReal2Key(byte[] key, int offset)
    return true if the passed in key is a real 2 part DES-EDE key.
    static boolean
    isReal3Key(byte[] key, int offset)
    return true if the passed in key is a real 3 part DES-EDE key.
    static boolean
    isRealEDEKey(byte[] key, int offset)
    return true if the passed in key is a real 2/3 part DES-EDE key.
    static boolean
    isWeakKey(byte[] key, int offset)
    return true if the passed in key is a DES-EDE weak key.
    static boolean
    isWeakKey(byte[] key, int offset, int length)
    return true if the passed in key is a DES-EDE weak key.

    Methods inherited from class org.bouncycastle.crypto.params.DESParameters

    setOddParity

    Methods inherited from class org.bouncycastle.crypto.params.KeyParameter

    copyTo, getKey, getKeyLength, reverse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DESedeParameters

      public DESedeParameters(byte[] key)
  • Method Details

    • isWeakKey

      public static boolean isWeakKey(byte[] key, int offset, int length)
      return true if the passed in key is a DES-EDE weak key.
      Parameters:
      key - bytes making up the key
      offset - offset into the byte array the key starts at
      length - number of bytes making up the key
    • isWeakKey

      public static boolean isWeakKey(byte[] key, int offset)
      return true if the passed in key is a DES-EDE weak key.
      Parameters:
      key - bytes making up the key
      offset - offset into the byte array the key starts at
    • isRealEDEKey

      public static boolean isRealEDEKey(byte[] key, int offset)
      return true if the passed in key is a real 2/3 part DES-EDE key.
      Parameters:
      key - bytes making up the key
      offset - offset into the byte array the key starts at
    • isReal2Key

      public static boolean isReal2Key(byte[] key, int offset)
      return true if the passed in key is a real 2 part DES-EDE key.
      Parameters:
      key - bytes making up the key
      offset - offset into the byte array the key starts at
    • isReal3Key

      public static boolean isReal3Key(byte[] key, int offset)
      return true if the passed in key is a real 3 part DES-EDE key.
      Parameters:
      key - bytes making up the key
      offset - offset into the byte array the key starts at