Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Security.Cryptography.SHA512CryptoServiceProvider Class Referencesealed

Public Member Functions

 SHA512CryptoServiceProvider ()
 
override void Initialize ()
 
byte[] ComputeHash (byte[] buffer)
 
byte[] ComputeHash (byte[] buffer, int offset, int count)
 
byte[] ComputeHash (Stream inputStream)
 
bool TryComputeHash (ReadOnlySpan< byte > source, Span< byte > destination, out int bytesWritten)
 
Task< byte[]> ComputeHashAsync (Stream inputStream, CancellationToken cancellationToken=default(CancellationToken))
 
void Dispose ()
 
void Clear ()
 
int TransformBlock (byte[] inputBuffer, int inputOffset, int inputCount, byte[]? outputBuffer, int outputOffset)
 
int TransformBlock (byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
 
byte[] TransformFinalBlock (byte[] inputBuffer, int inputOffset, int inputCount)
 

Static Public Member Functions

static new SHA512 Create ()
 
static new? SHA512 Create (string hashName)
 
static byte[] HashData (byte[] source)
 
static byte[] HashData (ReadOnlySpan< byte > source)
 
static int HashData (ReadOnlySpan< byte > source, Span< byte > destination)
 
static bool TryHashData (ReadOnlySpan< byte > source, Span< byte > destination, out int bytesWritten)
 

Protected Member Functions

override void HashCore (byte[] array, int ibStart, int cbSize)
 
override void HashCore (ReadOnlySpan< byte > source)
 
override byte[] HashFinal ()
 
override bool TryHashFinal (Span< byte > destination, out int bytesWritten)
 
override void Dispose (bool disposing)
 

Protected Attributes

int HashSizeValue
 
int State
 

Package Attributes

byte?[] HashValue
 

Properties

virtual int HashSize [get]
 
virtual ? byte[] Hash [get]
 
virtual int InputBlockSize [get]
 
virtual int OutputBlockSize [get]
 
virtual bool CanTransformMultipleBlocks [get]
 
virtual bool CanReuseTransform [get]
 

Private Member Functions

async Task< byte[]> ComputeHashAsyncCore (Stream inputStream, CancellationToken cancellationToken)
 
byte[] CaptureHashCodeAndReinitialize ()
 
void ValidateTransformBlock (byte[] inputBuffer, int inputOffset, int inputCount)
 

Private Attributes

readonly IncrementalHash _incrementalHash
 
bool _running
 
bool _disposed
 

Detailed Description

Definition at line 7 of file SHA512CryptoServiceProvider.cs.


The documentation for this class was generated from the following file: