|
Oracle Security Developer Tools Crypto FIPS Java API Reference 11g (11.1.1) E10696-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.SymmetricKey
oracle.security.crypto.core.DESKey
public final class DESKey
Subclass of SymmetricKey that provides the facilities to perform checks against the possible weakness of the SymmetricKey as it might be used in DES operations.
Method Summary | |
---|---|
static boolean |
checkParity(SymmetricKey key, int parity) Check the least significant bit of each key byte for the parity indicated -- 1 for odd parity or 0 for even parity. |
static boolean |
isPossiblyWeak(SymmetricKey key) Determines whether or not a given DES key is considered "possibly weak". |
static boolean |
isSemiWeak(SymmetricKey key) Determines whether or not a given DES key is considered "semi-weak". |
static boolean |
isWeak(SymmetricKey key) Determines whether or not a given DES key is considered "weak". |
static void |
setParity(SymmetricKey key, int parity) Set the least significant bit of each key byte so that it has the parity indicated -- 1 for odd parity or 0 for even parity. |
Methods inherited from class oracle.security.crypto.core.SymmetricKey |
---|
assertAllowExport, clone, equals, erase, finalize, getAlgID, getAlgorithm, getAllowExport, getBitLength, getBytes, getEncoded, getFormat, keySize, readExternal, setAlgID, setAllowExport, setBytes, toString, writeExternal |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static boolean isWeak(SymmetricKey key)
public static boolean isSemiWeak(SymmetricKey key)
public static boolean isPossiblyWeak(SymmetricKey key)
public static boolean checkParity(SymmetricKey key, int parity)
1
for odd parity or 0
for even parity.key
- The DES key to check.parity
- 1
for odd parity or 0
for even parity.true
if each byte has the specified parity, otherwise false
.public static void setParity(SymmetricKey key, int parity)
1
for odd parity or 0
for even parity.key
- The DES key whose parity is to be set.parity
- 1
for odd parity or 0
for even parity.
|
Oracle Security Developer Tools Crypto FIPS Java API Reference 11g (11.1.1) E10696-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |