|
Bouncy Castle Cryptography Library 1.79 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.bouncycastle.jcajce.spec.SkeinParameterSpec
Parameters for the Skein hash function - a series of byte[] strings identified by integer tags.
Parameterised Skein can be used for:
MAC generation, by providing a key.
Randomised hashing, by providing a nonce.
A hash function for digital signatures, associating a
public key with the message digest.
A key derivation function, by providing a
key identifier.
Personalised hashing, by providing a
recommended format or
arbitrary personalisation string.
SkeinEngine,
SkeinDigest,
SkeinMac| Inner Class Summary | |
static class |
SkeinParameterSpec.Builder
A builder for SkeinParameterSpec. |
| Field Summary | |
static int |
PARAM_TYPE_CONFIG
The parameter type for the Skein configuration block: {@value #PARAM_TYPE_CONFIG}. |
static int |
PARAM_TYPE_KEY
The parameter type for a secret key, supporting MAC or KDF functions: {@value #PARAM_TYPE_KEY}. |
static int |
PARAM_TYPE_KEY_IDENTIFIER
The parameter type for a key identifier string: {@value #PARAM_TYPE_KEY_IDENTIFIER}. |
static int |
PARAM_TYPE_MESSAGE
The parameter type for the message: {@value #PARAM_TYPE_MESSAGE}. |
static int |
PARAM_TYPE_NONCE
The parameter type for a nonce: {@value #PARAM_TYPE_NONCE}. |
static int |
PARAM_TYPE_OUTPUT
The parameter type for the output transformation: {@value #PARAM_TYPE_OUTPUT}. |
static int |
PARAM_TYPE_PERSONALISATION
The parameter type for a personalisation string: {@value #PARAM_TYPE_PERSONALISATION}. |
static int |
PARAM_TYPE_PUBLIC_KEY
The parameter type for a public key: {@value #PARAM_TYPE_PUBLIC_KEY}. |
| Constructor Summary | |
SkeinParameterSpec()
|
|
| Method Summary | |
byte[] |
getKey()
Obtains the value of the key parameter, or null if not
set. |
byte[] |
getKeyIdentifier()
Obtains the value of the key identifier parameter, or
null if not set. |
byte[] |
getNonce()
Obtains the value of the nonce parameter, or null if
not set. |
java.util.Map |
getParameters()
Obtains a map of type (Integer) to value (byte[]) for the parameters tracked in this object. |
byte[] |
getPersonalisation()
Obtains the value of the personalisation parameter, or
null if not set. |
byte[] |
getPublicKey()
Obtains the value of the public key parameter, or
null if not set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PARAM_TYPE_KEY
public static final int PARAM_TYPE_CONFIG
public static final int PARAM_TYPE_PERSONALISATION
public static final int PARAM_TYPE_PUBLIC_KEY
public static final int PARAM_TYPE_KEY_IDENTIFIER
public static final int PARAM_TYPE_NONCE
public static final int PARAM_TYPE_MESSAGE
public static final int PARAM_TYPE_OUTPUT
| Constructor Detail |
public SkeinParameterSpec()
| Method Detail |
public java.util.Map getParameters()
public byte[] getKey()
key parameter, or null if not
set.public byte[] getPersonalisation()
personalisation parameter, or
null if not set.public byte[] getPublicKey()
public key parameter, or
null if not set.public byte[] getKeyIdentifier()
key identifier parameter, or
null if not set.public byte[] getNonce()
nonce parameter, or null if
not set.
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||