AsymmetricAlgorithmNames AsymmetricAlgorithmNames AsymmetricAlgorithmNames AsymmetricAlgorithmNames Class

Contains static properties that enable you to retrieve algorithm names that can be used in the OpenAlgorithm(System.String) method of the AsymmetricKeyAlgorithmProvider class.

Syntax

Declaration

public static class AsymmetricAlgorithmNamespublic static class AsymmetricAlgorithmNamesPublic Static Class AsymmetricAlgorithmNames

Properties summary

Retrieves a string that contains "DSA_SHA1".

Retrieves a string that contains "DSA_SHA256".

Retrieves a string that contains "ECDSA_P256_SHA256".

Retrieves a string that contains "ECDSA_P384_SHA384".

Retrieves a string that contains "ECDSA_P521_SHA512".

Retrieves a string that contains "ECDSA_SHA256".

Retrieves a string that contains "ECDSA_SHA384".

Retrieves a string that contains "ECDSA_SHA512".

Retrieves a string that contains "RSA_OAEP_SHA1".

Retrieves a string that contains "RSA_OAEP_SHA256".

Retrieves a string that contains "RSA_OAEP_SHA384".

Retrieves a string that contains "RSA_OAEP_SHA512".

Retrieves a string that contains "RSA_PKCS1".

Retrieves a string that contains "RSASIGN_PKCS1_SHA1".

Retrieves a string that contains "RSASIGN_PKCS1_SHA256".

Retrieves a string that contains "RSASIGN_PKCS1_SHA384".

Retrieves a string that contains "RSASIGN_PSS_SHA512".

Retrieves a string that contains "RSASIGN_PSS_SHA1".

Retrieves a string that contains "RSASIGN_PSS_SHA256".

Retrieves a string that contains "RSASIGN_PSS_SHA384".

Retrieves a string that contains "RSASIGN_PSS_SHA512".

