7[UnsupportedOSPlatform(
"browser")]
12 public override byte[]
Key
40 base.HashName =
"SHA1";
43 base.BlockSizeValue = 64;
48 [Obsolete(
"HMACSHA1 always uses the algorithm implementation provided by the platform. Use a constructor without the useManagedSha1 parameter.", DiagnosticId =
"SYSLIB0030", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
54 protected override void HashCore(
byte[] rgb,
int ib,
int cb)
94 byte[]
array =
new byte[20];
119 protected override void Dispose(
bool disposing)
124 if (hMacCommon !=
null)
130 base.Dispose(disposing);
void ChangeKey(byte[] key)
void Dispose(bool disposing)
byte[] FinalizeHashAndReset()
bool TryFinalizeHashAndReset(Span< byte > destination, out int bytesWritten)
void AppendHashData(byte[] data, int offset, int count)
static int MacData(string hashAlgorithmId, ReadOnlySpan< byte > key, ReadOnlySpan< byte > source, Span< byte > destination)
static string Argument_DestinationTooShort
HMACSHA1(byte[] key, bool useManagedSha1)
static int HashData(ReadOnlySpan< byte > key, ReadOnlySpan< byte > source, Span< byte > destination)
override void HashCore(ReadOnlySpan< byte > source)
static bool TryHashData(ReadOnlySpan< byte > key, ReadOnlySpan< byte > source, Span< byte > destination, out int bytesWritten)
override void Dispose(bool disposing)
static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan< byte > key, ReadOnlySpan< byte > source)
override void HashCore(byte[] rgb, int ib, int cb)
override byte[] HashFinal()
override bool TryHashFinal(Span< byte > destination, out int bytesWritten)
override void Initialize()