Static class
HMACSHA256
static class HMACSHA256
Module: System.Security.Cryptography
Assembly: System.Runtime.dll
Source file: HMACSHA256.rvn
One-shot HMACSHA256 operations using the runtime cryptographic provider.
Methods
2 items
Static member:
HashData(key: ReadOnlySlice<byte>, data: ReadOnlySlice<byte>, destination: Slice<byte>) -> Result<int, CryptographyError>
Writes a 32-byte digest. Short destinations remain unchanged; trailing bytes are preserved. Inputs may overlap destination and are never retained.
Static member:
VerifyData(key: ReadOnlySlice<byte>, data: ReadOnlySlice<byte>, tag: ReadOnlySlice<byte>) -> bool
Verifies a complete tag through the provider's timing-safe comparison.