| Modifier and Type | Field and Description |
|---|---|
protected int |
hLen |
protected javax.crypto.Mac |
mac |
protected java.lang.String |
macAlgorithm |
| Constructor and Description |
|---|
MacBasedPRF(java.lang.String macAlgorithm)
Create Mac-based Pseudo Random Function.
|
MacBasedPRF(java.lang.String macAlgorithm,
java.lang.String provider) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doFinal(byte[] M)
Pseudo Random Function
|
int |
getHLen()
Query block size of underlying algorithm/mechanism.
|
void |
init(byte[] P)
Initialize this instance with the user-supplied password.
|
protected javax.crypto.Mac mac
protected int hLen
protected java.lang.String macAlgorithm
public MacBasedPRF(java.lang.String macAlgorithm)
macAlgorithm - Mac algorithm to use, i.e. HMacSHA1 or HMacMD5.public MacBasedPRF(java.lang.String macAlgorithm,
java.lang.String provider)