org.apache.geronimo.util.crypto.params
Class DESedeParameters
java.lang.Object
org.apache.geronimo.util.crypto.params.KeyParameter
org.apache.geronimo.util.crypto.params.DESParameters
org.apache.geronimo.util.crypto.params.DESedeParameters
- All Implemented Interfaces:
- CipherParameters
public class DESedeParameters
- extends DESParameters
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DES_EDE_KEY_LENGTH
public static final int DES_EDE_KEY_LENGTH
- See Also:
- Constant Field Values
DESedeParameters
public DESedeParameters(byte[] key)
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
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 keyoffset
- offset into the byte array the key starts at
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.