269 references to ReadOnlySpan
GenerateDocumentationAndConfigFiles (2)
Metrics (2)
Metrics.Legacy (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (15)
Microsoft.AspNetCore.Shared.Tests (12)
Microsoft.AspNetCore.WebUtilities.Tests (3)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.Analyzers (2)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.ML.Tests (2)
Roslyn.Diagnostics.Analyzers (2)
System.Collections.Immutable (2)
System.IO.Hashing (9)
System.Net.Primitives (2)
System.Net.Security (3)
System.Private.CoreLib (25)
System.Reflection.Metadata (1)
System.Runtime.Numerics (1)
System.Security.Cryptography (150)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (13)
149int bytesWritten = SignDataCore(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(context), signature);
162new ReadOnlySpan<byte>(data),
163new ReadOnlySpan<byte>(context),
292return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
484return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
627return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
695return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
817return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
894return ImportCompositeMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
944return ImportCompositeMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (20)
172SignData(new ReadOnlySpan<byte>(data), destination.AsSpan(), new ReadOnlySpan<byte>(context));
260return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
373SignPreHash(new ReadOnlySpan<byte>(hash), destination.AsSpan(), hashAlgorithmOid, new ReadOnlySpan<byte>(context));
491new ReadOnlySpan<byte>(hash),
492new ReadOnlySpan<byte>(signature),
494new ReadOnlySpan<byte>(context));
503return SignMu(new ReadOnlySpan<byte>(externalMu));
604return VerifyMu(new ReadOnlySpan<byte>(externalMu), new ReadOnlySpan<byte>(signature));
1383return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
1434return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
1549return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
1769return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
1819return ImportMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
1869return ImportMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
1919return ImportMLDsaPrivateSeed(algorithm, new ReadOnlySpan<byte>(source));
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (16)
186SignData(new ReadOnlySpan<byte>(data), destination.AsSpan(), new ReadOnlySpan<byte>(context));
272return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
379SignPreHash(new ReadOnlySpan<byte>(hash), destination.AsSpan(), hashAlgorithmOid, new ReadOnlySpan<byte>(context));
487new ReadOnlySpan<byte>(hash),
488new ReadOnlySpan<byte>(signature),
490new ReadOnlySpan<byte>(context));
1250return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
1318return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
1433return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
1653return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
1703return ImportSlhDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
1753return ImportSlhDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SymmetricAlgorithm.cs (10)
498return DecryptEcb(new ReadOnlySpan<byte>(ciphertext), paddingMode);
616return EncryptEcb(new ReadOnlySpan<byte>(plaintext), paddingMode);
739return DecryptCbc(new ReadOnlySpan<byte>(ciphertext), new ReadOnlySpan<byte>(iv), paddingMode);
894return EncryptCbc(new ReadOnlySpan<byte>(plaintext), new ReadOnlySpan<byte>(iv), paddingMode);
1067new ReadOnlySpan<byte>(ciphertext),
1068new ReadOnlySpan<byte>(iv),
1308new ReadOnlySpan<byte>(plaintext),
1309new ReadOnlySpan<byte>(iv),
System.Security.Cryptography.Cose (4)
System.Security.Cryptography.Pkcs (6)
System.Text.RegularExpressions (4)
Test.Utilities (2)
Text.Analyzers (2)