Parameterised Skein can be used for:
key.nonce.public key with the message digest.key identifier.recommended format or
arbitrary personalisation string.org.bouncycastle.crypto.digests.SkeinEngine , org.bouncycastle.crypto.digests.SkeinDigest , org.bouncycastle.crypto.macs.SkeinMac
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | PARAM_TYPE_CONFIG
The parameter type for the Skein configuration block: 4. |
| public static final int | PARAM_TYPE_KEY
The parameter type for a secret key, supporting MAC or KDF functions: 0. |
| public static final int | PARAM_TYPE_KEY_IDENTIFIER
The parameter type for a key identifier string: 16. |
| public static final int | PARAM_TYPE_MESSAGE
The parameter type for the message: 48. |
| public static final int | PARAM_TYPE_NONCE
The parameter type for a nonce: 20. |
| public static final int | PARAM_TYPE_OUTPUT
The parameter type for the output transformation: 63. |
| public static final int | PARAM_TYPE_PERSONALISATION
The parameter type for a personalisation string: 8. |
| public static final int | PARAM_TYPE_PUBLIC_KEY
The parameter type for a public key: 12. |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public byte[] | |
| public byte[] | |
| public Map | getParameters()
Obtains a map of type (Integer) to value (byte[]) for the parameters tracked in this object. |
| public byte[] | |
| public byte[] |
| PARAM_TYPE_CONFIG | back to summary |
|---|---|
| public static final int PARAM_TYPE_CONFIG The parameter type for the Skein configuration block: 4. | |
| PARAM_TYPE_KEY | back to summary |
|---|---|
| public static final int PARAM_TYPE_KEY The parameter type for a secret key, supporting MAC or KDF functions: 0. | |
| PARAM_TYPE_KEY_IDENTIFIER | back to summary |
|---|---|
| public static final int PARAM_TYPE_KEY_IDENTIFIER The parameter type for a key identifier string: 16. | |
| PARAM_TYPE_MESSAGE | back to summary |
|---|---|
| public static final int PARAM_TYPE_MESSAGE The parameter type for the message: 48. | |
| PARAM_TYPE_NONCE | back to summary |
|---|---|
| public static final int PARAM_TYPE_NONCE The parameter type for a nonce: 20. | |
| PARAM_TYPE_OUTPUT | back to summary |
|---|---|
| public static final int PARAM_TYPE_OUTPUT The parameter type for the output transformation: 63. | |
| PARAM_TYPE_PERSONALISATION | back to summary |
|---|---|
| public static final int PARAM_TYPE_PERSONALISATION The parameter type for a personalisation string: 8. | |
| PARAM_TYPE_PUBLIC_KEY | back to summary |
|---|---|
| public static final int PARAM_TYPE_PUBLIC_KEY The parameter type for a public key: 12. | |
| parameters | back to summary |
|---|---|
| private Map<K, V> parameters | |
| SkeinParameterSpec | back to summary |
|---|---|
| public SkeinParameterSpec() | |
| SkeinParameterSpec | back to summary |
|---|---|
| private SkeinParameterSpec(Map<K, V> parameters) | |
| getKey | back to summary |
|---|---|
| public byte[] getKey() Obtains the value of the | |
| getKeyIdentifier | back to summary |
|---|---|
| public byte[] getKeyIdentifier() Obtains the value of the | |
| getNonce | back to summary |
|---|---|
| public byte[] getNonce() Obtains the value of the | |
| getParameters | back to summary |
|---|---|
| public Map Obtains a map of type (Integer) to value (byte[]) for the parameters tracked in this object. | |
| getPersonalisation | back to summary |
|---|---|
| public byte[] getPersonalisation() Obtains the value of the | |
| getPublicKey | back to summary |
|---|---|
| public byte[] getPublicKey() Obtains the value of the | |
org.bouncycastle.jcajce.spec.SkeinParameterSpec .
| Modifier and Type | Field and Description |
|---|---|
| private Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SkeinParameterSpec | build()
Constructs a new |
| public SkeinParameterSpec. | Returns: the current builder instance.the type of the parameter, in the range 5..62. type, byte[] the byte sequence of the parameter. value)Sets a parameters to apply to the Skein hash function. |
| public SkeinParameterSpec. | setKey(byte[] key)
Sets the |
| public SkeinParameterSpec. | Returns: the current builder instance.Sets the |
| public SkeinParameterSpec. | Returns: the current builder instance.Sets the |
| public SkeinParameterSpec. | setPersonalisation(byte[] personalisation)
Sets the |
| public SkeinParameterSpec. | Returns: the current builder instance.the date the personalised application of the Skein was defined. date, String the email address of the creation of the personalised application. emailAddress, String an arbitrary personalisation string distinguishing the application. distinguisher)Implements the recommended personalisation format for Skein defined in Section 4.11 of the Skein 1.3 specification. |
| public SkeinParameterSpec. | Returns: the current builder instance.the date the personalised application of the Skein was defined. date, Locale locale to be used for date interpretation. dateLocale, String the email address of the creation of the personalised application. emailAddress, String an arbitrary personalisation string distinguishing the application. distinguisher)Implements the recommended personalisation format for Skein defined in Section 4.11 of the Skein 1.3 specification. |
| public SkeinParameterSpec. | Returns: the current builder instance.Sets the |
| parameters | back to summary |
|---|---|
| private Map<K, V> parameters | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| Builder | back to summary |
|---|---|
| public Builder(SkeinParameterSpec params) | |
| build | back to summary |
|---|---|
| public SkeinParameterSpec build() Constructs a new | |
| set | back to summary |
|---|---|
| public SkeinParameterSpec. Sets a parameters to apply to the Skein hash function. Parameters with type < 48 are processed before the message content, parameters with type > 48 are processed after the message and prior to output.
| |
| setKey | back to summary |
|---|---|
| public SkeinParameterSpec. Sets the | |
| setKeyIdentifier | back to summary |
|---|---|
| public SkeinParameterSpec. Sets the
| |
| setNonce | back to summary |
|---|---|
| public SkeinParameterSpec. Sets the
| |
| setPersonalisation | back to summary |
|---|---|
| public SkeinParameterSpec. Sets the | |
| setPersonalisation | back to summary |
|---|---|
| public SkeinParameterSpec. Implements the recommended personalisation format for Skein defined in Section 4.11 of the Skein 1.3 specification.
The format is
| |
| setPersonalisation | back to summary |
|---|---|
| public SkeinParameterSpec. Implements the recommended personalisation format for Skein defined in Section 4.11 of the Skein 1.3 specification. You may need to use this method if the default locale doesn't use a Gregorian calender so that the GeneralizedTime produced is compatible implementations.
The format is
| |
| setPublicKey | back to summary |
|---|---|
| public SkeinParameterSpec. Sets the
| |