1 implementation of Protect
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedSpanDataProtector.cs (1)
25public void Protect<TWriter>(ReadOnlySpan<byte> plaintext, ref TWriter destination) where TWriter : IBufferWriter<byte>
6 references to Protect
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
252_perfCryptoSystem.Protect(tokenBytes, ref protectBuffer);
Microsoft.AspNetCore.Authentication (1)
SecureDataFormat.cs (1)
62protector.Protect(userData, ref writer);
Microsoft.AspNetCore.DataProtection.Abstractions (1)
DataProtectionCommonExtensions.cs (1)
229protector.Protect(plaintextBuffer.AsSpan(0, plaintextBytesWritten), ref destination);
Microsoft.AspNetCore.DataProtection.Extensions (1)
TimeLimitedDataProtector.cs (1)
143protector.Protect(plaintextWithHeader.WrittenSpan, ref destination);
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (2)
Benchmarks\SpanDataProtectorComparison.cs (2)
98_spanDataProtector.Protect(_plaintext, ref protectBuffer); 120_spanDataProtector.Protect(_plaintext, ref protectBuffer);