2 implementations of IManagedGenRandom
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedGenRandomImpl.cs (1)
9internal sealed unsafe class ManagedGenRandomImpl : IManagedGenRandom
Microsoft.AspNetCore.DataProtection.Tests (1)
SequentialGenRandom.cs (1)
10internal unsafe class SequentialGenRandom : IBCryptGenRandom, IManagedGenRandom
4 references to IManagedGenRandom
Microsoft.AspNetCore.DataProtection (4)
Managed\AesGcmAuthenticatedEncryptor.cs (2)
43private readonly IManagedGenRandom _genRandom; 45public AesGcmAuthenticatedEncryptor(ISecret keyDerivationKey, int derivedKeySizeInBytes, IManagedGenRandom? genRandom = null)
Managed\ManagedAuthenticatedEncryptor.cs (2)
37private readonly IManagedGenRandom _genRandom; 46public ManagedAuthenticatedEncryptor(Secret keyDerivationKey, Func<SymmetricAlgorithm> symmetricAlgorithmFactory, int symmetricAlgorithmKeySizeInBytes, Func<KeyedHashAlgorithm> validationAlgorithmFactory, IManagedGenRandom? genRandom = null)