Udostępnij za pośrednictwem


RSAKeyVault Class

Definition

Provides an implementation of the RSA algorithm backed by Azure Key Vault or Managed HSM.

public class RSAKeyVault : System.Security.Cryptography.RSA
type RSAKeyVault = class
    inherit RSA
Public Class RSAKeyVault
Inherits RSA
Inheritance
RSAKeyVault

Properties

KeyExchangeAlgorithm

Gets the name of the key exchange algorithm available with this implementation of RSA.

KeyId

Gets the Id of the key used to perform cryptographic operations.

KeySize

Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm.

LegalKeySizes

Gets the key sizes that are supported by the asymmetric algorithm.

Methods

Decrypt(Byte[], RSAEncryptionPadding)

Decrypts the input data using the specified padding mode.

Dispose(Boolean)

Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources.

Encrypt(Byte[], RSAEncryptionPadding)

Encrypts the input data using the specified padding mode.

ExportParameters(Boolean)

When overridden in a derived class, exports the RSAParameters.

HashData(Byte[], Int32, Int32, HashAlgorithmName)

Computes the hash value of a specified portion of a byte array by using a specified hashing algorithm.

HashData(Stream, HashAlgorithmName)

Computes the hash value of a specified binary stream by using a specified hashing algorithm.

ImportParameters(RSAParameters)

When overridden in a derived class, imports the specified RSAParameters.

SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)

Computes the signature for the specified hash value by encrypting it with the private key using the specified padding.

VerifyHash(Byte[], Byte[], HashAlgorithmName, RSASignaturePadding)

Verifies that a digital signature is valid by determining the hash value in the signature using the specified hash algorithm and padding, and comparing it to the provided hash value.

Applies to