Class DESUtil
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.util.DESUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static void
setOddParity
(byte[] bytes) DES Keys use the LSB as the odd parity bit.
-
Constructor Details
-
DESUtil
public DESUtil()
-
-
Method Details
-
isDES
-
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.
-