public class RC2ParameterSpec extends Object implements AlgorithmParameterSpec
Constructor and Description |
---|
RC2ParameterSpec(int effectiveKeyBits)
构造一个参数集RC2从给定的有效密钥大小(位)。
|
RC2ParameterSpec(int effectiveKeyBits, byte[] iv)
构造一个参数集RC2从给定的有效密钥大小(位)和一个8 IV.
|
RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset)
构造一个参数集RC2从给定的有效密钥大小(位)和IV.
|
public RC2ParameterSpec(int effectiveKeyBits)
effectiveKeyBits
-位有效密钥大小。
public RC2ParameterSpec(int effectiveKeyBits, byte[] iv)
构成的四字节之间iv[0]
和iv[7]
包容。
effectiveKeyBits
-位有效密钥大小。
iv
与8字节缓冲区四缓冲区的第一个8字节复制到防止后续的修改。
IllegalArgumentException
-如果
iv
是空的。
public RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset)
四是从iv
,开始在offset
包容。构成的四字节之间iv[offset]
和iv[offset+7]
包容。
effectiveKeyBits
-位有效密钥大小。
iv
-第一个8字节的缓冲区开始在
offset
包容复制以防止后续修改的四缓冲区。
offset
-
iv
在8字节IV开始偏移。
IllegalArgumentException
-如果
iv
是空的。
public int getEffectiveKeyBits()
public byte[] getIV()
public boolean equals(Object obj)
equals
方法重写,继承类
Object
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.