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