ECDsa.VerifyData 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
디지털 서명이 현재 키와 지정된 해시 알고리즘이 제공된 데이터에 적절한지 확인합니다.
오버로드
| 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)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- 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입니다.
예외
적용 대상
VerifyData(Stream, Byte[], HashAlgorithmName)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- 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입니다.
예외
적용 대상
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- 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입니다.
예외
적용 대상
VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- 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 또는 signature가 null인 경우
signatureFormat은 알려진 형식이 아닙니다.
hashAlgorithm은 null 또는 빈 Name입니다.
해시 또는 확인 작업에서 오류가 발생했습니다.
적용 대상
VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- 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 또는 signature가 null인 경우
signatureFormat은 알려진 형식이 아닙니다.
hashAlgorithm은 null 또는 빈 Name입니다.
해시 또는 확인 작업에서 오류가 발생했습니다.
적용 대상
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- 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)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- 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입니다.
예외
offset가 0보다 작은 경우
또는
count가 0보다 작은 경우
또는
offset
+
count – 1의 결과는 data의 상한을 초과하는 인덱스입니다.
적용 대상
VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, DSASignatureFormat)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- 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 또는 signature가 null인 경우
signatureFormat은 알려진 형식이 아닙니다.
또는
offset가 0보다 작은 경우
또는
count가 0보다 작은 경우
또는
offset
+
count – 1의 결과는 data의 상한을 초과하는 인덱스입니다.
hashAlgorithm은 null 또는 빈 Name입니다.
해시 또는 확인 작업에서 오류가 발생했습니다.