|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.pkcs.pkcs11.parameters.CbcEncryptDataParameters
This class encapsulates parameters CBC key derivation algorithms.
Field Summary | |
protected int |
blockSize_
This is the block size in byte of the underlying cipher, e.g. |
protected byte[] |
data_
The data to be used in the key derivation. |
protected byte[] |
iv_
The initialization vector for CBC mode of the cipher. |
Constructor Summary | |
protected |
CbcEncryptDataParameters(int blockSize,
byte[] iv,
byte[] data)
Create a new CbcEncryptDataParameters object with the given IV and data. |
Method Summary | |
java.lang.Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(java.lang.Object otherObject)
Compares all member variables of this object with the other object. |
int |
getBlockSize()
Get the block size of the underlying cipher in bytes. |
byte[] |
getData()
Get the data for key derivation. |
byte[] |
getInitializationVector()
Get the initialization vector for CBC mode. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
void |
setData(byte[] data)
Set the key derivation data. |
void |
setInitializationVector(byte[] iv)
Set the initialization vector for CBC mode. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface iaik.pkcs.pkcs11.parameters.Parameters |
getPKCS11ParamsObject |
Field Detail |
protected int blockSize_
protected byte[] iv_
protected byte[] data_
Constructor Detail |
protected CbcEncryptDataParameters(int blockSize, byte[] iv, byte[] data)
blockSize
- The block size of the cipher.iv
- The initialization vector which's length must be block size.data
- The key derivation data which's length must be multiple of the block size.Method Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public int getBlockSize()
public byte[] getInitializationVector()
public void setInitializationVector(byte[] iv)
iv
- The initialization vector.public byte[] getData()
public void setData(byte[] data)
data
- The key derivation data.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other object to compare to.public int hashCode()
hashCode
in class java.lang.Object
|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |