DSA.VerifyData 메서드

정의

디지털 서명이 유효한지 확인합니다.

오버로드

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)

Source:
DSA.cs
Source:
DSA.cs
Source:
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 또는 signaturenull인 경우

signatureFormat은 알려진 형식이 아닙니다.

-또는- offset가 0보다 작습니다.

-또는- count가 0보다 작습니다.

-또는- offset + count – 1의 결과는 data의 상한을 초과하는 인덱스입니다.

hashAlgorithmnull 또는 빈 Name입니다.

해시 또는 확인 작업에서 오류가 발생했습니다.

적용 대상

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

Source:
DSA.cs
Source:
DSA.cs
Source:
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입니다.

예외

datanull입니다.

또는

signaturenull입니다.

hashAlgorithm.Namenull 또는 Empty입니다.

offset가 0보다 작은 경우

또는

count가 0보다 작은 경우

또는

offset + count – 1의 결과는 data의 상한을 초과하는 인덱스입니다.

구현 형식은 레거시 DSA(FIPS 186-2)만 지원하며 해시 알고리즘은 SHA-1이 아닙니다.

또는

그 외의 경우에는 시그니처를 확인하지 못했습니다.

적용 대상

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

Source:
DSA.cs
Source:
DSA.cs
Source:
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)

Source:
DSA.cs
Source:
DSA.cs
Source:
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 또는 signaturenull인 경우

signatureFormat은 알려진 형식이 아닙니다.

hashAlgorithmnull 또는 빈 Name입니다.

해시 또는 확인 작업에서 오류가 발생했습니다.

적용 대상

VerifyData(Stream, Byte[], HashAlgorithmName)

Source:
DSA.cs
Source:
DSA.cs
Source:
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입니다.

예외

datanull입니다.

또는

signaturenull입니다.

hashAlgorithm.Namenull 또는 Empty입니다.

구현 형식은 레거시 DSA(FIPS 186-2)만 지원하며 해시 알고리즘은 SHA-1이 아닙니다.

또는

그 외의 경우에는 시그니처를 확인하지 못했습니다.

적용 대상

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

Source:
DSA.cs
Source:
DSA.cs
Source:
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입니다.

예외

hashAlgorithm.Namenull 또는 Empty입니다.

구현 형식은 레거시 DSA(FIPS 186-2)만 지원하며 해시 알고리즘은 SHA-1이 아닙니다.

또는

그 외의 경우에는 시그니처를 확인하지 못했습니다.

적용 대상

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

Source:
DSA.cs
Source:
DSA.cs
Source:
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입니다.

예외

datanull입니다.

또는

signature이(가) null인 경우

구현 형식은 레거시 DSA(FIPS 186-2)만 지원하며 해시 알고리즘은 SHA-1이 아닙니다.

또는

그 외의 경우에는 시그니처를 확인하지 못했습니다.

hashAlgorithm.Namenull 또는 Empty입니다.

적용 대상

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

Source:
DSA.cs
Source:
DSA.cs
Source:
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 또는 signaturenull인 경우

signatureFormat은 알려진 형식이 아닙니다.

hashAlgorithmnull 또는 빈 Name입니다.

해시 또는 확인 작업에서 오류가 발생했습니다.

적용 대상