Class DesEdeParameters
java.lang.Object
org.bouncycastle.crypto.internal.params.DesEdeParameters
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisActuallyDesKey(byte[] key) static booleanisReal2Key(byte[] key) static booleanisReal3Key(byte[] key) static booleanisRealEDEKey(byte[] key) static booleanisWeakKey(byte[] key, int offset, int length) return true if the passed in key is a DES-EDE weak key.
-
Field Details
-
DES_EDE_KEY_LENGTH
public static final int DES_EDE_KEY_LENGTH- See Also:
-
-
Constructor Details
-
DesEdeParameters
public DesEdeParameters()
-
-
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 keyoffset- offset into the byte array the key starts atlength- number of bytes making up the key
-
isRealEDEKey
public static boolean isRealEDEKey(byte[] key) -
isReal2Key
public static boolean isReal2Key(byte[] key) -
isReal3Key
public static boolean isReal3Key(byte[] key) -
isActuallyDesKey
public static boolean isActuallyDesKey(byte[] key)
-