ECDsa.GetMaxSignatureSize(DSASignatureFormat) Method

Definition

Gets the largest size, in bytes, for a signature produced by this key in the indicated format.

C#
public int GetMaxSignatureSize(System.Security.Cryptography.DSASignatureFormat signatureFormat);

Parameters

signatureFormat
DSASignatureFormat

The encoding format for a signature.

Returns

The largest size, in bytes, for a signature produced by this key in the indicated format.

Exceptions

signatureFormat is not a known format.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9