|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.crypto.jce.spec.BlockCipherParameterSpec
Block cipher parameters in GNU Crypto are the cipher's name, its block and key sizes, and an optional initialization vector.
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected byte[] iv
protected int blockSize
protected int keySize
Constructor Detail |
public BlockCipherParameterSpec(byte[] iv, int blockSize, int keySize)
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.public BlockCipherParameterSpec(int blockSize, int keySize)
blockSize
- The cipher's block size, in bytes.keySize
- The cipher's key size, in bytes.Method Detail |
public byte[] getIV()
null
if there is no IV.
public int getBlockSize()
public int getKeySize()
public java.lang.String toString()
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |