1 implementation of Protect
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedSpanDataProtector.cs (1)
25
public void
Protect
<TWriter>(ReadOnlySpan<byte> plaintext, ref TWriter destination) where TWriter : IBufferWriter<byte>
3 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);