2 implementations of Protect
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenSerializerTest.cs (1)
220public void Protect<TWriter>(ReadOnlySpan<byte> plaintext, ref TWriter destination) where TWriter : IBufferWriter<byte>, allows ref struct
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedSpanDataProtector.cs (1)
25public void Protect<TWriter>(ReadOnlySpan<byte> plaintext, ref TWriter destination) where TWriter : IBufferWriter<byte>
4 references to Protect
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
252_perfCryptoSystem.Protect(tokenBytes, ref protectBuffer);
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (2)
Benchmarks\SpanDataProtectorComparison.cs (2)
98_spanDataProtector.Protect(_plaintext, ref protectBuffer); 120_spanDataProtector.Protect(_plaintext, ref protectBuffer);
Microsoft.AspNetCore.DataProtection.Tests (1)
Internal\RoundtripEncryptionHelpers.cs (1)
69protector.Protect(plaintext, ref buffer);