CngAlgorithm Třída
Definice
Zapouzdřuje název šifrovacího algoritmu.Encapsulates the name of an encryption algorithm.
public ref class CngAlgorithm sealed : IEquatable<System::Security::Cryptography::CngAlgorithm ^>
[System.Serializable]
public sealed class CngAlgorithm : IEquatable<System.Security.Cryptography.CngAlgorithm>
type CngAlgorithm = class
interface IEquatable<CngAlgorithm>
Public NotInheritable Class CngAlgorithm
Implements IEquatable(Of CngAlgorithm)
- Dědičnost
-
CngAlgorithm
- Atributy
- Implementuje
Poznámky
CngAlgorithm Třída je třída utility.The CngAlgorithm class is a utility class. Skládá se z statických vlastností, metod porovnání a privátního, interně spravovaného řetězce názvu algoritmu.It consists of static properties, comparison methods, and a private, internally maintained, algorithm name string.
Statické vlastnosti vracejí CngAlgorithm objekty.The static properties return CngAlgorithm objects. Interní řetězec každého objektu je inicializován na název algoritmu, který odpovídá názvu statické vlastnosti.Each object's internal string is initialized to the algorithm name that corresponds to the name of the static property.
Tuto třídu můžete také použít k vytvoření objektů pro typy algoritmů, které nejsou pokryty statickými vlastnostmi.You can also use this class to create objects for algorithm types that are not covered by the static properties.
Několik tříd Kryptografické služby CngKey algorithm
nové generace (CNG) (například) CngAlgorithm přijímají objekty prostřednictvím parametru.Several Cryptography Next Generation (CNG) classes (such as CngKey) accept CngAlgorithm objects through an algorithm
parameter. Když třída obdrží CngAlgorithm objekt, načte název vloženého algoritmu voláním Algorithm vlastnosti objektu.When the class receives the CngAlgorithm object, it retrieves the embedded algorithm name by calling the object's Algorithm property.
CngAlgorithm Proto slouží jako výčet známých algoritmů.Therefore, CngAlgorithm serves as an enumeration of well-known algorithms. Umožňuje zadat známý algoritmus pomocí hodnoty silného typu místo řetězce.It lets you specify a well-known algorithm by using a strongly typed value instead of a string.
Konstruktory
CngAlgorithm(String) |
Inicializuje novou instanci třídy CngAlgorithm třídy.Initializes a new instance of the CngAlgorithm class. |
Vlastnosti
Algorithm |
Získá název algoritmu, který určuje CngAlgorithm aktuální objekt.Gets the algorithm name that the current CngAlgorithm object specifies. |
ECDiffieHellman |
CngAlgorithm Získává objekt, který určuje algoritmus výměny klíčů Diffie-Hellman s eliptickou křivkou (ECDH), jehož křivka je popsána prostřednictvím klíčové vlastnosti.Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm whose curve is described via a key property. |
ECDiffieHellmanP256 |
CngAlgorithm Získává objekt, který určuje algoritmus výměny klíčů Diffie-Hellman s eliptickou křivkou (ECDH), který používá křivku P-256.Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-256 curve. |
ECDiffieHellmanP384 |
CngAlgorithm Získává objekt, který určuje algoritmus výměny klíčů Diffie-Hellman s eliptickou křivkou (ECDH), který používá křivku P-384.Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-384 curve. |
ECDiffieHellmanP521 |
CngAlgorithm Získává objekt, který určuje algoritmus výměny klíčů Diffie-Hellman s eliptickou křivkou (ECDH), který používá křivku P-521.Gets a CngAlgorithm object that specifies an Elliptic Curve Diffie-Hellman (ECDH) key exchange algorithm that uses the P-521 curve. |
ECDsa |
CngAlgorithm Získá objekt, který určuje algoritmus ECDSA (s eliptickou křivkou digitálního podpisu), jehož křivka je popsána prostřednictvím klíčové vlastnosti.Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) whose curve is described via a key property. |
ECDsaP256 |
CngAlgorithm Získá objekt, který určuje algoritmus ECDSA (pro digitální podpis s eliptickou křivkou), který používá křivku P-256.Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-256 curve. |
ECDsaP384 |
CngAlgorithm Získá objekt, který určuje algoritmus ECDSA (pro digitální podpis s eliptickou křivkou), který používá křivku P-384.Gets a CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-384 curve. |
ECDsaP521 |
Získá nový CngAlgorithm objekt, který určuje algoritmus digitálního podpisu eliptické křivky (ECDSA), který používá křivku P-521.Gets a new CngAlgorithm object that specifies an Elliptic Curve Digital Signature Algorithm (ECDSA) that uses the P-521 curve. |
MD5 |
Získá nový CngAlgorithm objekt, který určuje algoritmus hash MD5 (Message Digest 5).Gets a new CngAlgorithm object that specifies the Message Digest 5 (MD5) hash algorithm. |
Rsa |
Získá nový CngAlgorithm objekt, který určuje algoritmus hash RSA.Gets a new CngAlgorithm object that specifies the RSA hash algorithm. |
Sha1 |
Získá nový CngAlgorithm objekt, který určuje algoritmus algoritmus SHA-1 (Secure Hash Algorithm) (SHA-1).Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 1 (SHA-1) algorithm. |
Sha256 |
Získá nový CngAlgorithm objekt, který určuje algoritmus Secure Hash Algorithm 256 (SHA-256).Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 256 (SHA-256) algorithm. |
Sha384 |
Získá nový CngAlgorithm objekt, který určuje algoritmus Secure Hash Algorithm 384 (SHA-384).Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 384 (SHA-384) algorithm. |
Sha512 |
Získá nový CngAlgorithm objekt, který určuje algoritmus Secure Hash Algorithm 512 (SHA-512).Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 512 (SHA-512) algorithm. |
Metody
Equals(CngAlgorithm) |
Porovná zadaný CngAlgorithm objekt s aktuálním CngAlgorithm objektem.Compares the specified CngAlgorithm object to the current CngAlgorithm object. |
Equals(Object) |
Porovná zadaný objekt s aktuálním CngAlgorithm objektem.Compares the specified object to the current CngAlgorithm object. |
GetHashCode() |
Vygeneruje hodnotu hash pro název algoritmu, který je vložený v aktuálním CngAlgorithm objektu.Generates a hash value for the algorithm name that is embedded in the current CngAlgorithm object. |
GetType() |
Získá Type aktuální instance.Gets the Type of the current instance. (Zděděno od Object) |
MemberwiseClone() |
Vytvoří kopii aktuálního Objectbez podstruktury.Creates a shallow copy of the current Object. (Zděděno od Object) |
ToString() |
Získá název algoritmu, který aktuální CngAlgorithm objekt určuje.Gets the name of the algorithm that the current CngAlgorithm object specifies. |
Operátory
Equality(CngAlgorithm, CngAlgorithm) |
Určuje, zda CngAlgorithm dva objekty určují stejný název algoritmu.Determines whether two CngAlgorithm objects specify the same algorithm name. |
Inequality(CngAlgorithm, CngAlgorithm) |
Určuje, zda CngAlgorithm dva objekty neurčují stejný algoritmus.Determines whether two CngAlgorithm objects do not specify the same algorithm. |