DSA.TryHashData 메서드

정의

제공된 버퍼에 제공된 데이터의 해시 값을 컴퓨팅하려고 시도합니다.

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>

해시할 데이터입니다.

destination
Span<Byte>

해시 값을 받을 바이트 범위입니다.

hashAlgorithm
HashAlgorithmName

사용할 해시 알고리즘의 이름입니다.

bytesWritten
Int32

이 메서드가 반환될 때 destination에 쓴 바이트 수를 나타내는 값을 포함합니다.

반환

destination이 결과를 받는 데 충분히 크면 true이고, 그렇지 않으면 false입니다.

설명

이 메서드의 기본 구현은 를 호출 HashData(Byte[], Int32, Int32, HashAlgorithmName) 하고 결과를 에 복사하는 것입니다 destination.

파생 형식은 중간 배열을 만들지 않도록 이 메서드를 재정의해야 합니다.

적용 대상