public abstract class CbcEncryptDataParameters extends java.lang.Object implements Parameters
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
protected |
CbcEncryptDataParameters(int blockSize,
byte[] iv,
byte[] data)
Create a new CbcEncryptDataParameters object with the given IV and data.
|
Modifier and Type | Method and Description |
---|---|
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.
|
finalize, getClass, notify, notifyAll, wait, wait, wait
getPKCS11ParamsObject
protected int blockSize_
protected byte[] iv_
protected byte[] data_
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.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 JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9