8 implementations of HashSizeInBytes
System.Security.Cryptography (8)
System\Security\Cryptography\HMACMD5.cs (1)
22static int IHMACStatic.HashSizeInBytes => HashSizeInBytes;
System\Security\Cryptography\HMACSHA1.cs (1)
23static int IHMACStatic.HashSizeInBytes => HashSizeInBytes;
System\Security\Cryptography\HMACSHA256.cs (1)
22static int IHMACStatic.HashSizeInBytes => HashSizeInBytes;
System\Security\Cryptography\HMACSHA3_256.cs (1)
19static int IHMACStatic.HashSizeInBytes => HashSizeInBytes;
System\Security\Cryptography\HMACSHA3_384.cs (1)
19static int IHMACStatic.HashSizeInBytes => HashSizeInBytes;
System\Security\Cryptography\HMACSHA3_512.cs (1)
19static int IHMACStatic.HashSizeInBytes => HashSizeInBytes;
System\Security\Cryptography\HMACSHA384.cs (1)
22static int IHMACStatic.HashSizeInBytes => HashSizeInBytes;
System\Security\Cryptography\HMACSHA512.cs (1)
22static int IHMACStatic.HashSizeInBytes => HashSizeInBytes;
18 references to HashSizeInBytes
System.Security.Cryptography (18)
System\Security\Cryptography\HMACStatic.cs (18)
26if (hash.Length != THMAC.HashSizeInBytes) 27throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, THMAC.HashSizeInBytes), nameof(hash)); 31Span<byte> mac = stackalloc byte[THMAC.HashSizeInBytes]; 33Debug.Assert(written == THMAC.HashSizeInBytes); 51byte[] buffer = new byte[THMAC.HashSizeInBytes]; 73if (destination.Length < THMAC.HashSizeInBytes) 80Debug.Assert(bytesWritten == THMAC.HashSizeInBytes); 89if (destination.Length < THMAC.HashSizeInBytes) 107return LiteHashProvider.HmacStream(THMAC.HashAlgorithmName, THMAC.HashSizeInBytes, key, source); 146if (destination.Length < THMAC.HashSizeInBytes) 174if (hash.Length != THMAC.HashSizeInBytes) 175throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, THMAC.HashSizeInBytes), nameof(hash)); 181Span<byte> mac = stackalloc byte[THMAC.HashSizeInBytes]; 183Debug.Assert(written == THMAC.HashSizeInBytes); 207if (hash.Length != THMAC.HashSizeInBytes) 208throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, THMAC.HashSizeInBytes), nameof(hash)); 222byte[] mac = new byte[THMAC.HashSizeInBytes]; 233Debug.Assert(written == THMAC.HashSizeInBytes);