110 references to ZeroMemory
System.Net.Security (7)
src\libraries\Common\src\System\Net\Security\RC4.cs (1)
70CryptographicOperations.ZeroMemory(state.AsSpan(0, 256));
src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
31CryptographicOperations.ZeroMemory(array.AsSpan(0, clearSize));
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (5)
388CryptographicOperations.ZeroMemory(pwBytes); 389CryptographicOperations.ZeroMemory(pwHash); 695CryptographicOperations.ZeroMemory(exportedSessionKey); 798CryptographicOperations.ZeroMemory(output); 826CryptographicOperations.ZeroMemory(input.Slice(SignatureLength));
System.Security.Cryptography (84)
src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
31CryptographicOperations.ZeroMemory(array.AsSpan(0, clearSize));
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (1)
180CryptographicOperations.ZeroMemory(secret);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (2)
151CryptographicOperations.ZeroMemory(decryptedMemory.Span); 244CryptographicOperations.ZeroMemory(encryptedSpan);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (12)
218CryptographicOperations.ZeroMemory(buf); 402CryptographicOperations.ZeroMemory(pwdTmpBytes); 555CryptographicOperations.ZeroMemory(key); 797CryptographicOperations.ZeroMemory(tmpPassword); 798CryptographicOperations.ZeroMemory(tmpSalt); 851CryptographicOperations.ZeroMemory(dk); 909CryptographicOperations.ZeroMemory(key); 910CryptographicOperations.ZeroMemory(iv); 959CryptographicOperations.ZeroMemory(tmpEndSpan); 967CryptographicOperations.ZeroMemory(tmpKey); 968CryptographicOperations.ZeroMemory(tmpIv); 1015CryptographicOperations.ZeroMemory(t);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
102CryptographicOperations.ZeroMemory(destination); 152CryptographicOperations.ZeroMemory(tmp.Slice(0, written));
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (3)
376CryptographicOperations.ZeroMemory(dbMaskSpan); 466CryptographicOperations.ZeroMemory(dbMask); 579CryptographicOperations.ZeroMemory(dbMask);
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (1)
104CryptographicOperations.ZeroMemory(_key);
src\libraries\Common\src\System\Security\Cryptography\Utf8DataEncoding.cs (1)
30CryptographicOperations.ZeroMemory(_buffer);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
720CryptographicOperations.ZeroMemory(
System\Security\Cryptography\AesGcm.OpenSsl.cs (1)
109CryptographicOperations.ZeroMemory(plaintext);
System\Security\Cryptography\AsymmetricAlgorithm.cs (3)
407CryptographicOperations.ZeroMemory(exported); 460CryptographicOperations.ZeroMemory(exported); 508CryptographicOperations.ZeroMemory(exported);
System\Security\Cryptography\Base64Transforms.cs (1)
351CryptographicOperations.ZeroMemory(_inputBuffer);
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (1)
108CryptographicOperations.ZeroMemory(plaintext);
System\Security\Cryptography\CryptoStream.cs (10)
322CryptographicOperations.ZeroMemory(_outputBuffer.AsSpan(_outputBufferIndex, bytesToCopy)); 362CryptographicOperations.ZeroMemory(new Span<byte>(_inputBuffer, 0, _inputBufferIndex)); 396CryptographicOperations.ZeroMemory(new Span<byte>(tempOutputBuffer, 0, numOutputBytes)); 417CryptographicOperations.ZeroMemory(new Span<byte>(tempInputBuffer, 0, numWholeBlocksInBytes)); 520CryptographicOperations.ZeroMemory(sharedBuffer.AsSpan(0, buffer.Length)); 611CryptographicOperations.ZeroMemory(new Span<byte>(tempOutputBuffer, 0, numOutputBytes)); 617CryptographicOperations.ZeroMemory(new Span<byte>(tempOutputBuffer, 0, numOutputBytes)); 673CryptographicOperations.ZeroMemory(rentedBuffer.AsSpan(0, inputBuffer.Length)); 705CryptographicOperations.ZeroMemory(rentedBuffer.AsSpan(0, bufferSize)); 736CryptographicOperations.ZeroMemory(rentedBuffer.AsSpan(0, bufferSize));
System\Security\Cryptography\DSA.cs (4)
994CryptographicOperations.ZeroMemory(dsaParameters.X); 1024CryptographicOperations.ZeroMemory(ret.X); 1050CryptographicOperations.ZeroMemory(ret.X); 1074CryptographicOperations.ZeroMemory(key.X);
System\Security\Cryptography\ECAlgorithm.cs (10)
158CryptographicOperations.ZeroMemory(ecParameters.D); 230CryptographicOperations.ZeroMemory(ecParameters.D); 270CryptographicOperations.ZeroMemory(ecParameters.D); 382CryptographicOperations.ZeroMemory(ret.D); 456CryptographicOperations.ZeroMemory(ret.D); 515CryptographicOperations.ZeroMemory(key.D); 607CryptographicOperations.ZeroMemory(ecParameters.D); 628CryptographicOperations.ZeroMemory(ecParameters.D); 664CryptographicOperations.ZeroMemory(ecParameters.D); 891CryptographicOperations.ZeroMemory(exported);
System\Security\Cryptography\ECDsa.cs (2)
170CryptographicOperations.ZeroMemory(rented.AsSpan(0, bytesWritten)); 452CryptographicOperations.ZeroMemory(rented.AsSpan(0, bytesWritten));
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
24CryptographicOperations.ZeroMemory(new Span<byte>((void*)handle, _length));
System\Security\Cryptography\HashAlgorithm.cs (2)
112CryptographicOperations.ZeroMemory(buffer.AsSpan(0, clearLimit)); 148CryptographicOperations.ZeroMemory(rented.AsSpan(0, clearLimit));
System\Security\Cryptography\HKDFManagedImplementation.cs (1)
92CryptographicOperations.ZeroMemory(prk);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (2)
89CryptographicOperations.ZeroMemory(passwordBytes); 104CryptographicOperations.ZeroMemory(password);
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (1)
293CryptographicOperations.ZeroMemory(passwordBytes);
System\Security\Cryptography\RSA.cs (8)
1271CryptographicOperations.ZeroMemory(exported); 1395CryptographicOperations.ZeroMemory(rsaParameters.D); 1396CryptographicOperations.ZeroMemory(rsaParameters.P); 1397CryptographicOperations.ZeroMemory(rsaParameters.Q); 1398CryptographicOperations.ZeroMemory(rsaParameters.DP); 1399CryptographicOperations.ZeroMemory(rsaParameters.DQ); 1400CryptographicOperations.ZeroMemory(rsaParameters.InverseQ); 1464CryptographicOperations.ZeroMemory(rented.AsSpan(0, written));
System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (1)
75CryptographicOperations.ZeroMemory(hmacBuffer.Slice(0, hmacBufferWritten));
System\Security\Cryptography\SymmetricAlgorithm.cs (1)
736CryptographicOperations.ZeroMemory(decryptBuffer.Slice(0, written));
System\Security\Cryptography\UniversalCryptoOneShot.cs (10)
44CryptographicOperations.ZeroMemory(transformBuffer.Slice(bytesWritten)); 50CryptographicOperations.ZeroMemory(transformBuffer); 87CryptographicOperations.ZeroMemory(writtenDepadded); 93CryptographicOperations.ZeroMemory(writtenDepadded); 138CryptographicOperations.ZeroMemory(depaddedFinalTransform); 139CryptographicOperations.ZeroMemory(output.Slice(0, writtenToOutput)); 145CryptographicOperations.ZeroMemory(depaddedFinalTransform); 151CryptographicOperations.ZeroMemory(output.Slice(0, writtenToOutput)); 152CryptographicOperations.ZeroMemory(stackBuffer.Slice(0, finalTransformWritten)); 189CryptographicOperations.ZeroMemory(decryptedBuffer);
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (1)
505CryptographicOperations.ZeroMemory(macKey);
System.Security.Cryptography.Pkcs (19)
src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
31CryptographicOperations.ZeroMemory(array.AsSpan(0, clearSize));
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (2)
151CryptographicOperations.ZeroMemory(decryptedMemory.Span); 244CryptographicOperations.ZeroMemory(encryptedSpan);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (12)
218CryptographicOperations.ZeroMemory(buf); 402CryptographicOperations.ZeroMemory(pwdTmpBytes); 555CryptographicOperations.ZeroMemory(key); 797CryptographicOperations.ZeroMemory(tmpPassword); 798CryptographicOperations.ZeroMemory(tmpSalt); 851CryptographicOperations.ZeroMemory(dk); 909CryptographicOperations.ZeroMemory(key); 910CryptographicOperations.ZeroMemory(iv); 959CryptographicOperations.ZeroMemory(tmpEndSpan); 967CryptographicOperations.ZeroMemory(tmpKey); 968CryptographicOperations.ZeroMemory(tmpIv); 1015CryptographicOperations.ZeroMemory(t);
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
296CryptographicOperations.ZeroMemory(macSpan); 297CryptographicOperations.ZeroMemory(authSafeSpan);
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
272CryptographicOperations.ZeroMemory(destination.AsSpan(0, written)); 441CryptographicOperations.ZeroMemory(encryptedSpan);