ECDsa.TryHashData Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to compute the hash value of the specified read-only span of bytes into the provided destination by using the specified hashing algorithm.
protected:
virtual bool TryHashData(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, [Runtime::InteropServices::Out] int % bytesWritten);
protected virtual bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten);
abstract member TryHashData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * int -> bool
override this.TryHashData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * int -> bool
Protected Overridable Function TryHashData (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName, ByRef bytesWritten As Integer) As Boolean
- data
- ReadOnlySpan<Byte>
The data to be hashed.
- hashAlgorithm
- HashAlgorithmName
The algorithm to use to hash the data.
- bytesWritten
- Int32
When this method returns, the total number of bytes written into destination
. This parameter is treated as uninitialized.
false
if destination
is not long enough to receive the hash value.
The default implementation of this method is to call HashData(Byte[], Int32, Int32, HashAlgorithmName) and copy the result to destination
.
Derived types should override this method to avoid the intermediate array creation.
Tuote | Versiot |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
Tuotteen .NET palaute
.NET on avoin lähdekoodi projekti. Anna palautetta valitsemalla linkki: