ECDsa.VerifyData メソッド

定義

指定したハッシュ アルゴリズムを使用して、現在のキーおよび指定したデータに対してデジタル署名が適切であることを確認します。

オーバーロード

VerifyData(Byte[], Byte[], HashAlgorithmName)

指定したハッシュ アルゴリズムを使用して、現在のキーおよび指定したデータに対してデジタル署名が適切であることを確認します。

VerifyData(Stream, Byte[], HashAlgorithmName)

指定したハッシュ アルゴリズムを使用して、現在のキーおよび指定したデータに対してデジタル署名が適切であることを確認します。

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)

指定したハッシュ アルゴリズムを使用して、現在のキーおよび指定したデータに対してデジタル署名が適切であることを確認します。

VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat)

指定したデータに対してデジタル署名が有効であることを検証します。

VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat)

指定したデータに対してデジタル署名が有効であることを検証します。

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

指定したデータに対してデジタル署名が有効であることを検証します。

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

指定したハッシュ アルゴリズムを使用して、現在のキーおよびデータの指定した部分に対して、デジタル署名が適切であることを確認します。

VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, DSASignatureFormat)

指定したデータに対してデジタル署名が有効であることを検証します。

VerifyData(Byte[], Byte[], HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.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

例外

datanull です。

または

signaturenull です。

hashAlgorithm.Namenull または Empty です。

適用対象

VerifyData(Stream, Byte[], HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したハッシュ アルゴリズムを使用して、現在のキーおよび指定したデータに対してデジタル署名が適切であることを確認します。

public:
 bool VerifyData(System::IO::Stream ^ data, cli::array <System::Byte> ^ signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public bool VerifyData (System.IO.Stream data, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
member this.VerifyData : System.IO.Stream * byte[] * System.Security.Cryptography.HashAlgorithmName -> bool
Public Function VerifyData (data As Stream, signature As Byte(), hashAlgorithm As HashAlgorithmName) As Boolean

パラメーター

data
Stream

署名されるデータ。

signature
Byte[]

検証する署名データ。

hashAlgorithm
HashAlgorithmName

データのハッシュ値を作成するために使用されるハッシュ アルゴリズム。

戻り値

署名が有効な場合は true。それ以外の場合は false

例外

datanull です。

または

signaturenull です。

hashAlgorithm.Namenull または Empty です。

適用対象

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.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

例外

hashAlgorithm.Namenull または Empty です。

適用対象

VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.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 または signaturenull です。

signatureFormat は既知の形式ではありません。

hashAlgorithm には null または空の Name があります。

ハッシュまたは検証操作で発生したエラー。

適用対象

VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.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 または signaturenull です。

signatureFormat は既知の形式ではありません。

hashAlgorithm には null または空の Name があります。

ハッシュまたは検証操作で発生したエラー。

適用対象

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.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(Byte[], Int32, Int32, Byte[], HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.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

例外

datanull です。

または

signaturenull です。

hashAlgorithm.Namenull または Empty です。

offset が 0 未満です。

または

count が 0 未満です。

または

offset + count - 1 の結果は、data の上限を超えるインデックスになります。

適用対象

VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.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 または signaturenull です。

signatureFormat は既知の形式ではありません。

- または -

offset が 0 未満です。

または

count が 0 未満です。

または

offset + count - 1 の結果は、data の上限を超えるインデックスになります。

hashAlgorithm には null または空の Name があります。

ハッシュまたは検証操作で発生したエラー。

適用対象