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.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)
69
protector.
Protect
(plaintext, ref buffer);