Sharkysoft home

lava.security.des.spec
Class DesPermutedKeyShifts

java.lang.Object
  |
  +--lava.security.des.spec.DesPermutedKeyShifts

public class DesPermutedKeyShifts
extends java.lang.Object

Left shifts per round.

Details: This class contains a table of the number of left shifts per round, as defined in FIPS PUB 46-2.

Since:
1999.08.04
Author:
Sharky

Constructor Summary
DesPermutedKeyShifts()
           
 
Method Summary
static int getFipsValue(int fipsindex)
          Returns table value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesPermutedKeyShifts

public DesPermutedKeyShifts()
Method Detail

getFipsValue

public static final int getFipsValue(int fipsindex)
Returns table value.

Details: This function returns the indexed FIPS value from this table. Indeces are according to the FIPS publication.

Parameters:
fipsindex - the index (1-16)
Returns:
the indexed value

Sharkysoft home