Share via


AlgorithmIdentifier.KeyLength 屬性

定義

KeyLength 屬性會設定或擷取金鑰長度 (位元數)。 使用固定金鑰長度的演算法不使用此屬性。

public:
 property int KeyLength { int get(); void set(int value); };
public int KeyLength { get; set; }
member this.KeyLength : int with get, set
Public Property KeyLength As Integer

屬性值

int 值表示金鑰長度 (位元數)。

備註

由於密鑰長度的 ASN.1 編碼限制,因此 RC4 加密演算法會估計此屬性的值;不保證正確。

適用於

另請參閱