Share via


ECDsa.TrySignDataCore Yöntem

Tanım

Belirtilen veriler için belirtilen biçimdeki ECDSA imzasını sağlanan arabelleğe oluşturmaya çalışır.

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

Parametreler

data
ReadOnlySpan<Byte>

Karma ve imza için veriler.

destination
Span<Byte>

İmzayı alacak arabellek.

hashAlgorithm
HashAlgorithmName

Karma değeri oluşturmak için kullanılacak karma algoritması.

signatureFormat
DSASignatureFormat

İmza için kullanılacak kodlama biçimi.

bytesWritten
Int32

Bu yöntem döndürdüğünde, öğesine yazılan destinationbayt sayısını gösteren bir değer içerir. Bu parametre başlatılmamış olarak değerlendirilir.

Döndürülenler

true eğer imzayı alacak kadar büyükse destination ; değilse, false.

Özel durumlar

İmzalama işleminde bir hata oluştu.

Şunlara uygulanır