Class SkeinParameters
- Namespace
- Org.BouncyCastle.Crypto.Parameters
- Assembly
- BouncyCastle.Cryptography.dll
Parameters for the Skein hash function - a series of byte[] strings identified by integer tags.
public class SkeinParameters : ICipherParameters
- Inheritance
-
SkeinParameters
- Implements
- Inherited Members
Remarks
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.
Constructors
SkeinParameters()
public SkeinParameters()
Fields
PARAM_TYPE_CONFIG
The parameter type for the Skein configuration block: 4
public const int PARAM_TYPE_CONFIG = 4
Field Value
PARAM_TYPE_KEY
The parameter type for a secret key, supporting MAC or KDF functions: 0
public const int PARAM_TYPE_KEY = 0
Field Value
PARAM_TYPE_KEY_IDENTIFIER
The parameter type for a key identifier string: 16
public const int PARAM_TYPE_KEY_IDENTIFIER = 16
Field Value
PARAM_TYPE_MESSAGE
The parameter type for the message: 48
public const int PARAM_TYPE_MESSAGE = 48
Field Value
PARAM_TYPE_NONCE
The parameter type for a nonce: 20
public const int PARAM_TYPE_NONCE = 20
Field Value
PARAM_TYPE_OUTPUT
The parameter type for the output transformation: 63
public const int PARAM_TYPE_OUTPUT = 63
Field Value
PARAM_TYPE_PERSONALISATION
The parameter type for a personalisation string: 8
public const int PARAM_TYPE_PERSONALISATION = 8
Field Value
PARAM_TYPE_PUBLIC_KEY
The parameter type for a public key: 12
public const int PARAM_TYPE_PUBLIC_KEY = 12
Field Value
Methods
GetKey()
Obtains the value of the key parameter, or
null if not
set.
public byte[] GetKey()
Returns
- byte[]
The key.
GetKeyIdentifier()
Obtains the value of the key identifier parameter, or
null if not set.
public byte[] GetKeyIdentifier()
Returns
- byte[]
GetNonce()
Obtains the value of the nonce parameter, or
null if
not set.
public byte[] GetNonce()
Returns
- byte[]
GetParameters()
Obtains a map of type (int) to value (byte[]) for the parameters tracked in this object.
public IDictionary<int, byte[]> GetParameters()
Returns
- IDictionary<int, byte[]>
GetPersonalisation()
Obtains the value of the personalisation parameter, or
null if not set.
public byte[] GetPersonalisation()
Returns
- byte[]
GetPublicKey()
Obtains the value of the public key parameter, or
null if not set.
public byte[] GetPublicKey()
Returns
- byte[]