Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SHA384Managed.cs
Go to the documentation of this file.
3
5
6[Obsolete("Derived cryptographic types are obsolete. Use the Create method on the base type instead.", DiagnosticId = "SYSLIB0021", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
7[EditorBrowsable(EditorBrowsableState.Never)]
8public sealed class SHA384Managed : SHA384
9{
10 private readonly HashProvider _hashProvider;
11
13 {
15 HashSizeValue = _hashProvider.HashSizeInBytes * 8;
16 }
17
18 protected sealed override void HashCore(byte[] array, int ibStart, int cbSize)
19 {
20 _hashProvider.AppendHashData(array, ibStart, cbSize);
21 }
22
23 protected sealed override void HashCore(ReadOnlySpan<byte> source)
24 {
26 }
27
28 protected sealed override byte[] HashFinal()
29 {
31 }
32
33 protected sealed override bool TryHashFinal(Span<byte> destination, out int bytesWritten)
34 {
35 return _hashProvider.TryFinalizeHashAndReset(destination, out bytesWritten);
36 }
37
38 public sealed override void Initialize()
39 {
41 }
42
43 protected sealed override void Dispose(bool disposing)
44 {
45 _hashProvider.Dispose(disposing);
46 base.Dispose(disposing);
47 }
48}
static HashProvider CreateHashProvider(string hashAlgorithmId)
void AppendHashData(byte[] data, int offset, int count)
bool TryFinalizeHashAndReset(Span< byte > destination, out int bytesWritten)
int FinalizeHashAndReset(Span< byte > destination)
override void HashCore(byte[] array, int ibStart, int cbSize)
override bool TryHashFinal(Span< byte > destination, out int bytesWritten)
override void Dispose(bool disposing)
override void HashCore(ReadOnlySpan< byte > source)