DSA.TrySignData 메서드

정의

오버로드

Name Description
TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

지정된 데이터에 대한 DSA 서명을 제공된 버퍼에 만들려고 시도합니다.

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

지정된 데이터에 대한 DSA 서명을 지정된 형식으로 만들어 제공된 버퍼에 넣으려고 시도합니다.

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs

지정된 데이터에 대한 DSA 서명을 제공된 버퍼에 만들려고 시도합니다.

public:
 virtual bool TrySignData(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, [Runtime::InteropServices::Out] int % bytesWritten);
public virtual bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten);
abstract member TrySignData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * int -> bool
override this.TrySignData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * int -> bool
Public Overridable Function TrySignData (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된 바이트 수를 나타내는 값이 포함됩니다.

반품

결과를 받을 수 있을 만큼 크면 /&이고, 그렇지 않으면 .

적용 대상

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs

지정된 데이터에 대한 DSA 서명을 지정된 형식으로 만들어 제공된 버퍼에 넣으려고 시도합니다.

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

매개 변수

data
ReadOnlySpan<Byte>

해시 및 서명할 데이터입니다.

destination
Span<Byte>

서명을 받을 버퍼입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

signatureFormat
DSASignatureFormat

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

bytesWritten
Int32

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

반품

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

예외

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

hashAlgorithm가 있거나 비어 Name있습니다null.

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

적용 대상