Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
KeyedHashAlgorithm.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
using
Internal.Cryptography
;
3
4
namespace
System.Security.Cryptography
;
5
6
public
abstract
class
KeyedHashAlgorithm
:
HashAlgorithm
7
{
8
protected
byte
[]
KeyValue
;
9
10
public
virtual
byte
[]
Key
11
{
12
get
13
{
14
return
KeyValue
.CloneByteArray();
15
}
16
set
17
{
18
KeyValue
=
value
.CloneByteArray();
19
}
20
}
21
22
[Obsolete(
"The default implementation of this cryptography algorithm is not supported."
, DiagnosticId =
"SYSLIB0007"
, UrlFormat =
"https://aka.ms/dotnet-warnings/{0}"
)]
23
public
new
static
KeyedHashAlgorithm
Create
()
24
{
25
throw
new
PlatformNotSupportedException
(
System
.
SR
.
Cryptography_DefaultAlgorithm_NotSupported
);
26
}
27
28
[RequiresUnreferencedCode(
"The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead."
)]
29
public
new
static
KeyedHashAlgorithm
?
Create
(
string
algName)
30
{
31
return
(
KeyedHashAlgorithm
)
CryptoConfigForwarder
.
CreateFromName
(algName);
32
}
33
34
protected
override
void
Dispose
(
bool
disposing)
35
{
36
if
(disposing)
37
{
38
if
(
KeyValue
!=
null
)
39
{
40
Array
.
Clear
(
KeyValue
);
41
}
42
KeyValue
=
null
;
43
}
44
base.Dispose(disposing);
45
}
46
}
System.Array.Clear
static unsafe void Clear(Array array)
Definition
Array.cs:755
System.Array
Definition
Array.cs:16
System.PlatformNotSupportedException
Definition
PlatformNotSupportedException.cs:9
System.SR.Cryptography_DefaultAlgorithm_NotSupported
static string Cryptography_DefaultAlgorithm_NotSupported
Definition
SR.cs:34
System.SR
Definition
SR.cs:7
System.Security.Cryptography.CryptoConfigForwarder.CreateFromName
static object CreateFromName(string name)
Definition
CryptoConfigForwarder.cs:23
System.Security.Cryptography.CryptoConfigForwarder
Definition
CryptoConfigForwarder.cs:7
System.Security.Cryptography.HashAlgorithm
Definition
HashAlgorithm.cs:10
System.Security.Cryptography.KeyedHashAlgorithm.Create
static new? KeyedHashAlgorithm Create(string algName)
Definition
KeyedHashAlgorithm.cs:29
System.Security.Cryptography.KeyedHashAlgorithm.Key
virtual byte[] Key
Definition
KeyedHashAlgorithm.cs:11
System.Security.Cryptography.KeyedHashAlgorithm.Create
static new KeyedHashAlgorithm Create()
Definition
KeyedHashAlgorithm.cs:23
System.Security.Cryptography.KeyedHashAlgorithm.Dispose
override void Dispose(bool disposing)
Definition
KeyedHashAlgorithm.cs:34
System.Security.Cryptography.KeyedHashAlgorithm.KeyValue
byte[] KeyValue
Definition
KeyedHashAlgorithm.cs:8
System.Security.Cryptography.KeyedHashAlgorithm
Definition
KeyedHashAlgorithm.cs:7
Internal.Cryptography
Definition
AesBCryptModes.cs:5
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Security.Cryptography
Definition
CryptoPool.cs:3
System.ExceptionArgument.value
@ value
System
Definition
BlockingCollection.cs:8
source
System.Security.Cryptography.Primitives
System.Security.Cryptography
KeyedHashAlgorithm.cs
Generated by
1.10.0