236 references to ReadOnlySpan
GenerateDocumentationAndConfigFiles (2)
ILCompiler.ReadyToRun (2)
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.Analyzers (2)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.ML.Tests (2)
Microsoft.NET.HostModel (1)
Roslyn.Diagnostics.Analyzers (2)
System.Collections.Immutable (2)
System.IO.Hashing (12)
System.Net.Primitives (2)
System.Net.Security (1)
System.Private.CoreLib (23)
System.Reflection.Metadata (1)
System.Runtime.Numerics (1)
System.Security.Cryptography (157)
src\runtime\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));
700return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
822return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
898return ImportCompositeMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
948return ImportCompositeMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (20)
171SignData(new ReadOnlySpan<byte>(data), destination.AsSpan(), new ReadOnlySpan<byte>(context));
259return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
374SignPreHash(new ReadOnlySpan<byte>(hash), destination.AsSpan(), hashAlgorithmOid, new ReadOnlySpan<byte>(context));
494new ReadOnlySpan<byte>(hash),
495new ReadOnlySpan<byte>(signature),
497new ReadOnlySpan<byte>(context));
507return SignMu(new ReadOnlySpan<byte>(externalMu));
612return VerifyMu(new ReadOnlySpan<byte>(externalMu), new ReadOnlySpan<byte>(signature));
1387return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
1438return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
1553return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
1773return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
1823return ImportMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
1873return ImportMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
1923return ImportMLDsaPrivateSeed(algorithm, new ReadOnlySpan<byte>(source));
src\runtime\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));
1317return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
1432return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
1652return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
1702return ImportSlhDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
1752return ImportSlhDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
System\Security\Cryptography\CryptographicOperations.cs (9)
132return HashData(hashAlgorithm, new ReadOnlySpan<byte>(source));
435return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source));
583return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), source);
879new ReadOnlySpan<byte>(key),
880new ReadOnlySpan<byte>(source),
881new ReadOnlySpan<byte>(hash));
967return VerifyHmac(hashAlgorithm, new ReadOnlySpan<byte>(key), source, new ReadOnlySpan<byte>(hash));
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)