DSACryptoServiceProvider.KeySize 属性

定义

获取不对称算法使用的密钥的大小(以位为单位)。Gets the size of the key used by the asymmetric algorithm in bits.

public:
 virtual property int KeySize { int get(); };
public override int KeySize { get; }
member this.KeySize : int
Public Overrides ReadOnly Property KeySize As Integer

属性值

不对称算法使用的密钥的大小。The size of the key used by the asymmetric algorithm.

注解

此算法支持从512位到1024位的密钥长度(以64位为增量)。This algorithm supports key lengths from 512 bits to 1024 bits in increments of 64 bits.

类不允许KeySize使用属性更改密钥大小。 DSACryptoServiceProviderThe DSACryptoServiceProvider class does not allow you to change key sizes using the KeySize property. 写入此属性的任何值都将无法更新属性,且不会出错。Any value written to this property will fail to update the property without error. 若要更改密钥大小,请使用构造函数重载之一。To change the key size, use one of the constructor overloads.

适用于

另请参阅