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