140 references to CryptographicOperations
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 (106)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (2)
94return CryptographicOperations.FixedTimeEquals( 281CryptographicOperations.ZeroMemory(destination);
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)
150CryptographicOperations.ZeroMemory(decryptedMemory.Span); 243CryptographicOperations.ZeroMemory(encryptedSpan);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (12)
218CryptographicOperations.ZeroMemory(buf); 407CryptographicOperations.ZeroMemory(pwdTmpBytes); 560CryptographicOperations.ZeroMemory(key); 802CryptographicOperations.ZeroMemory(tmpPassword); 803CryptographicOperations.ZeroMemory(tmpSalt); 856CryptographicOperations.ZeroMemory(dk); 914CryptographicOperations.ZeroMemory(key); 915CryptographicOperations.ZeroMemory(iv); 964CryptographicOperations.ZeroMemory(tmpEndSpan); 972CryptographicOperations.ZeroMemory(tmpKey); 973CryptographicOperations.ZeroMemory(tmpIv); 1020CryptographicOperations.ZeroMemory(t);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
226CryptographicOperations.ZeroMemory(I);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
104CryptographicOperations.ZeroMemory(destination); 153CryptographicOperations.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);
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\HKDF.cs (1)
69int written = CryptographicOperations.HmacData(hashAlgorithmName, salt, ikm, 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\UnixPkcs12Reader.cs (1)
138CryptographicOperations.ZeroMemory(tmp);
System\Security\Cryptography\X509Certificates\X509Certificate.cs (2)
351return CryptographicOperations.HashData(hashAlgorithm, certPal.RawData); 361return CryptographicOperations.TryHashData(hashAlgorithm, Pal.RawData, destination, out bytesWritten);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
210int written = CryptographicOperations.HashData(hashAlgorithmName, key.EncodedKeyValue.RawData, hash); 229int hashWritten = CryptographicOperations.HashData(hashAlgorithmName, spkiBuffer.Slice(0, spkiWritten), hash);
System.Security.Cryptography.Pkcs (22)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (2)
94return CryptographicOperations.FixedTimeEquals( 281CryptographicOperations.ZeroMemory(destination);
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)
150CryptographicOperations.ZeroMemory(decryptedMemory.Span); 243CryptographicOperations.ZeroMemory(encryptedSpan);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (12)
218CryptographicOperations.ZeroMemory(buf); 407CryptographicOperations.ZeroMemory(pwdTmpBytes); 560CryptographicOperations.ZeroMemory(key); 802CryptographicOperations.ZeroMemory(tmpPassword); 803CryptographicOperations.ZeroMemory(tmpSalt); 856CryptographicOperations.ZeroMemory(dk); 914CryptographicOperations.ZeroMemory(key); 915CryptographicOperations.ZeroMemory(iv); 964CryptographicOperations.ZeroMemory(tmpEndSpan); 972CryptographicOperations.ZeroMemory(tmpKey); 973CryptographicOperations.ZeroMemory(tmpIv); 1020CryptographicOperations.ZeroMemory(t);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
226CryptographicOperations.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))]