-
Notifications
You must be signed in to change notification settings - Fork 3
Digests
Bruce Wayne edited this page Jul 21, 2021
·
9 revisions
Hash hasher = DigestUtils.Create(DigestType type);
Supported:
public enum DigestType
{
Sm3,
Md5,
Sha1,
Sha256,
Sha384,
Sha512
}
Property | Description |
---|---|
Name | Name of the digest |
Length | Output length of the digest |
BlockSize | Block size of the digest |
Method | Description |
---|---|
void UpdateFinal(ReadOnlySpan<byte>, Span<byte>) |
Update final data, get the hash value and reset the status |
void Update(ReadOnlySpan<byte>) |
Update the data |
void GetHash(Span<byte>) |
Get the hash value |
void Update(Stream) |
Update the data |
void UpdateFinal(Stream, Span<byte>) |
Update final data, get the hash value and reset the status |
Task UpdateAsync(Stream, CancellationToken); |
Update the data |
Task UpdateFinalAsync(Stream, Memory<byte>, CancellationToken); |
Update final data, get the hash value and reset the status |
void Reset() |
Reset the digest status |
void Dispose() |
Releases the resources |