java.lang.Objectjavax.crypto.spec.RC5ParameterSpec
public class RC5ParameterSpec
     此类指定随同 RC5 算法使用的参数。
参数由一个版本号、一个 round 计数、一个 word 大小以及一个任意初始化向量 (IV)(仅用于反馈模式)组成。
 可以使用此类来初始化一个实现了 RSA Security Inc. 或 RSA Security 授权的任何参与方所提供的 RC5 算法的 Cipher 对象。 
| 构造方法摘要 | |
|---|---|
RC5ParameterSpec(int version, int rounds, int wordSize) 根据给定的版本、round 的数量以及 word 大小(以位为单位)为 RC5 构造一个参数集合。  |  
    |
RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) 根据给定的版本、round 的数量、word 大小(以位为单位)以及 IV 为 RC5 构造一个参数集合。  |  
    |
RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int offset) 根据给定的版本、round 的数量、word 大小(以位为单位)以及 IV 为 RC5 构造一个参数集合。  |  
    |
| 方法摘要 | |
|---|---|
  boolean |  
     equals(Object obj) 测试给定对象与此对象的相等性。  |  
    
  byte[] |  
     getIV() 返回 IV,如果此参数集没有包含 IV 则返回 null。  |  
    
  int |  
     getRounds() 返回 rounds 的数量。  |  
    
  int |  
     getVersion() 返回版本。  |  
    
  int |  
     getWordSize() 返回以位为单位的 word 大小。  |  
    
  int |  
     hashCode() 计算此对象的哈希码值。  |  
    
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |  
    
| 构造方法详细信息 | 
|---|
public RC5ParameterSpec(int version,
                        int rounds,
                        int wordSize) 
  
version - 版本。
     rounds - rounds 的数量。
     wordSize - 以位为单位的 word 大小。
     
public RC5ParameterSpec(int version,
                        int rounds,
                        int wordSize,
                        byte[] iv) 
   注意,IV 的大小(块大小)必须是 word 大小的两倍。组成 IV 的字节在 iv[0] 和 iv[2*(wordSize/8)-1]] 范围内(包含两者)。 
version - 版本。
     rounds - rounds 的数量。
     wordSize - 以位为单位的 word 大小。
     iv - 具有 IV 的缓冲区。复制该缓冲区的前 
      2*(wordSize/8) 个字节来防止后续修改。 
     IllegalArgumentException - 如果 
      iv 为 
      null 或者 
      (iv.length < 2 * (wordSize / 8))
     
public RC5ParameterSpec(int version,
                        int rounds,
                        int wordSize,
                        byte[] iv,
                        int offset) 
   此 IV 取自 iv,始于且包含 offset。注意,始于且包含 offset 的 IV 的大小(块大小)必须是 word 大小的两倍。组成 IV 的字节在 iv[offset] 和 iv[offset+2*(wordSize/8)-1] 范围内(包含两者)。 
version - 版本。
     rounds - rounds 的数量。
     wordSize - 以位为单位的 word 大小。
     iv - 具有 IV 的缓冲区。复制该缓冲区的始于且包含 
      offset 的前 
      2*(wordSize/8) 个字节来防止后续修改。
     offset - 
      iv 中的偏移量,IV 从此处开始。 
     IllegalArgumentException - 如果 
      iv 为 
      null 或者 
      (iv.length - offset < 2 * (wordSize / 8))
     | 方法详细信息 | 
|---|
public int getVersion()
public int getRounds()
public int getWordSize()
public byte[] getIV()
public boolean equals(Object obj)
obj - 要与此对象进行相等性测试的对象。 
     obj 为 null 或其他情况则返回 false。
     Object.hashCode(), 
      Hashtable
     public int hashCode()
Object.equals(java.lang.Object), 
      Hashtable