|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.jcajce.spec.SkeinParameterSpec.Builder
A builder for SkeinParameterSpec
.
Constructor Summary | |
SkeinParameterSpec.Builder()
|
|
SkeinParameterSpec.Builder(SkeinParameterSpec params)
|
Method Summary | |
SkeinParameterSpec |
build()
Constructs a new SkeinParameterSpec instance with the parameters provided to this
builder. |
SkeinParameterSpec.Builder |
set(int type,
byte[] value)
Sets a parameters to apply to the Skein hash function. |
SkeinParameterSpec.Builder |
setKey(byte[] key)
Sets the SkeinParameterSpec.PARAM_TYPE_KEY parameter. |
SkeinParameterSpec.Builder |
setKeyIdentifier(byte[] keyIdentifier)
Sets the SkeinParameterSpec.PARAM_TYPE_KEY_IDENTIFIER parameter. |
SkeinParameterSpec.Builder |
setNonce(byte[] nonce)
Sets the SkeinParameterSpec.PARAM_TYPE_NONCE parameter. |
SkeinParameterSpec.Builder |
setPersonalisation(byte[] personalisation)
Sets the SkeinParameterSpec.PARAM_TYPE_PERSONALISATION parameter. |
SkeinParameterSpec.Builder |
setPersonalisation(java.util.Date date,
java.util.Locale dateLocale,
java.lang.String emailAddress,
java.lang.String distinguisher)
Implements the recommended personalisation format for Skein defined in Section 4.11 of the Skein 1.3 specification. |
SkeinParameterSpec.Builder |
setPersonalisation(java.util.Date date,
java.lang.String emailAddress,
java.lang.String distinguisher)
Implements the recommended personalisation format for Skein defined in Section 4.11 of the Skein 1.3 specification. |
SkeinParameterSpec.Builder |
setPublicKey(byte[] publicKey)
Sets the SkeinParameterSpec.PARAM_TYPE_KEY_IDENTIFIER parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SkeinParameterSpec.Builder()
public SkeinParameterSpec.Builder(SkeinParameterSpec params)
Method Detail |
public SkeinParameterSpec.Builder set(int type, byte[] value)
Parameters with type < {@value org.bouncycastle.jcajce.spec.SkeinParameterSpec#PARAM_TYPE_MESSAGE} are processed before the message content, parameters with type > {@value org.bouncycastle.jcajce.spec.SkeinParameterSpec#PARAM_TYPE_MESSAGE} are processed after the message and prior to output.
type
- the type of the parameter, in the range 5..62.value
- the byte sequence of the parameter.public SkeinParameterSpec.Builder setKey(byte[] key)
SkeinParameterSpec.PARAM_TYPE_KEY
parameter.public SkeinParameterSpec.Builder setPersonalisation(byte[] personalisation)
SkeinParameterSpec.PARAM_TYPE_PERSONALISATION
parameter.public SkeinParameterSpec.Builder setPersonalisation(java.util.Date date, java.lang.String emailAddress, java.lang.String distinguisher)
The format is YYYYMMDD email@address distinguisher, encoded to a byte sequence using UTF-8 encoding.
date
- the date the personalised application of the Skein was defined.emailAddress
- the email address of the creation of the personalised application.distinguisher
- an arbitrary personalisation string distinguishing the application.public SkeinParameterSpec.Builder setPersonalisation(java.util.Date date, java.util.Locale dateLocale, java.lang.String emailAddress, java.lang.String distinguisher)
The format is YYYYMMDD email@address distinguisher, encoded to a byte sequence using UTF-8 encoding.
date
- the date the personalised application of the Skein was defined.dateLocale
- locale to be used for date interpretation.emailAddress
- the email address of the creation of the personalised application.distinguisher
- an arbitrary personalisation string distinguishing the application.public SkeinParameterSpec.Builder setPublicKey(byte[] publicKey)
SkeinParameterSpec.PARAM_TYPE_KEY_IDENTIFIER
parameter.public SkeinParameterSpec.Builder setKeyIdentifier(byte[] keyIdentifier)
SkeinParameterSpec.PARAM_TYPE_KEY_IDENTIFIER
parameter.public SkeinParameterSpec.Builder setNonce(byte[] nonce)
SkeinParameterSpec.PARAM_TYPE_NONCE
parameter.public SkeinParameterSpec build()
SkeinParameterSpec
instance with the parameters provided to this
builder.
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |