Save This Page
Home » openjdk-7 » javax » crypto » spec » [javadoc | source]
public class: RC5ParameterSpec [javadoc | source]

All Implemented Interfaces:

This class specifies the parameters used with the RC5 algorithm.

The parameters consist of a version number, a rounds count, a word size, and optionally an initialization vector (IV) (only in feedback mode).

This class can be used to initialize a Cipher object that implements the RC5 algorithm as supplied by RSA Security Inc., or any parties authorized by RSA Security.

 public RC5ParameterSpec(int version,
    int rounds,
    int wordSize) 
 public RC5ParameterSpec(int version,
    int rounds,
    int wordSize,
    byte[] iv) 
 public RC5ParameterSpec(int version,
    int rounds,
    int wordSize,
    byte[] iv,
    int offset) 
Method from javax.crypto.spec.RC5ParameterSpec Summary:
equals,   getIV,   getRounds,   getVersion,   getWordSize,   hashCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.crypto.spec.RC5ParameterSpec Detail:
 public boolean equals(Object obj) 
    Tests for equality between the specified object and this object. Two RC5ParameterSpec objects are considered equal if their version numbers, number of rounds, word sizes, and IVs are equal. (Two IV references are considered equal if both are null.)
 public byte[] getIV() 
    Returns the IV or null if this parameter set does not contain an IV.
 public int getRounds() 
    Returns the number of rounds.
 public int getVersion() 
    Returns the version.
 public int getWordSize() 
    Returns the word size in bits.
 public int hashCode() 
    Calculates a hash code value for the object. Objects that are equal will also have the same hashcode.