Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
KeyedHashAlgorithm.cs
Go to the documentation of this file.
3
5
6public 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}")]
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 {
32 }
33
34 protected override void Dispose(bool disposing)
35 {
36 if (disposing)
37 {
38 if (KeyValue != null)
39 {
41 }
42 KeyValue = null;
43 }
44 base.Dispose(disposing);
45 }
46}
static unsafe void Clear(Array array)
Definition Array.cs:755
static string Cryptography_DefaultAlgorithm_NotSupported
Definition SR.cs:34
Definition SR.cs:7
static new? KeyedHashAlgorithm Create(string algName)