1 implementation of GenRandom
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedGenRandomImpl.cs (1)
21
public void
GenRandom
(Span<byte> target) => RandomNumberGenerator.Fill(target);
4 references to GenRandom
Microsoft.AspNetCore.DataProtection (4)
Managed\AesGcmAuthenticatedEncryptor.cs (2)
241
_genRandom.
GenRandom
(keyModifier);
242
_genRandom.
GenRandom
(buffer.Slice(KEY_MODIFIER_SIZE_IN_BYTES, NONCE_SIZE_IN_BYTES));
Managed\ManagedAuthenticatedEncryptor.cs (2)
223
_genRandom.
GenRandom
(keyModifier);
230
_genRandom.
GenRandom
(iv);