SymmetricAlgorithm.ValidKeySize(Int32) SymmetricAlgorithm.ValidKeySize(Int32) SymmetricAlgorithm.ValidKeySize(Int32) SymmetricAlgorithm.ValidKeySize(Int32) Method

定义

确定指定的密钥大小对当前算法是否有效。Determines whether the specified key size is valid for the current algorithm.

public:
 bool ValidKeySize(int bitLength);
public bool ValidKeySize (int bitLength);
member this.ValidKeySize : int -> bool
Public Function ValidKeySize (bitLength As Integer) As Boolean

参数

bitLength
Int32 Int32 Int32 Int32

用于检查有效密钥大小的长度(以位为单位)。The length, in bits, to check for a valid key size.

返回

如果指定的密钥大小对当前算法有效,则为 true;否则,为 falsetrue if the specified key size is valid for the current algorithm; otherwise, false.

适用于

另请参阅