18 references to GetBytes
dotnet-user-jwts (1)
Helpers\SigningKeysHandler.cs (1)
61
var newKeyMaterial = System.Security.Cryptography.RandomNumberGenerator.
GetBytes
(signingKeyLength);
JwtSample (1)
Startup.cs (1)
14
private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(RandomNumberGenerator.
GetBytes
(32));
System.Security.Cryptography (15)
System\Security\Cryptography\AesImplementation.cs (2)
32
IV = RandomNumberGenerator.
GetBytes
(BlockSize / BitsPerByte);
37
Key = RandomNumberGenerator.
GetBytes
(KeySize / BitsPerByte);
System\Security\Cryptography\DesImplementation.cs (1)
43
IV = 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)
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);