2 implementations of IBCryptGenRandom
Microsoft.AspNetCore.DataProtection (1)
Cng\BCryptGenRandomImpl.cs (1)
8
internal sealed unsafe class BCryptGenRandomImpl :
IBCryptGenRandom
Microsoft.AspNetCore.DataProtection.Tests (1)
SequentialGenRandom.cs (1)
10
internal unsafe class SequentialGenRandom :
IBCryptGenRandom
, IManagedGenRandom
4 references to IBCryptGenRandom
Microsoft.AspNetCore.DataProtection (4)
Cng\CbcAuthenticatedEncryptor.cs (2)
31
private readonly
IBCryptGenRandom
_genRandom;
40
public CbcAuthenticatedEncryptor(Secret keyDerivationKey, BCryptAlgorithmHandle symmetricAlgorithmHandle, uint symmetricAlgorithmKeySizeInBytes, BCryptAlgorithmHandle hmacAlgorithmHandle,
IBCryptGenRandom
? genRandom = null)
Cng\CngGcmAuthenticatedEncryptor.cs (2)
35
private readonly
IBCryptGenRandom
_genRandom;
40
public CngGcmAuthenticatedEncryptor(Secret keyDerivationKey, BCryptAlgorithmHandle symmetricAlgorithmHandle, uint symmetricAlgorithmKeySizeInBytes,
IBCryptGenRandom
? genRandom = null)