20 references to Random
Microsoft.AspNetCore.DataProtection (8)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorConfiguration.cs (2)
35
return internalConfiguration.CreateDescriptorFromSecret(Secret.
Random
(KDK_SIZE_IN_BYTES));
47
using var secret = Secret.
Random
(512 / 8);
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorConfiguration.cs (2)
80
return internalConfiguration.CreateDescriptorFromSecret(Secret.
Random
(KDK_SIZE_IN_BYTES));
97
using var secret = Secret.
Random
(512 / 8);
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorConfiguration.cs (2)
56
return internalConfiguration.CreateDescriptorFromSecret(Secret.
Random
(KDK_SIZE_IN_BYTES));
73
using var secret = Secret.
Random
(512 / 8);
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorConfiguration.cs (2)
59
return internalConfiguration.CreateDescriptorFromSecret(Secret.
Random
(KDK_SIZE_IN_BYTES));
76
using var secret = Secret.
Random
(512 / 8);
Microsoft.AspNetCore.DataProtection.Tests (12)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (4)
36
var masterKey = Secret.
Random
(512 / 8);
63
var masterKey = Secret.
Random
(512 / 8);
89
var masterKey = Secret.
Random
(512 / 8);
126
var masterKey = Secret.
Random
(512 / 8);
SecretTests.cs (8)
160
var secret = Secret.
Random
(0);
170
var secret = Secret.
Random
(32);
185
var secret = Secret.
Random
(31);
201
var secret = Secret.
Random
(16);
214
var secret = Secret.
Random
(16);
226
var secret = Secret.
Random
(16);
238
var secret = Secret.
Random
(16);
255
var secret = Secret.
Random
(16);