Method
VerifyData
static func VerifyData(key: ReadOnlySlice<byte>, data: ReadOnlySlice<byte>, tag: ReadOnlySlice<byte>) -> bool
Declaring type: HMACSHA256
Module: System.Security.Cryptography
Assembly: System.Runtime.dll
Source file: HMACSHA256.rvn
Verifies a complete tag through the provider's timing-safe comparison.
Parameters
| Name | Type | Description |
|---|---|---|
key |
ReadOnlySlice<Byte> | Fully initialized key bytes. |
data |
ReadOnlySlice<Byte> | Fully initialized message bytes. |
tag |
ReadOnlySlice<Byte> | Fully initialized tag; altered or truncated tags return false. |
Return value
True only for a matching complete 32-byte tag.
Remarks
Invalid storage remains a terminal fault.