144 references to CryptographicOperations
Aspire.Dashboard (1)
src\Shared\CompareHelpers.cs (1)
32return CryptographicOperations.FixedTimeEquals(expectedKeyBytes, requestBytesSpan);
Aspire.Hosting (1)
src\Shared\CompareHelpers.cs (1)
32return CryptographicOperations.FixedTimeEquals(expectedKeyBytes, requestBytesSpan);
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitId.cs (1)
41CryptographicOperations.FixedTimeEquals(
Microsoft.AspNetCore.Cryptography.Internal (2)
CryptoUtil.cs (2)
83return CryptographicOperations.FixedTimeEquals(bytesA, bytesB); 104return CryptographicOperations.FixedTimeEquals(
netstandard (1)
netstandard.cs (1)
1856[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CryptographicOperations))]
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 (109)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
86return CryptographicOperations.FixedTimeEquals(
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\Pkcs12Kdf.cs (1)
225CryptographicOperations.ZeroMemory(I);
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 (7)
90CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); 93CryptographicOperations.HashData(hashAlgorithm, data); 528return CryptographicOperations.TryHashData(hashAlgorithm, data, destination, out bytesWritten); 994CryptographicOperations.ZeroMemory(dsaParameters.X); 1024CryptographicOperations.ZeroMemory(ret.X); 1050CryptographicOperations.ZeroMemory(ret.X); 1074CryptographicOperations.ZeroMemory(key.X);
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (3)
106return CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); 114return CryptographicOperations.HashData(hashAlgorithm, data); 122return CryptographicOperations.TryHashData(hashAlgorithm, data, destination, out bytesWritten);
System\Security\Cryptography\DSAWrapper.cs (2)
160CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); 163CryptographicOperations.HashData(hashAlgorithm, data);
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 (5)
170CryptographicOperations.ZeroMemory(rented.AsSpan(0, bytesWritten)); 452CryptographicOperations.ZeroMemory(rented.AsSpan(0, bytesWritten)); 993CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); 996CryptographicOperations.HashData(hashAlgorithm, data); 1003return CryptographicOperations.TryHashData(hashAlgorithm, data, destination, out bytesWritten);
System\Security\Cryptography\ECDsaWrapper.cs (2)
185CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); 188CryptographicOperations.HashData(hashAlgorithm, data);
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 (2)
15int written = CryptographicOperations.HmacData(hashAlgorithmName, salt, ikm, prk); 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 (11)
97CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); 100CryptographicOperations.HashData(hashAlgorithm, data); 311return CryptographicOperations.TryHashData(hashAlgorithm, data, destination, out bytesWritten); 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\X509Certificates\X509Certificate.cs (3)
363return CryptographicOperations.HashData(hashAlgorithm, PalRawDataMemory.Span); 373return CryptographicOperations.TryHashData(hashAlgorithm, PalRawDataMemory.Span, destination, out bytesWritten); 392int written = CryptographicOperations.HashData(hashAlgorithm, rawData, buffer);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
724int bytesWritten = CryptographicOperations.HashData(hashAlgorithm, cert.RawDataMemory.Span, thumbprintBuffer);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
210int written = CryptographicOperations.HashData(hashAlgorithmName, key.EncodedKeyValue.RawData, hash); 221return CryptographicOperations.HashData(hashAlgorithmName, encoded);
System.Security.Cryptography.Pkcs (21)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
86return CryptographicOperations.FixedTimeEquals(
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);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
225CryptographicOperations.ZeroMemory(I);
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);
System.Security.Cryptography.Primitives (1)
System.Security.Cryptography.Primitives.cs (1)
10[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CryptographicOperations))]