1 implementation of GenRandom
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedGenRandomImpl.cs (1)
19
public byte[]
GenRandom
(int numBytes)
4 references to GenRandom
Microsoft.AspNetCore.DataProtection (4)
Managed\AesGcmAuthenticatedEncryptor.cs (2)
170
var keyModifier = _genRandom.
GenRandom
(KEY_MODIFIER_SIZE_IN_BYTES);
171
var nonceBytes = _genRandom.
GenRandom
(NONCE_SIZE_IN_BYTES);
Managed\ManagedAuthenticatedEncryptor.cs (2)
292
var keyModifier = _genRandom.
GenRandom
(KEY_MODIFIER_SIZE_IN_BYTES);
293
var iv = _genRandom.
GenRandom
(_symmetricAlgorithmBlockSizeInBytes);