Top Fields Constructors Methods
org.bouncycastle.jcajce.provider.asymmetric.util

public Class DESUtil

extends Object
Class Inheritance
Imports
java.util.HashSet, .Set, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.util.Strings

Field Summary

Modifier and TypeField and Description
private static final Set<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
isDES(String algorithmID)

public static void
setOddParity(byte[]
the byte array to set the parity on.
bytes
)

DES Keys use the LSB as the odd parity bit.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

desback to summary
private static final Set<String> des

Constructor Detail

DESUtilback to summary
public DESUtil()

Method Detail

isDESback to summary
public static boolean isDES(String algorithmID)
setOddParityback to summary
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:byte[]

the byte array to set the parity on.