DSACng クラス
定義
デジタル署名アルゴリズム (DSA) の Cryptography Next Generation (CNG) 実装を提供します。Provides a Cryptography Next Generation (CNG) implementation of the Digital Signature Algorithm (DSA).
public ref class DSACng sealed : System::Security::Cryptography::DSA
public sealed class DSACng : System.Security.Cryptography.DSA
type DSACng = class
inherit DSA
Public NotInheritable Class DSACng
Inherits DSA
- 継承
コンストラクター
DSACng() |
ランダムな 2,048 ビット キーのペアで、DSACng クラスの新しいインスタンスを初期化します。Initializes a new instance of the DSACng class with a random 2,048-bit key pair. |
DSACng(CngKey) |
指定したキーで、DSACng クラスの新しいインスタンスを初期化します。Initializes a new instance of the DSACng class with the specified key. |
DSACng(Int32) |
指定のサイズでランダムに生成されたキーで、DSACng クラスの新しいインスタンスを初期化します。Initializes a new instance of the DSACng class with a randomly generated key of the specified size. |
フィールド
KeySizeValue |
非対称アルゴリズムで使用されるキー モジュラスのサイズをビット単位で表します。Represents the size, in bits, of the key modulus used by the asymmetric algorithm. (継承元 AsymmetricAlgorithm) |
LegalKeySizesValue |
非対称アルゴリズムでサポートされているキー サイズを指定します。Specifies the key sizes that are supported by the asymmetric algorithm. (継承元 AsymmetricAlgorithm) |
プロパティ
Key |
DSACng オブジェクトが任意の暗号化操作を行うときに使用するキーを取得します。Gets the key that will be used by the DSACng object for any cryptographic operation that it performs. |
KeyExchangeAlgorithm |
キー交換アルゴリズムの名前を取得します。Gets the name of the key exchange algorithm. |
KeySize |
非対称アルゴリズムで使用されるキー モジュラスのサイズをビット単位で取得または設定します。Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm. (継承元 AsymmetricAlgorithm) |
LegalKeySizes |
DSA アルゴリズムでサポートされているキー サイズ (ビット単位) を取得します。Gets the key sizes, in bits, that are supported by the DSA algorithm. |
SignatureAlgorithm |
署名アルゴリズムの名前を取得します。Gets the name of the signature algorithm. |
メソッド
Clear() |
AsymmetricAlgorithm クラスによって使用されているすべてのリソースを解放します。Releases all resources used by the AsymmetricAlgorithm class. (継承元 AsymmetricAlgorithm) |
CreateSignature(Byte[]) |
指定したデータに対する DSA 署名を作成します。Creates the DSA signature for the specified data. |
Dispose() |
AsymmetricAlgorithm クラスの現在のインスタンスによって使用されているすべてのリソースを解放します。Releases all resources used by the current instance of the AsymmetricAlgorithm class. (継承元 AsymmetricAlgorithm) |
Dispose(Boolean) |
AsymmetricAlgorithm クラスによって使用されているアンマネージド リソースを解放し、オプションでマネージド リソースも解放します。Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources. (継承元 AsymmetricAlgorithm) |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判定します。Determines whether the specified object is equal to the current object. (継承元 Object) |
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters) |
現在のキーを PKCS# 8 EncryptedPrivateKeyInfo 形式で、バイトベースのパスワードを使用してエクスポートします。Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a byte-based password. (継承元 AsymmetricAlgorithm) |
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters) |
現在のキーを PKCS# 8 EncryptedPrivateKeyInfo 形式で、char ベースのパスワードを使用してエクスポートします。Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password. (継承元 AsymmetricAlgorithm) |
ExportParameters(Boolean) |
DSA アルゴリズム パラメーターをエクスポートします。Exports the DSA algorithm parameters. |
ExportPkcs8PrivateKey() |
現在のキーを PKCS# 8 PrivateKeyInfo 形式でエクスポートします。Exports the current key in the PKCS#8 PrivateKeyInfo format. (継承元 AsymmetricAlgorithm) |
ExportSubjectPublicKeyInfo() |
現在のキーの公開キーの部分を、X.509 SubjectPublicKeyInfo 形式でエクスポートします。Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format. (継承元 AsymmetricAlgorithm) |
FromXmlString(String) |
XML 文字列から DSA オブジェクトを再構築します。Reconstructs a DSA object from an XML string. (継承元 DSA) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
HashData(Byte[], Int32, Int32, HashAlgorithmName) |
派生クラスでオーバーライドされると、指定したハッシュ アルゴリズムを使用して、指定したバイト配列部分のハッシュ値が計算されます。When overridden in a derived class, computes the hash value of a specified portion of a byte array by using a specified hashing algorithm. (継承元 DSA) |
HashData(Stream, HashAlgorithmName) |
派生クラスでオーバーライドされると、指定したハッシュ アルゴリズムを使用して、指定したバイナリ ストリームのハッシュ値が計算されます。When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm. (継承元 DSA) |
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32) |
バイトベースのパスワードを使用して暗号化解除した後に、PKCS#8 EncryptedPrivateKeyInfo 構造体から公開/秘密キー ペアをインポートし、このオブジェクトのキーを置き換えます。Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a byte-based password, replacing the keys for this object. (継承元 DSA) |
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Int32) |
char ベースのパスワードを使用して暗号化解除した後に、PKCS#8 EncryptedPrivateKeyInfo 構造体から公開/秘密キー ペアをインポートし、このオブジェクトのキーを置き換えます。Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a char-based password, replacing the keys for this object. (継承元 DSA) |
ImportParameters(DSAParameters) |
パラメーター構造体に新しい CngKey を作成し、現在のインスタンスが扱っている既存のキーを置き換えます。Replaces the existing key that the current instance is working with by creating a new CngKey for the parameters structure. |
ImportPkcs8PrivateKey(ReadOnlySpan<Byte>, Int32) |
暗号化解除した後に、PKCS#8 PrivateKeyInfo 構造体から公開/秘密キー ペアをインポートし、このオブジェクトのキーを置き換えます。Imports the public/private keypair from a PKCS#8 PrivateKeyInfo structure after decryption, replacing the keys for this object. (継承元 DSA) |
ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>, Int32) |
暗号化解除した後に、X.509 SubjectPublicKeyInfo 構造体から公開キーをインポートし、このオブジェクトのキーを置き換えます。Imports the public key from an X.509 SubjectPublicKeyInfo structure after decryption, replacing the keys for this object. (継承元 DSA) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
SignData(Byte[], HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用して、指定したバイト配列のハッシュ値を計算し、結果のハッシュ値に署名します。Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value. (継承元 DSA) |
SignData(Byte[], Int32, Int32, HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用して、指定したバイト配列の一部分のハッシュ値を計算し、結果のハッシュ値に署名します。Computes the hash value of a portion of the specified byte array using the specified hash algorithm and signs the resulting hash value. (継承元 DSA) |
SignData(Stream, HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用して、指定したストリームのハッシュ値を計算し、結果のハッシュ値に署名します。Computes the hash value of the specified stream using the specified hash algorithm and signs the resulting hash value. (継承元 DSA) |
ToString() |
現在のオブジェクトを表す string を返します。Returns a string that represents the current object. (継承元 Object) |
ToXmlString(Boolean) |
現在の DSA オブジェクトの XML 文字列形式を作成して返します。Creates and returns an XML string representation of the current DSA object. (継承元 DSA) |
TryCreateSignature(ReadOnlySpan<Byte>, Span<Byte>, Int32) |
指定されたハッシュの DSA 署名を、指定されたバッファーに作成しようとします。Attempts to create the DSA signature for the specified hash into the provided buffer. (継承元 DSA) |
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32) |
バイトベースのパスワードを使用して、現在のキーを PKCS#8 EncryptedPrivateKeyInfo 形式で指定のバッファーにエクスポートすることを試みます。Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a byte-based password. (継承元 DSA) |
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32) |
char ベースのパスワードを使用して、PKCS#8 EncryptedPrivateKeyInfo 形式の現在のキーを、指定されたバッファーにエクスポートすることを試みます。Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a char-based password. (継承元 DSA) |
TryExportPkcs8PrivateKey(Span<Byte>, Int32) |
PKCS#8 PrivateKeyInfo 形式の現在のキーを、指定のバッファーにエクスポートすることを試みます。Attempts to export the current key in the PKCS#8 PrivateKeyInfo format into a provided buffer. (継承元 DSA) |
TryExportSubjectPublicKeyInfo(Span<Byte>, Int32) |
現在のキーを X.509 SubjectPublicKeyInfo 形式で指定のバッファーにエクスポートすることを試みます。Attempts to export the current key in the X.509 SubjectPublicKeyInfo format into a provided buffer. (継承元 DSA) |
TryHashData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32) |
指定されたバッファーに指定されたデータのハッシュ値を計算しようとします。Attempts to compute the hash value of the provided data into a provided buffer. (継承元 DSA) |
TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32) |
指定されたデータの DSA 署名を、指定されたバッファーに作成しようとします。Attempts to create the DSA signature for the specified data into the provided buffer. (継承元 DSA) |
VerifyData(Byte[], Byte[], HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用して、指定したデータのハッシュ値を計算し、これを指定した署名と比較することによって、デジタル署名が有効であることを確認します。Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and comparing it to the provided signature. (継承元 DSA) |
VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用して、バイト配列の部分のデータのハッシュ値を計算し、これを指定した署名と比較することによって、デジタル署名が有効であることを確認します。Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and comparing it to the provided signature. (継承元 DSA) |
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName) |
指定されたハッシュ アルゴリズムを使用して、バイト スパン内のデータのハッシュ値を計算し、これを指定された署名と比較することによって、デジタル署名が有効であることを確認します。Verifies that a digital signature is valid by calculating the hash value of the data in a byte span using the specified hash algorithm and comparing it to the provided signature. (継承元 DSA) |
VerifyData(Stream, Byte[], HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用して、指定したストリームのハッシュ値を計算し、これを指定した署名と比較することによって、デジタル署名が有効であることを確認します。Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and comparing it to the provided signature. (継承元 DSA) |
VerifySignature(Byte[], Byte[]) |
指定されたデジタル署名が指定されたハッシュと一致するかどうかを確認します。Verifies if the specified digital signature matches the specified hash. |
VerifySignature(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
指定されたデータ ハッシュに対してデジタル署名が有効であることを検証します。Verifies that a digital signature is valid for a provided data hash. (継承元 DSA) |
明示的なインターフェイスの実装
IDisposable.Dispose() |
このメンバーの詳細については、「Dispose()」をご覧ください。For a description of this member, see Dispose(). (継承元 AsymmetricAlgorithm) |