30 references to TryGetHashAndReset
System.Security.Cryptography (23)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
80
if (!hmac.
TryGetHashAndReset
(derived, out int bytesWritten) || bytesWritten != expectedOutputSize)
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanDerivation.cs (3)
203
if (!hasher.
TryGetHashAndReset
(a, out int bytesWritten) || bytesWritten != hashOutputSize)
215
if (!hasher.
TryGetHashAndReset
(p, out bytesWritten) || bytesWritten != hashOutputSize)
233
if (!hasher.
TryGetHashAndReset
(a, out bytesWritten) || bytesWritten != hashOutputSize)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
993
if (!hasher.
TryGetHashAndReset
(t, out int tLength))
1006
if (!hasher.
TryGetHashAndReset
(t, out tLength) || tLength != t.Length)
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
183
if (!hash.
TryGetHashAndReset
(hashBuf, out int bytesWritten) || bytesWritten != hashBuf.Length)
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (5)
330
if (!hasher.
TryGetHashAndReset
(lHash, out int hLen2) || hLen2 != hLen)
437
if (!hasher.
TryGetHashAndReset
(hDest, out int hLen2) || hLen2 != hLen)
564
if (!hasher.
TryGetHashAndReset
(hPrime, out int hLen2) || hLen2 != hLen)
600
if (!hasher.
TryGetHashAndReset
(writePtr, out int bytesWritten))
613
if (!hasher.
TryGetHashAndReset
(tmp, out int bytesWritten))
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
950
if (!mac.
TryGetHashAndReset
(macKey, out int bytesWritten) || bytesWritten != macKey.Length)
System\Security\Cryptography\MD5CryptoServiceProvider.cs (2)
28
if (!_incrementalHash.
TryGetHashAndReset
(destination, out _))
59
return _incrementalHash.
TryGetHashAndReset
(destination, out bytesWritten);
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (2)
31
if (!_incrementalHash.
TryGetHashAndReset
(destination, out _))
62
return _incrementalHash.
TryGetHashAndReset
(destination, out bytesWritten);
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (2)
31
if (!_incrementalHash.
TryGetHashAndReset
(destination, out _))
62
return _incrementalHash.
TryGetHashAndReset
(destination, out bytesWritten);
System\Security\Cryptography\SHA384CryptoServiceProvider.cs (2)
31
if (!_incrementalHash.
TryGetHashAndReset
(destination, out _))
62
return _incrementalHash.
TryGetHashAndReset
(destination, out bytesWritten);
System\Security\Cryptography\SHA512CryptoServiceProvider.cs (2)
31
if (!_incrementalHash.
TryGetHashAndReset
(destination, out _))
62
return _incrementalHash.
TryGetHashAndReset
(destination, out bytesWritten);
System.Security.Cryptography.Pkcs (7)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
80
if (!hmac.
TryGetHashAndReset
(derived, out int bytesWritten) || bytesWritten != expectedOutputSize)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
993
if (!hasher.
TryGetHashAndReset
(t, out int tLength))
1006
if (!hasher.
TryGetHashAndReset
(t, out tLength) || tLength != t.Length)
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
183
if (!hash.
TryGetHashAndReset
(hashBuf, out int bytesWritten) || bytesWritten != hashBuf.Length)
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
221
if (!mac.
TryGetHashAndReset
(macSpan, out int bytesWritten) || bytesWritten != macSpan.Length)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (1)
189
if (hasher.
TryGetHashAndReset
(stackSpan, out int bytesWritten))
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
763
if (hasher.
TryGetHashAndReset
(digestValue, out int bytesWritten))