gnu.crypto.jce.spec
public class BlockCipherParameterSpec extends Object implements AlgorithmParameterSpec
Version: $Revision: 1.2 $
Field Summary | |
---|---|
protected int | blockSize
The cipher's block size, in bytes. |
protected byte[] | iv
The initialization vector. |
protected int | keySize
The cipher's key size, in bytes. |
Constructor Summary | |
---|---|
BlockCipherParameterSpec(byte[] iv, int blockSize, int keySize)
Create a new parameter specification.
| |
BlockCipherParameterSpec(int blockSize, int keySize)
Create a new parameter specification with no IV.
|
Method Summary | |
---|---|
int | getBlockSize()
Get the block size of the cipher these parameters are for.
|
byte[] | getIV()
Get the initialization vector for the cipher, or null
if there is no IV.
|
int | getKeySize()
Get the key size of the cipher these parameters are for.
|
String | toString() |
Parameters: iv The initialization vector, or null
if
there is no IV. blockSize The cipher's block size, in bytes. keySize The cipher's key size, in bytes.
Parameters: blockSize The cipher's block size, in bytes. keySize The cipher's key size, in bytes.
Returns: The block size.
null
if there is no IV.
Returns: The IV.
Returns: The block size.