Top Fields Constructors Methods
org.bouncycastle.jcajce.provider

pack-priv 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
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean
isDES(String algorithmID)

pack-priv 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
pack-priv DESUtil()

Method Detail

isDESback to summary
pack-priv static boolean isDES(String algorithmID)
setOddParityback to summary
pack-priv 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.