MLDsa.VerifyPreHash 메서드

정의

오버로드

Name Description
VerifyPreHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, String, ReadOnlySpan<Byte>)

지정된 FIPS 204 사전 해시 서명이 이 키와 제공된 해시에 대해 유효한지 확인합니다.

VerifyPreHash(Byte[], Byte[], String, Byte[])

지정된 FIPS 204 사전 해시 서명이 이 키와 제공된 해시에 대해 유효한지 확인합니다.

VerifyPreHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, String, ReadOnlySpan<Byte>)

Source:
MLDsa.cs
Source:
MLDsa.cs
Source:
MLDsa.cs

지정된 FIPS 204 사전 해시 서명이 이 키와 제공된 해시에 대해 유효한지 확인합니다.

[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public bool VerifyPreHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, string hashAlgorithmOid, ReadOnlySpan<byte> context = default);
public bool VerifyPreHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, string hashAlgorithmOid, ReadOnlySpan<byte> context = default);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.VerifyPreHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> * string * ReadOnlySpan<byte> -> bool
member this.VerifyPreHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> * string * ReadOnlySpan<byte> -> bool
Public Function VerifyPreHash (hash As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), hashAlgorithmOid As String, Optional context As ReadOnlySpan(Of Byte) = Nothing) As Boolean

매개 변수

hash
ReadOnlySpan<Byte>

확인할 해시입니다.

signature
ReadOnlySpan<Byte>

확인할 서명입니다.

hashAlgorithmOid
String

해시를 만드는 데 사용되는 해시 알고리즘의 OID입니다.

context
ReadOnlySpan<Byte>

서명하는 동안 제공된 컨텍스트 값입니다.

기본값은 빈 버퍼입니다.

반품

true서명이 해시의 유효성을 검사하는 경우 그렇지 않으면 . false

특성

예외

hashAlgorithmOidnull입니다.

context Length 에는 255바이트를 초과합니다.

이 인스턴스가 삭제되었습니다.

hashAlgorithmOid 은 올바른 형식의 OID가 아닙니다.

-또는-

hashAlgorithmOid 는 잘 알려진 알고리즘이며 hash 예상 길이가 없습니다.

-또는-

해시를 확인하는 동안 오류가 발생했습니다.

적용 대상

VerifyPreHash(Byte[], Byte[], String, Byte[])

Source:
MLDsa.cs
Source:
MLDsa.cs
Source:
MLDsa.cs

지정된 FIPS 204 사전 해시 서명이 이 키와 제공된 해시에 대해 유효한지 확인합니다.

[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public bool VerifyPreHash(byte[] hash, byte[] signature, string hashAlgorithmOid, byte[]? context = default);
public bool VerifyPreHash(byte[] hash, byte[] signature, string hashAlgorithmOid, byte[]? context = default);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.VerifyPreHash : byte[] * byte[] * string * byte[] -> bool
member this.VerifyPreHash : byte[] * byte[] * string * byte[] -> bool
Public Function VerifyPreHash (hash As Byte(), signature As Byte(), hashAlgorithmOid As String, Optional context As Byte() = Nothing) As Boolean

매개 변수

hash
Byte[]

확인할 해시입니다.

signature
Byte[]

확인할 서명입니다.

hashAlgorithmOid
String

해시를 만드는 데 사용되는 해시 알고리즘의 OID입니다.

context
Byte[]

서명하는 동안 제공된 컨텍스트 값입니다.

기본값은 null입니다.

반품

true서명이 해시의 유효성을 검사하는 경우 그렇지 않으면 . false

특성

예외

hash 또는 signaturehashAlgorithmOid 입니다 null.

context 길이가 255바이트를 초과하는 경우

이 인스턴스가 삭제되었습니다.

hashAlgorithmOid 은 올바른 형식의 OID가 아닙니다.

-또는-

hashAlgorithmOid 는 잘 알려진 알고리즘이며 hash 예상 길이가 없습니다.

-또는-

해시를 확인하는 동안 오류가 발생했습니다.

설명

null 컨텍스트는 비어 있는 것으로 처리됩니다.

적용 대상