269 references to ReadOnlySpan
GenerateDocumentationAndConfigFiles (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Metrics (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Metrics.Legacy (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (15)
HttpUtilitiesTest.cs (2)
36var block = new ReadOnlySpan<byte>(Encoding.ASCII.GetBytes(input)); 66var block = new ReadOnlySpan<byte>(Encoding.ASCII.GetBytes(input));
KnownStringsTests.cs (1)
78var data = new ReadOnlySpan<byte>(methodData);
src\Shared\test\Shared.Tests\runtime\Http2\HuffmanDecodingTests.cs (5)
250Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 271Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 288Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 299int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination); 333Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (7)
28ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 43ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 59ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 74ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 92ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 107ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>( 124ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[]
Microsoft.AspNetCore.Shared.Tests (12)
runtime\Http2\HuffmanDecodingTests.cs (5)
250Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 271Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 288Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 299int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination); 333Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
runtime\Http3\VariableLengthIntegerHelperTests.cs (7)
28ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 43ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 59ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 74ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 92ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 107ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>( 124ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[]
Microsoft.AspNetCore.WebUtilities.Tests (3)
HttpResponseStreamWriterTest.cs (3)
266var span = new ReadOnlySpan<char>(array); 300var span = new ReadOnlySpan<char>(array); 870httpResponseStreamWriter.Write(new ReadOnlySpan<char>(new char[] { 'a', 'b' }));
Microsoft.CodeAnalysis (2)
Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.CodeAnalysis.Analyzers (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Microsoft.ML.Tests (2)
Scenarios\Api\TestApi.cs (2)
281var span = new ReadOnlySpan<char>(parts[0].ToCharArray()); 285span = new ReadOnlySpan<char>(parts[j + 1].ToCharArray());
Roslyn.Diagnostics.Analyzers (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableArray_1.cs (2)
99public ReadOnlySpan<T> AsSpan() => new ReadOnlySpan<T>(array); 1025return self.RemoveRange(new ReadOnlySpan<T>(items), equalityComparer);
System.IO.Hashing (9)
System\IO\Hashing\Crc32.cs (1)
108return Hash(new ReadOnlySpan<byte>(source));
System\IO\Hashing\Crc64.cs (1)
106return Hash(new ReadOnlySpan<byte>(source));
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
89Append(new ReadOnlySpan<byte>(source));
System\IO\Hashing\XxHash128.cs (1)
66return Hash(new ReadOnlySpan<byte>(source), seed);
System\IO\Hashing\XxHash3.cs (1)
65return Hash(new ReadOnlySpan<byte>(source), seed);
System\IO\Hashing\XxHash32.cs (2)
166return Hash(new ReadOnlySpan<byte>(source)); 182return Hash(new ReadOnlySpan<byte>(source), seed);
System\IO\Hashing\XxHash64.cs (2)
166return Hash(new ReadOnlySpan<byte>(source)); 182return Hash(new ReadOnlySpan<byte>(source), seed);
System.Net.Primitives (2)
System\Net\IPAddress.cs (2)
136this(new ReadOnlySpan<byte>(address ?? ThrowAddressNullException()), scopeid) 178this(new ReadOnlySpan<byte>(address ?? ThrowAddressNullException()))
System.Net.Security (3)
System\Net\Security\SslStream.IO.cs (3)
622SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.net_ssl_io_cert_custom_validation, null))); 627SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null))); 632SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null)));
System.Private.CoreLib (25)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (4)
2317return ToBase64String(new ReadOnlySpan<byte>(inArray), Base64FormattingOptions.None); 2324return ToBase64String(new ReadOnlySpan<byte>(inArray), options); 3122return ToHexString(new ReadOnlySpan<byte>(inArray)); 3217return ToHexStringLower(new ReadOnlySpan<byte>(inArray));
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
240return new ReadOnlySpan<string>(names).ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\SortKey.cs (2)
59return new ReadOnlySpan<byte>(key1Data).SequenceCompareTo(key2Data); 63value is SortKey other && new ReadOnlySpan<byte>(_keyData).SequenceEqual(other._keyData);
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
60this(new ReadOnlySpan<byte>(b ?? throw new ArgumentNullException(nameof(b))))
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
739WriteAllBytes(path, new ReadOnlySpan<byte>(bytes)); 788AppendAllBytes(path, new ReadOnlySpan<byte>(bytes));
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
3924new ReadOnlySpan<T>(source).CopyTo(destination);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
310return GetItems(new ReadOnlySpan<T>(choices), length);
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
205public static implicit operator ReadOnlySpan<T>(T[]? array) => new ReadOnlySpan<T>(array);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
47ReadOnlySpan<byte> publicKeyBlob = new ReadOnlySpan<byte>(publicKey);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (1)
199return new ReadOnlySpan<T>(_managedValues!);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
143return new ReadOnlySpan<string>(ret).ToArray();
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (4)
726return JoinCore(new ReadOnlySpan<char>(in separator), new ReadOnlySpan<string?>(value)); 751return JoinCore(separator.AsSpan(), new ReadOnlySpan<string?>(value)); 794return JoinCore(separator.AsSpan(), new ReadOnlySpan<string?>(valuesArray)); 932return JoinCore(separator, new ReadOnlySpan<string?>(valuesArray));
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1740GetType() != typeof(UnicodeEncoding) ? new ReadOnlySpan<byte>(GetPreamble()) : // in case a derived UnicodeEncoding overrode GetPreamble
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1132GetType() != typeof(UTF32Encoding) ? new ReadOnlySpan<byte>(GetPreamble()) : // in case a derived UTF32Encoding overrode GetPreamble
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
873GetType() != typeof(UTF8Encoding) ? new ReadOnlySpan<byte>(GetPreamble()) : // in case a derived UTF8Encoding overrode GetPreamble
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
294return WaitMultiple(new ReadOnlySpan<WaitHandle>(waitHandles), waitAll, millisecondsTimeout);
src\System\RuntimeType.CoreCLR.cs (1)
2646return new ReadOnlySpan<Type>(candidates).ToArray();
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
215return GetOrAddBlob(new ReadOnlySpan<byte>(value));
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
272this(new ReadOnlySpan<byte>(value ?? throw new ArgumentNullException(nameof(value))))
System.Security.Cryptography (150)
src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (1)
107: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key))), tagSizeInBytes)
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\MLKem.cs (6)
388return ImportPrivateSeed(algorithm, new ReadOnlySpan<byte>(source)); 445return ImportDecapsulationKey(algorithm, new ReadOnlySpan<byte>(source)); 503return ImportEncapsulationKey(algorithm, new ReadOnlySpan<byte>(source)); 1231return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source)); 1283return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source)); 1637return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
34new ReadOnlySpan<byte>(passwordBytes),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
122new ReadOnlySpan<byte>(passwordBytes), 185Decrypt(new ReadOnlySpan<byte>(passwordBytes));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
27: this(new ReadOnlySpan<byte>(keyId))
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
783return VerifyHash(new ReadOnlySpan<byte>(hash), new ReadOnlySpan<byte>(signature), hashAlgorithm, padding);
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\Aes.cs (2)
91return EncryptKeyWrapPadded(new ReadOnlySpan<byte>(plaintext)); 167return DecryptKeyWrapPadded(new ReadOnlySpan<byte>(ciphertext));
System\Security\Cryptography\AesGcm.cs (1)
26: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key))))
System\Security\Cryptography\AesImplementation.cs (1)
251return CreateTransform(new ReadOnlySpan<byte>(rgbKey), rgbIV, encrypting);
System\Security\Cryptography\CryptographicOperations.cs (4)
94return HashData(hashAlgorithm, new ReadOnlySpan<byte>(source)); 397return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 545return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\ECDsa.cs (1)
1020new ReadOnlySpan<byte>(hash).CopyTo(destination);
System\Security\Cryptography\HashAlgorithm.cs (1)
270new ReadOnlySpan<byte>(final).CopyTo(destination);
System\Security\Cryptography\HMACMD5.cs (3)
94return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 238return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA1.cs (3)
99return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 237return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA256.cs (3)
91return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 229return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA3_256.cs (3)
127return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 269return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA3_384.cs (3)
127return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 269return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA3_512.cs (3)
127return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 269return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA384.cs (3)
108return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 246return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA512.cs (3)
105return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 243return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\IncrementalHash.cs (1)
63AppendData(new ReadOnlySpan<byte>(data));
System\Security\Cryptography\Kmac128.cs (2)
227return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\Kmac256.cs (2)
227return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\KmacXof128.cs (2)
227return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\KmacXof256.cs (2)
227return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\MD5.cs (1)
57return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\Rfc2898DeriveBytes.cs (2)
100new ReadOnlySpan<byte>(password ?? throw new ArgumentNullException(nameof(password))), 101new ReadOnlySpan<byte>(salt ?? throw new ArgumentNullException(nameof(salt))),
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (3)
50return Pbkdf2(new ReadOnlySpan<byte>(password), new ReadOnlySpan<byte>(salt), iterations, hashAlgorithm, outputLength); 169return Pbkdf2(password.AsSpan(), new ReadOnlySpan<byte>(salt), iterations, hashAlgorithm, outputLength);
System\Security\Cryptography\RSA.cs (4)
108new ReadOnlySpan<byte>(result).CopyTo(destination); 123new ReadOnlySpan<byte>(result).CopyTo(destination); 332new ReadOnlySpan<byte>(result).CopyTo(destination); 347new ReadOnlySpan<byte>(result).CopyTo(destination);
System\Security\Cryptography\SHA1.cs (1)
55return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA256.cs (1)
54return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA3_256.cs (1)
77return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA3_384.cs (1)
77return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA3_512.cs (1)
77return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA384.cs (1)
54return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA512.cs (1)
54return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\Shake128.cs (2)
65AppendData(new ReadOnlySpan<byte>(data)); 290return HashData(new ReadOnlySpan<byte>(source), outputLength);
System\Security\Cryptography\Shake256.cs (2)
65AppendData(new ReadOnlySpan<byte>(data)); 290return HashData(new ReadOnlySpan<byte>(source), outputLength);
System\Security\Cryptography\SP800108HmacCounterKdfImplementationOpenSsl.cs (2)
60DeriveBytes(new ReadOnlySpan<byte>(label), new ReadOnlySpan<byte>(context), destination);
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\X509Certificates\CertificateRequest.cs (2)
770return Create(issuerCertificate, notBefore, notAfter, new ReadOnlySpan<byte>(serialNumber)); 970return Create(issuerName, generator, notBefore, notAfter, new ReadOnlySpan<byte>(serialNumber));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (2)
106AddEntry(new ReadOnlySpan<byte>(serialNumber), revocationTime, reason); 229return RemoveEntry(new ReadOnlySpan<byte>(serialNumber));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
48new ReadOnlySpan<byte>(currentCrl),
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
161rsa.ImportRSAPublicKey(new ReadOnlySpan<byte>(encodedData), out _);
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (4)
223return CreateFromSubjectKeyIdentifier(new ReadOnlySpan<byte>(subjectKeyIdentifier)); 280return CreateFromIssuerNameAndSerialNumber(issuerName, new ReadOnlySpan<byte>(serialNumber)); 372new ReadOnlySpan<byte>(keyIdentifier), 374new ReadOnlySpan<byte>(serialNumber));
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
62: this(new ReadOnlySpan<byte>(data))
System\Security\Cryptography\X509Certificates\X509CertificateLoader.netcore.cs (1)
15return LoadCertificate(new ReadOnlySpan<byte>(data));
System.Security.Cryptography.Cose (4)
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
562return VerifyDetached(key, new ReadOnlySpan<byte>(detachedContent), new ReadOnlySpan<byte>(associatedData));
System\Security\Cryptography\Cose\CoseSignature.cs (2)
278return VerifyDetached(key, new ReadOnlySpan<byte>(detachedContent), new ReadOnlySpan<byte>(associatedData));
System.Security.Cryptography.Pkcs (6)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
34new ReadOnlySpan<byte>(passwordBytes),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
122new ReadOnlySpan<byte>(passwordBytes), 185Decrypt(new ReadOnlySpan<byte>(passwordBytes));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
27: this(new ReadOnlySpan<byte>(keyId))
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (1)
127Decode(new ReadOnlySpan<byte>(encodedMessage));
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
160Decode(new ReadOnlySpan<byte>(encodedMessage));
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Symbolic\BitVector.cs (4)
191MemoryExtensions.SequenceEqual(new ReadOnlySpan<ulong>(_blocks), new ReadOnlySpan<ulong>(other._blocks)); 195MemoryExtensions.SequenceCompareTo(new ReadOnlySpan<ulong>(_blocks), new ReadOnlySpan<ulong>(other._blocks));
Test.Utilities (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);
Text.Analyzers (2)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
96Append(new ReadOnlySpan<byte>(source));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
70return Hash(new ReadOnlySpan<byte>(source), seed);