ECDsa.TrySignHash 메서드

정의

오버로드

Name Description
TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, Int32)

현재 키를 사용하여 제공된 대상으로 데이터 해시를 나타내는 지정된 읽기 전용 바이트 범위에 대한 ECDSA 디지털 서명을 계산하려고 시도합니다.

TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat, Int32)

지정된 해시 값에 대한 ECDSA 서명을 지정된 형식으로 제공된 버퍼에 만들려고 시도합니다.

TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

현재 키를 사용하여 제공된 대상으로 데이터 해시를 나타내는 지정된 읽기 전용 바이트 범위에 대한 ECDSA 디지털 서명을 계산하려고 시도합니다.

public:
 virtual bool TrySignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public virtual bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten);
abstract member TrySignHash : ReadOnlySpan<byte> * Span<byte> * int -> bool
override this.TrySignHash : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Overridable Function TrySignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

매개 변수

hash
ReadOnlySpan<Byte>

서명되는 데이터의 해시 값입니다.

destination
Span<Byte>

서명을 받을 버퍼입니다.

bytesWritten
Int32

이 메서드가 반환되면 .에 destination기록된 총 바이트 수를 포함합니다. 이 매개 변수는 초기화되지 않은 것으로 처리됩니다.

반품

false가 서명을 받을 만큼 길지 않은 경우 destination

적용 대상

TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat, Int32)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 해시 값에 대한 ECDSA 서명을 지정된 형식으로 제공된 버퍼에 만들려고 시도합니다.

public:
 bool TrySignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, System::Security::Cryptography::DSASignatureFormat signatureFormat, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, System.Security.Cryptography.DSASignatureFormat signatureFormat, out int bytesWritten);
member this.TrySignHash : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.DSASignatureFormat * int -> bool
Public Function TrySignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), signatureFormat As DSASignatureFormat, ByRef bytesWritten As Integer) As Boolean

매개 변수

hash
ReadOnlySpan<Byte>

서명할 해시 값입니다.

destination
Span<Byte>

서명을 받을 버퍼입니다.

signatureFormat
DSASignatureFormat

서명에 사용할 인코딩 형식입니다.

bytesWritten
Int32

이 메서드가 반환되면 .에 기록 destination된 바이트 수를 나타내는 값이 포함됩니다. 이 매개 변수는 초기화되지 않은 것으로 처리됩니다.

반품

서명을 받을 수 있을 만큼 크면 /&이고, 그렇지 않으면 .

예외

signatureFormat 가 알려진 형식이 아닙니다.

서명 작업에서 오류가 발생했습니다.

적용 대상