DSA.GetMaxSignatureSize(DSASignatureFormat) 方法

定义

获取此密钥按指定格式生成的签名的最大尺寸(以字节为单位)。Gets the largest size, in bytes, for a signature produced by this key in the indicated format.

public:
 int GetMaxSignatureSize(System::Security::Cryptography::DSASignatureFormat signatureFormat);
public int GetMaxSignatureSize (System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.GetMaxSignatureSize : System.Security.Cryptography.DSASignatureFormat -> int
Public Function GetMaxSignatureSize (signatureFormat As DSASignatureFormat) As Integer

参数

signatureFormat
DSASignatureFormat

签名的编码格式。The encoding format for a signature.

返回

Int32

此密钥按指定格式生成的签名的最大尺寸(以字节为单位)。The largest size, in bytes, for a signature produced by this key in the indicated format.

例外

signatureFormat 不是已知格式。signatureFormat is not a known format.

适用于