Properties

  • DsaSha1
    DsaSha1
    DsaSha1
    DsaSha1

    Retrieves a string that contains "DSA_SHA1".

    public static string DsaSha1 { get; }public static string DsaSha1 { get; }Public Static ReadOnly Property DsaSha1 As string

    Property Value

    • string
      string
      string
      string

      String that contains "DSA_SHA1".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents a Digital Signature Algorithm (DSA) that uses the Secure Hashing Algorithm 1 (SHA1) to hash the message contents before signing. The length of the hash is 160 bits.

  • DsaSha256
    DsaSha256
    DsaSha256
    DsaSha256

    Retrieves a string that contains "DSA_SHA256".

    public static string DsaSha256 { get; }public static string DsaSha256 { get; }Public Static ReadOnly Property DsaSha256 As string

    Property Value

    • string
      string
      string
      string

      String that contains "DSA_SHA256".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents a Digital Signature Algorithm (DSA) that uses the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the hash is 256 bits.

  • EcdsaP256Sha256
    EcdsaP256Sha256
    EcdsaP256Sha256
    EcdsaP256Sha256

    Retrieves a string that contains "ECDSA_P256_SHA256".

    public static string EcdsaP256Sha256 { get; }public static string EcdsaP256Sha256 { get; }Public Static ReadOnly Property EcdsaP256Sha256 As string

    Property Value

    • string
      string
      string
      string

      String that contains "ECDSA_P256_SHA256".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses a 256-bit public key and a Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the hash is 256 bits.

    Note

    You must specify a value of 256 when calling the CreateKeyPair(System.UInt32) method to create keys that are compatible with this algorithm.

  • EcdsaP384Sha384
    EcdsaP384Sha384
    EcdsaP384Sha384
    EcdsaP384Sha384

    Retrieves a string that contains "ECDSA_P384_SHA384".

    public static string EcdsaP384Sha384 { get; }public static string EcdsaP384Sha384 { get; }Public Static ReadOnly Property EcdsaP384Sha384 As string

    Property Value

    • string
      string
      string
      string

      String that contains "ECDSA_P384_SHA384".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses a 384-bit public key and a Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the hash is 384 bits.

    Note

    You must specify a value of 384 when calling the CreateKeyPair(System.UInt32) method to create keys that are compatible with this algorithm.

  • EcdsaP521Sha512
    EcdsaP521Sha512
    EcdsaP521Sha512
    EcdsaP521Sha512

    Retrieves a string that contains "ECDSA_P521_SHA512".

    public static string EcdsaP521Sha512 { get; }public static string EcdsaP521Sha512 { get; }Public Static ReadOnly Property EcdsaP521Sha512 As string

    Property Value

    • string
      string
      string
      string

      String that contains "ECDSA_P521_SHA512".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses a 512-bit public key and a Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the hash is 512 bits.

    Note

    You must specify a value of 512 when calling the CreateKeyPair(System.UInt32) method to create keys that are compatible with this algorithm.

  • EcdsaSha256
    EcdsaSha256
    EcdsaSha256
    EcdsaSha256

    Retrieves a string that contains "ECDSA_SHA256".

    public static string EcdsaSha256 { get; }public static string EcdsaSha256 { get; }Public Static ReadOnly Property EcdsaSha256 As string

    Property Value

    • string
      string
      string
      string

      String that contains "ECDSA_SHA256".

  • EcdsaSha384
    EcdsaSha384
    EcdsaSha384
    EcdsaSha384

    Retrieves a string that contains "ECDSA_SHA384".

    public static string EcdsaSha384 { get; }public static string EcdsaSha384 { get; }Public Static ReadOnly Property EcdsaSha384 As string

    Property Value

    • string
      string
      string
      string

      String that contains "ECDSA_SHA384".

  • EcdsaSha512
    EcdsaSha512
    EcdsaSha512
    EcdsaSha512

    Retrieves a string that contains "ECDSA_SHA512".

    public static string EcdsaSha512 { get; }public static string EcdsaSha512 { get; }Public Static ReadOnly Property EcdsaSha512 As string

    Property Value

    • string
      string
      string
      string

      String that contains "ECDSA_SHA512".

  • RsaOaepSha1
    RsaOaepSha1
    RsaOaepSha1
    RsaOaepSha1

    Retrieves a string that contains "RSA_OAEP_SHA1".

    public static string RsaOaepSha1 { get; }public static string RsaOaepSha1 { get; }Public Static ReadOnly Property RsaOaepSha1 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSA_OAEP_SHA1".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA algorithm that uses Optimal Asymmetric Encryption Padding (OAEP) to encode or pad the plaintext and a Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA1 hash is 160 bits.

  • RsaOaepSha256
    RsaOaepSha256
    RsaOaepSha256
    RsaOaepSha256

    Retrieves a string that contains "RSA_OAEP_SHA256".

    public static string RsaOaepSha256 { get; }public static string RsaOaepSha256 { get; }Public Static ReadOnly Property RsaOaepSha256 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSA_OAEP_SHA256".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA algorithm that uses Optimal Asymmetric Encryption Padding (OAEP) to encode or pad the plaintext and a Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 256 bits.

  • RsaOaepSha384
    RsaOaepSha384
    RsaOaepSha384
    RsaOaepSha384

    Retrieves a string that contains "RSA_OAEP_SHA384".

    public static string RsaOaepSha384 { get; }public static string RsaOaepSha384 { get; }Public Static ReadOnly Property RsaOaepSha384 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSA_OAEP_SHA384".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA algorithm that uses Optimal Asymmetric Encryption Padding (OAEP) to encode or pad the plaintext and a Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 384 bits.

  • RsaOaepSha512
    RsaOaepSha512
    RsaOaepSha512
    RsaOaepSha512

    Retrieves a string that contains "RSA_OAEP_SHA512".

    public static string RsaOaepSha512 { get; }public static string RsaOaepSha512 { get; }Public Static ReadOnly Property RsaOaepSha512 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSA_OAEP_SHA512".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA algorithm that uses Optimal Asymmetric Encryption Padding (OAEP) to encode or pad the plaintext and a Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 512 bits.

  • RsaPkcs1
    RsaPkcs1
    RsaPkcs1
    RsaPkcs1

    Retrieves a string that contains "RSA_PKCS1".

    public static string RsaPkcs1 { get; }public static string RsaPkcs1 { get; }Public Static ReadOnly Property RsaPkcs1 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSA_PKCS1".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA public key algorithm that uses PKCS1 to pad the plaintext. No hash algorithm is used.

  • RsaSignPkcs1Sha1
    RsaSignPkcs1Sha1
    RsaSignPkcs1Sha1
    RsaSignPkcs1Sha1

    Retrieves a string that contains "RSASIGN_PKCS1_SHA1".

    public static string RsaSignPkcs1Sha1 { get; }public static string RsaSignPkcs1Sha1 { get; }Public Static ReadOnly Property RsaSignPkcs1Sha1 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSASIGN_PKCS1_SHA1".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA signing algorithm that uses PKCS1 to pad the plaintext and the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 160 bits.

  • RsaSignPkcs1Sha256
    RsaSignPkcs1Sha256
    RsaSignPkcs1Sha256
    RsaSignPkcs1Sha256

    Retrieves a string that contains "RSASIGN_PKCS1_SHA256".

    public static string RsaSignPkcs1Sha256 { get; }public static string RsaSignPkcs1Sha256 { get; }Public Static ReadOnly Property RsaSignPkcs1Sha256 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSASIGN_PKCS1_SHA256".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA signing algorithm that uses PKCS1 to pad the plaintext and the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 256 bits.

  • RsaSignPkcs1Sha384
    RsaSignPkcs1Sha384
    RsaSignPkcs1Sha384
    RsaSignPkcs1Sha384

    Retrieves a string that contains "RSASIGN_PKCS1_SHA384".

    public static string RsaSignPkcs1Sha384 { get; }public static string RsaSignPkcs1Sha384 { get; }Public Static ReadOnly Property RsaSignPkcs1Sha384 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSASIGN_PKCS1_SHA384".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA signing algorithm that uses PKCS1 to pad the plaintext and the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 384 bits.

  • RsaSignPkcs1Sha512
    RsaSignPkcs1Sha512
    RsaSignPkcs1Sha512
    RsaSignPkcs1Sha512

    Retrieves a string that contains "RSASIGN_PSS_SHA512".

    public static string RsaSignPkcs1Sha512 { get; }public static string RsaSignPkcs1Sha512 { get; }Public Static ReadOnly Property RsaSignPkcs1Sha512 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSASIGN_PSS_SHA512".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA signing algorithm that uses PKCS1 to pad the plaintext and the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 512 bits.

  • RsaSignPssSha1
    RsaSignPssSha1
    RsaSignPssSha1
    RsaSignPssSha1

    Retrieves a string that contains "RSASIGN_PSS_SHA1".

    public static string RsaSignPssSha1 { get; }public static string RsaSignPssSha1 { get; }Public Static ReadOnly Property RsaSignPssSha1 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSASIGN_PSS_SHA1".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA signing algorithm that uses the Probabilistic Signature Scheme (PSS) to pad the plaintext and the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 160 bits.

  • RsaSignPssSha256
    RsaSignPssSha256
    RsaSignPssSha256
    RsaSignPssSha256

    Retrieves a string that contains "RSASIGN_PSS_SHA256".

    public static string RsaSignPssSha256 { get; }public static string RsaSignPssSha256 { get; }Public Static ReadOnly Property RsaSignPssSha256 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSASIGN_PSS_SHA256".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA signing algorithm that uses the Probabilistic Signature Scheme (PSS) to pad the plaintext and the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 256 bits.

  • RsaSignPssSha384
    RsaSignPssSha384
    RsaSignPssSha384
    RsaSignPssSha384

    Retrieves a string that contains "RSASIGN_PSS_SHA384".

    public static string RsaSignPssSha384 { get; }public static string RsaSignPssSha384 { get; }Public Static ReadOnly Property RsaSignPssSha384 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSASIGN_PSS_SHA384".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA signing algorithm that uses the Probabilistic Signature Scheme (PSS) to pad the plaintext and the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 384 bits.

  • RsaSignPssSha512
    RsaSignPssSha512
    RsaSignPssSha512
    RsaSignPssSha512

    Retrieves a string that contains "RSASIGN_PSS_SHA512".

    public static string RsaSignPssSha512 { get; }public static string RsaSignPssSha512 { get; }Public Static ReadOnly Property RsaSignPssSha512 As string

    Property Value

    • string
      string
      string
      string

      String that contains "RSASIGN_PSS_SHA512".

    Remarks

    Use the string retrieved by this property to set the asymmetric algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an RSA signing algorithm that uses the Probabilistic Signature Scheme (PSS) to pad the plaintext and the Secure Hashing Algorithm (SHA) to hash the message contents before signing. The length of the SHA hash is 512 bits.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.StaticAttribute

Details

Assembly

Windows.Security.Cryptography.Core.dll