Class DESUtil
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.asymmetric.util.DESUtil
-
public class DESUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description DESUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isDES(String algorithmID)
static void
setOddParity(byte[] bytes)
DES Keys use the LSB as the odd parity bit.
-
-
-
Method Detail
-
isDES
public static boolean isDES(String algorithmID)
-
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.
-
-