Crypto​Configuration Class

Definition

Provides access to both application-level settings and methods to both specify and construct cryptographic primitives.

public static class CryptoConfiguration
Inheritance
CryptoConfiguration

Properties

Crypto​Service​Provider​Name

Gets the name of the crypto service provider for the currently running operating system version.

Hash​Algorithm​Name

Gets the preferred application-wide hash algorithm name.

Hmac​Algorithm​Name

Gets the preferred application-wide Hash Message Authentication Code (HMAC) algorithm name.

Signature​Algorithm​Name

Gets the preferred application-wide signature algorithm name.

Signature​Hash​Algorithm​Name

Gets the preferred application-wide hash algorithm name for computing digests to be used for signature generation.

Symmetric​Algorithm​Name

Gets the preferred application-wide symmetric algorithm name.

Methods

Create​Hash​Algorithm()

Creates a new hash algorithm with default values.

Create​Hash​Algorithm(​String)

Creates a new hash algorithm based on the specified algorithmName.

Create​Hmac(​Byte[])

Creates a new Hash Message Authentication Code (HMAC) based on the current key.

Create​Hmac(​String)

Creates a new Hash Message Authentication Code (HMAC) instance based on the specified algorithmName.

Create​Hmac(​String, ​Byte[])

Creates a new Hash Message Authentication Code (HMAC) instance using the specified algorithmName and keyMaterial.

Create​Symmetric​Algorithm(​String, ​Byte[])

Constructs a symmetric key algorithm based on the specified algorithmName and keyMaterial.

Generate​Hmac​Shared​Secret()

Generates an HMAC shared secret for the default HMAC algorithm.