29 references to GetBytes
Aspire.Dashboard (1)
src\Shared\TokenGenerator.cs (1)
28
return RandomNumberGenerator.
GetBytes
(size);
Aspire.Hosting (1)
src\Shared\TokenGenerator.cs (1)
28
return RandomNumberGenerator.
GetBytes
(size);
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
34
: Convert.ToHexString(RandomNumberGenerator.
GetBytes
(4));
65
renamedVolumes[name] = $"{name}-{Convert.ToHexString(RandomNumberGenerator.
GetBytes
(4))}";
dotnet-user-jwts (1)
Helpers\SigningKeysHandler.cs (1)
61
var newKeyMaterial = System.Security.Cryptography.RandomNumberGenerator.
GetBytes
(signingKeyLength);
Microsoft.AspNetCore.Identity (2)
PasskeyHandler.cs (2)
45
var challenge = RandomNumberGenerator.
GetBytes
(_options.ChallengeSize);
116
var challenge = RandomNumberGenerator.
GetBytes
(_options.ChallengeSize);
System.Security.Cryptography (21)
System\Security\Cryptography\AesImplementation.cs (1)
67
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (2)
112
byte[] key = RandomNumberGenerator.
GetBytes
(AsymmetricAlgorithmHelpers.BitsToBytes(_outer.BaseKeySize));
118
byte[] iv = RandomNumberGenerator.
GetBytes
(AsymmetricAlgorithmHelpers.BitsToBytes(_outer.BlockSize));
System\Security\Cryptography\DESCryptoServiceProvider.Windows.cs (2)
35
IVValue = RandomNumberGenerator.
GetBytes
(8);
82
rgbIV = RandomNumberGenerator.
GetBytes
(8);
System\Security\Cryptography\DesImplementation.cs (1)
43
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
System\Security\Cryptography\HMACMD5.cs (1)
42
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA1.cs (1)
39
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA256.cs (1)
38
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA3_256.cs (1)
52
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA3_384.cs (1)
52
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA3_512.cs (1)
52
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA384.cs (1)
38
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\HMACSHA512.cs (1)
38
: this(RandomNumberGenerator.
GetBytes
(BlockSize))
System\Security\Cryptography\RC2CryptoServiceProvider.Windows.cs (3)
71
KeyValue = RandomNumberGenerator.
GetBytes
(KeySizeValue / 8);
77
IVValue = RandomNumberGenerator.
GetBytes
(8);
93
rgbIV = RandomNumberGenerator.
GetBytes
(8);
System\Security\Cryptography\RC2Implementation.cs (2)
49
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
54
Key = RandomNumberGenerator.
GetBytes
(KeySize / BitsPerByte);
System\Security\Cryptography\TripleDesImplementation.cs (2)
42
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
47
Key = RandomNumberGenerator.
GetBytes
(KeySize / BitsPerByte);
System.ServiceModel.Primitives (1)
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
44
byte[] nonce = RandomNumberGenerator.
GetBytes
(minNonceLength);