Name

RC5ParameterSpec

Synopsis

This class is a transparent representation of the parameters used by the RC5 encryption algorithm. An object of this class initializes a Cipher object that implements RC5. Note that the “SunJCE” provider supplied by Sun does not implement RC5.

javax.crypto.spec.RC5ParameterSpec

Figure 17-26. javax.crypto.spec.RC5ParameterSpec

public class RC5ParameterSpec implements java.security.spec.AlgorithmParameterSpec {
// Public Constructors
     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);  
// Public Instance Methods
     public byte[ ] getIV( );  
     public int getRounds( );  
     public int getVersion( );  
     public int getWordSize( );  
// Public Methods Overriding Object
     public boolean equals(Object obj);  
     public int hashCode( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.