1 implementation of GenRandom
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedGenRandomImpl.cs (1)
21public 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);