public class RC2ParameterSpec extends Object implements AlgorithmParameterSpec
| Constructor and Description |
|---|
RC2ParameterSpec(int effectiveKeyBits)
根据给定的有效密钥大小(以位为单位)构建RC2的参数集。
|
RC2ParameterSpec(int effectiveKeyBits, byte[] iv)
从给定的有效密钥大小(以比特)和8字节的IV构造一个RC2参数集。
|
RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset)
从给定的有效密钥大小(以位)和IV构造一个RC2参数集。
|
public RC2ParameterSpec(int effectiveKeyBits)
effectiveKeyBits - 有效的密钥大小(以比特为单位)。
public RC2ParameterSpec(int effectiveKeyBits,
byte[] iv)
组成IV的字节在之间iv[0]和iv[7]以下。
effectiveKeyBits - 有效的密钥大小(以比特为单位)。
iv - 具有8字节IV的缓冲区。
复制缓冲区的前8个字节以防止后续修改。
IllegalArgumentException - 如果
iv为空。
public RC2ParameterSpec(int effectiveKeyBits,
byte[] iv,
int offset)
所述IV取自iv ,起始于offset以下。 构成IV的字节是在iv[offset]和iv[offset+7]之间的字节。
effectiveKeyBits - 有效密钥大小(以比特为单位)。
iv - 具有IV的缓冲区。
前8个字节在开始缓冲的offset包容被复制到防止后续修改。
offset -
iv中的8字节IV启动时的偏移量。
IllegalArgumentException - 如果
iv为空。
public int getEffectiveKeyBits()
public byte[] getIV()
public boolean equals(Object obj)
equals在
Object
obj - 要测试与此对象相等的对象。
obj为
obj为空。
Object.hashCode() , HashMap
public int hashCode()
hashCode在类别
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.