21 references to GetBytes
Aspire.Dashboard (1)
src\Shared\TokenGenerator.cs (1)
28return RandomNumberGenerator.GetBytes(size);
Aspire.Hosting (1)
src\Shared\TokenGenerator.cs (1)
28return RandomNumberGenerator.GetBytes(size);
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
33: Convert.ToHexString(RandomNumberGenerator.GetBytes(4)); 64renamedVolumes[name] = $"{name}-{Convert.ToHexString(RandomNumberGenerator.GetBytes(4))}";
dotnet-user-jwts (1)
Helpers\SigningKeysHandler.cs (1)
61var newKeyMaterial = System.Security.Cryptography.RandomNumberGenerator.GetBytes(signingKeyLength);
JwtSample (1)
Startup.cs (1)
14private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(RandomNumberGenerator.GetBytes(32));
System.Security.Cryptography (15)
System\Security\Cryptography\AesImplementation.cs (2)
32IV = RandomNumberGenerator.GetBytes(BlockSize / BitsPerByte); 37Key = RandomNumberGenerator.GetBytes(KeySize / BitsPerByte);
System\Security\Cryptography\DesImplementation.cs (1)
43IV = RandomNumberGenerator.GetBytes(BlockSize / BitsPerByte);
System\Security\Cryptography\HMACMD5.cs (1)
32: this(RandomNumberGenerator.GetBytes(BlockSize))
System\Security\Cryptography\HMACSHA1.cs (1)
32: this(RandomNumberGenerator.GetBytes(BlockSize))
System\Security\Cryptography\HMACSHA256.cs (1)
31: this(RandomNumberGenerator.GetBytes(BlockSize))
System\Security\Cryptography\HMACSHA3_256.cs (1)
45: this(RandomNumberGenerator.GetBytes(BlockSize))
System\Security\Cryptography\HMACSHA3_384.cs (1)
45: this(RandomNumberGenerator.GetBytes(BlockSize))
System\Security\Cryptography\HMACSHA3_512.cs (1)
45: this(RandomNumberGenerator.GetBytes(BlockSize))
System\Security\Cryptography\HMACSHA384.cs (1)
31: this(RandomNumberGenerator.GetBytes(BlockSize))
System\Security\Cryptography\HMACSHA512.cs (1)
31: this(RandomNumberGenerator.GetBytes(BlockSize))
System\Security\Cryptography\RC2Implementation.cs (2)
49IV = RandomNumberGenerator.GetBytes(BlockSize / BitsPerByte); 54Key = RandomNumberGenerator.GetBytes(KeySize / BitsPerByte);
System\Security\Cryptography\TripleDesImplementation.cs (2)
42IV = RandomNumberGenerator.GetBytes(BlockSize / BitsPerByte); 47Key = RandomNumberGenerator.GetBytes(KeySize / BitsPerByte);