DSA.VerifyData メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
デジタル署名が有効であることを確認します。
オーバーロード
| 名前 | 説明 |
|---|---|
| VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, DSASignatureFormat) |
指定されたデータに対してデジタル署名が有効であることを確認します。 |
| VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用してバイト配列の一部のデータのハッシュ値を計算し、指定されたシグネチャと比較することで、デジタル署名が有効であることを確認します。 |
| VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat) |
指定されたデータに対してデジタル署名が有効であることを確認します。 |
| VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat) |
指定されたデータに対してデジタル署名が有効であることを確認します。 |
| VerifyData(Stream, Byte[], HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用して指定したストリームのハッシュ値を計算し、指定された署名と比較することで、デジタル署名が有効であることを確認します。 |
| VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName) |
デジタル署名が有効であることを確認するには、指定したハッシュ アルゴリズムを使用してバイトスパンのデータのハッシュ値を計算し、指定された署名と比較します。 |
| VerifyData(Byte[], Byte[], HashAlgorithmName) |
指定したハッシュ アルゴリズムを使用して指定したデータのハッシュ値を計算し、指定された署名と比較することで、デジタル署名が有効であることを確認します。 |
| VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat) |
指定されたデータに対してデジタル署名が有効であることを確認します。 |
VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, DSASignatureFormat)
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
指定されたデータに対してデジタル署名が有効であることを確認します。
public:
bool VerifyData(cli::array <System::Byte> ^ data, int offset, int count, cli::array <System::Byte> ^ signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyData(byte[] data, int offset, int count, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyData : byte[] * int * int * byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyData (data As Byte(), offset As Integer, count As Integer, signature As Byte(), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean
パラメーター
- data
- Byte[]
署名されたデータを含む配列。
- offset
- Int32
dataの符号付き部分の開始インデックス。
- count
- Int32
署名された data 内のバイト数。
- signature
- Byte[]
確認する署名。
- hashAlgorithm
- HashAlgorithmName
検証プロセスのデータをハッシュするために使用されるハッシュ アルゴリズム。
- signatureFormat
- DSASignatureFormat
signatureのエンコード形式。
返品
true 指定されたデータに対してデジタル署名が有効な場合。それ以外の場合は false。
例外
data または signature が null。
signatureFormat は既知の形式ではありません。
または、 offset が 0 未満です。
または、 count が 0 未満です。
または、 offset + count - 1 の場合、 dataの上限を超えるインデックスが作成されます。
hashAlgorithm には、 null または空の Nameがあります。
ハッシュまたは検証操作でエラーが発生しました。
適用対象
VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName)
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
指定したハッシュ アルゴリズムを使用してバイト配列の一部のデータのハッシュ値を計算し、指定されたシグネチャと比較することで、デジタル署名が有効であることを確認します。
public:
virtual bool VerifyData(cli::array <System::Byte> ^ data, int offset, int count, cli::array <System::Byte> ^ signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member VerifyData : byte[] * int * int * byte[] * System.Security.Cryptography.HashAlgorithmName -> bool
override this.VerifyData : byte[] * int * int * byte[] * System.Security.Cryptography.HashAlgorithmName -> bool
Public Overridable Function VerifyData (data As Byte(), offset As Integer, count As Integer, signature As Byte(), hashAlgorithm As HashAlgorithmName) As Boolean
パラメーター
- data
- Byte[]
署名されたデータ。
- offset
- Int32
ハッシュを計算する開始インデックス。
- count
- Int32
ハッシュするバイト数。
- signature
- Byte[]
検証する署名データ。
- hashAlgorithm
- HashAlgorithmName
データのハッシュ値を作成するために使用されるハッシュ アルゴリズム。
返品
true デジタル署名が有効な場合。それ以外の場合は false。
例外
offset が 0 未満です。
-又は-
count が 0 未満です。
-又は-
offset
+
count - 1 の場合、 dataの上限を超えるインデックスが作成されます。
実装の種類では、レガシ DSA (FIPS 186-2) のみがサポートされ、ハッシュ アルゴリズムは SHA-1 ではありません。
-又は-
署名の検証に失敗しました。
適用対象
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
指定されたデータに対してデジタル署名が有効であることを確認します。
public:
bool VerifyData(ReadOnlySpan<System::Byte> data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyData (data As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean
パラメーター
- data
- ReadOnlySpan<Byte>
署名されたデータ。
- signature
- ReadOnlySpan<Byte>
確認する署名。
- hashAlgorithm
- HashAlgorithmName
検証プロセスのデータをハッシュするために使用されるハッシュ アルゴリズム。
- signatureFormat
- DSASignatureFormat
signatureのエンコード形式。
返品
true 指定されたデータに対してデジタル署名が有効な場合。それ以外の場合は false。
例外
signatureFormat は既知の形式ではありません。
ハッシュまたは検証操作でエラーが発生しました。
適用対象
VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat)
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
指定されたデータに対してデジタル署名が有効であることを確認します。
public:
bool VerifyData(System::IO::Stream ^ data, cli::array <System::Byte> ^ signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyData(System.IO.Stream data, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyData : System.IO.Stream * byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyData (data As Stream, signature As Byte(), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean
パラメーター
- data
- Stream
署名されたデータ。
- signature
- Byte[]
確認する署名。
- hashAlgorithm
- HashAlgorithmName
検証プロセスのデータをハッシュするために使用されるハッシュ アルゴリズム。
- signatureFormat
- DSASignatureFormat
signatureのエンコード形式。
返品
true 指定されたデータに対してデジタル署名が有効な場合。それ以外の場合は false。
例外
data または signature が null。
signatureFormat は既知の形式ではありません。
hashAlgorithm には、 null または空の Nameがあります。
ハッシュまたは検証操作でエラーが発生しました。
適用対象
VerifyData(Stream, Byte[], HashAlgorithmName)
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
指定したハッシュ アルゴリズムを使用して指定したストリームのハッシュ値を計算し、指定された署名と比較することで、デジタル署名が有効であることを確認します。
public:
virtual bool VerifyData(System::IO::Stream ^ data, cli::array <System::Byte> ^ signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual bool VerifyData(System.IO.Stream data, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member VerifyData : System.IO.Stream * byte[] * System.Security.Cryptography.HashAlgorithmName -> bool
override this.VerifyData : System.IO.Stream * byte[] * System.Security.Cryptography.HashAlgorithmName -> bool
Public Overridable Function VerifyData (data As Stream, signature As Byte(), hashAlgorithm As HashAlgorithmName) As Boolean
パラメーター
- data
- Stream
署名されたデータ。
- signature
- Byte[]
検証する署名データ。
- hashAlgorithm
- HashAlgorithmName
データのハッシュ値を作成するために使用されるハッシュ アルゴリズム。
返品
true デジタル署名が有効な場合。それ以外の場合は false。
例外
実装の種類では、レガシ DSA (FIPS 186-2) のみがサポートされ、ハッシュ アルゴリズムは SHA-1 ではありません。
-又は-
署名の検証に失敗しました。
適用対象
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
デジタル署名が有効であることを確認するには、指定したハッシュ アルゴリズムを使用してバイトスパンのデータのハッシュ値を計算し、指定された署名と比較します。
public:
virtual bool VerifyData(ReadOnlySpan<System::Byte> data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member VerifyData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName -> bool
override this.VerifyData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName -> bool
Public Overridable Function VerifyData (data As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName) As Boolean
パラメーター
- data
- ReadOnlySpan<Byte>
署名されたデータ。
- signature
- ReadOnlySpan<Byte>
検証する署名。
- hashAlgorithm
- HashAlgorithmName
データのハッシュ値を作成するために使用されるハッシュ アルゴリズム。
返品
true デジタル署名が有効な場合。それ以外の場合は false。
例外
実装の種類では、レガシ DSA (FIPS 186-2) のみがサポートされ、ハッシュ アルゴリズムは SHA-1 ではありません。
-又は-
署名の検証に失敗しました。
適用対象
VerifyData(Byte[], Byte[], HashAlgorithmName)
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
指定したハッシュ アルゴリズムを使用して指定したデータのハッシュ値を計算し、指定された署名と比較することで、デジタル署名が有効であることを確認します。
public:
bool VerifyData(cli::array <System::Byte> ^ data, cli::array <System::Byte> ^ signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public bool VerifyData(byte[] data, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
member this.VerifyData : byte[] * byte[] * System.Security.Cryptography.HashAlgorithmName -> bool
Public Function VerifyData (data As Byte(), signature As Byte(), hashAlgorithm As HashAlgorithmName) As Boolean
パラメーター
- data
- Byte[]
署名されたデータ。
- signature
- Byte[]
検証する署名データ。
- hashAlgorithm
- HashAlgorithmName
データのハッシュ値を作成するために使用されるハッシュ アルゴリズム。
返品
true デジタル署名が有効な場合。それ以外の場合は false。
例外
実装の種類では、レガシ DSA (FIPS 186-2) のみがサポートされ、ハッシュ アルゴリズムは SHA-1 ではありません。
-又は-
署名の検証に失敗しました。
適用対象
VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat)
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
- ソース:
- DSA.cs
指定されたデータに対してデジタル署名が有効であることを確認します。
public:
bool VerifyData(cli::array <System::Byte> ^ data, cli::array <System::Byte> ^ signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyData(byte[] data, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyData : byte[] * byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyData (data As Byte(), signature As Byte(), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean
パラメーター
- data
- Byte[]
署名されたデータ。
- signature
- Byte[]
確認する署名。
- hashAlgorithm
- HashAlgorithmName
検証プロセスのデータをハッシュするために使用されるハッシュ アルゴリズム。
- signatureFormat
- DSASignatureFormat
signatureのエンコード形式。
返品
true 指定されたデータに対してデジタル署名が有効な場合。それ以外の場合は false。
例外
data または signature が null。
signatureFormat は既知の形式ではありません。
hashAlgorithm には、 null または空の Nameがあります。
ハッシュまたは検証操作でエラーが発生しました。