18 references to GetBytes
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);
System.ServiceModel.Primitives (1)
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
44byte[] nonce = RandomNumberGenerator.GetBytes(minNonceLength);