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
ソース:
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
ソース:
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
ソース:
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
ソース:
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
ソース:
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
ソース:
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
ソース:
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
ソース:
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があります。

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

適用対象