18 protected sealed override void HashCore(
byte[]
array,
int ibStart,
int cbSize)
43 protected sealed override void Dispose(
bool disposing)
46 base.Dispose(disposing);
60 [RequiresUnreferencedCode(
"The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
77 byte[]
array =
GC.AllocateUninitializedArray<
byte>(20);
static int HashData(string hashAlgorithmId, ReadOnlySpan< byte > source, Span< byte > destination)
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)
static string Argument_DestinationTooShort
static ? object CreateFromName(string name, params object?[]? args)
override void Initialize()
override void HashCore(ReadOnlySpan< byte > source)
override byte[] HashFinal()
override bool TryHashFinal(Span< byte > destination, out int bytesWritten)
override void Dispose(bool disposing)
override void HashCore(byte[] array, int ibStart, int cbSize)
readonly HashProvider _hashProvider
static new? SHA1 Create(string hashName)
static int HashData(ReadOnlySpan< byte > source, Span< byte > destination)
static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan< byte > source)
static bool TryHashData(ReadOnlySpan< byte > source, Span< byte > destination, out int bytesWritten)