public class IvParameterSpec extends Object implements AlgorithmParameterSpec
Constructor and Description |
---|
IvParameterSpec(byte[] iv)
创建一个ivparameterspec对象使用字节
iv 为IV.
|
IvParameterSpec(byte[] iv, int offset, int len)
创建
iv 使用第一
len 字节ivparameterspec对象,在
offset 包容的开始,为IV.
|
public IvParameterSpec(byte[] iv)
iv
为IV.
iv
-缓冲区的内容复制到防止后续修改四缓冲区。
null
iv
NullPointerException
public IvParameterSpec(byte[] iv, int offset, int len)
iv
使用第一
len
字节ivparameterspec对象,在
offset
包容的开始,作为第四
构成的四字节被那些iv[offset]
和iv[offset+len-1]
包容之间。
iv
-在
offset
包括缓冲区开始的第一
len
字节复制到防止后续修改四缓冲区。
offset
iv
IV开始偏移。
len
-四字节数。
IllegalArgumentException
-如果
iv
是
null
或
(iv.length - offset < len)
ArrayIndexOutOfBoundsException
-如果
offset
或
len
指数字节外
iv
扔。
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.