The AsymmetricKeyAlgorithm type exposes the following members.

Constructors

  NameDescription
Public methodAsymmetricKeyAlgorithm
Creates an instance of AsymmetricKeyAlgorithm.

Methods

  NameDescription
Public methodStatic memberCreateFrom
Creates an instance of AsymmetricKeyAlgorithm from the specified asymmetric algorithm object.
Public methodDecrypt(array<Byte>[]()[][])
Decrypts data.
Public methodDecrypt(array<Byte>[]()[][], EncryptionParameters)
Decrypts data.
Public methodDispose
Frees the resources used by this object.
Public methodEncrypt(array<Byte>[]()[][])
Encrypts data.
Public methodEncrypt(array<Byte>[]()[][], EncryptionParameters)
Encrypts data.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGenerateDiffieHellmanParameters
Generates Diffie-Hellman parameters corresponding to the specified key size.
Public methodGenerateKey(AsymmetricKeyAlgorithmId, Int32)
Generates a private key for the specified asymmetric algorithm with of the specified key size.
Public methodGenerateKey(AsymmetricKeyAlgorithmId, String)
Generates a private key for the specified asymmetric algorithm based on the specified curve.
Public methodGetCspParameters
Gets CSP parameters if the instance of AsymmetricKeyAlgorithm represents a key stored in a Windows Cryptographic Service Provider.
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetKeyMaterialDeriver
Gets key material deriver. Only supported by Diffie-Hellman-like algorithms.
Public methodGetPrivateKey
Exports a private key to the specified private key info object.
Public methodGetPublicKey
Exports a public key to the specified private key info object.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodImportKey(DSAParameters)
Imports a key from the specified DSA parameters.
Public methodImportKey(RSAParameters)
Imports a key from the specified RSA parameters.
Public methodImportKey(DiffieHellmanParameters)
Imports a private key from the specified Diffie-Hellman parameters, or generates a new key using P and G parameters.
Public methodImportKey(PrivateKeyInfo)
Imports a key from the specified private key info object.
Public methodImportKey(PublicKeyInfo)
Imports a key from the specified public key info object.
Public methodImportKey(AsymmetricKeyAlgorithmId, String, array<Byte>[]()[][], AsymmetricKeyFormat)
Imports a private key for the specified algorithm/curve. Only some algorithms/curves are supported.
Public methodStatic memberIsSupported
Returns a value indicating whether the specified algorithm is supported.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRegister
Register custom asymmetric key algorithm.
Public methodSignHash
Computes the signature for the specified hash value.
Public methodSignMessage(array<Byte>[]()[][])
Computes the signature for the specified message (using default parameters).
Public methodSignMessage(array<Byte>[]()[][], SignatureParameters)
Computes the signature for the specified message.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodVerifyHash
Verifies the specified signature.
Public methodVerifyMessage(array<Byte>[]()[][], array<Byte>[]()[][])
Verifies the specified signature (using default parameters).
Public methodVerifyMessage(array<Byte>[]()[][], array<Byte>[]()[][], SignatureParameters)
Verifies the specified signature.

Properties

  NameDescription
Public propertyAlgorithm
Gets the current key algorithm.
Public propertyKeySize
Gets the current key size.
Public propertyPublicOnly
Gets a value indicating whether this instance only contains the public key.

See Also