13 references to Secret
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ConfigurationModel\SecretExtensions.cs (1)
55
return new
Secret
(unprotectedSecret);
Secret.cs (1)
182
return new
Secret
(ManagedGenRandomImpl.Instance.GenRandom(numBytes));
Microsoft.AspNetCore.DataProtection.Tests (11)
Cng\CbcAuthenticatedEncryptorTests.cs (3)
19
Secret kdk = new
Secret
(new byte[512 / 8]);
40
Secret kdk = new
Secret
(new byte[512 / 8]);
87
Secret kdk = new
Secret
(Encoding.UTF8.GetBytes("master key"));
Cng\GcmAuthenticatedEncryptorTests.cs (3)
19
Secret kdk = new
Secret
(new byte[512 / 8]);
37
Secret kdk = new
Secret
(new byte[512 / 8]);
81
Secret kdk = new
Secret
(Encoding.UTF8.GetBytes("master key"));
Managed\ManagedAuthenticatedEncryptorTests.cs (3)
15
Secret kdk = new
Secret
(new byte[512 / 8]);
35
Secret kdk = new
Secret
(new byte[512 / 8]);
81
Secret kdk = new
Secret
(Encoding.UTF8.GetBytes("master key"));
SecretTests.cs (2)
54
var secret = new
Secret
(input);
78
var secret = new
Secret
(new byte[0]);