## SymmetricAlgorithm::ValidKeySize method


检查密钥大小是否有效。

```cpp
bool System::Security::Cryptography::SymmetricAlgorithm::ValidKeySize(int bitLength)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| bitLength | int | 以位为单位的密钥大小。 |

### ReturnValue

如果密钥大小有效则为 True，否则为 false。

## 另见

* Class [SymmetricAlgorithm](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.Font for C++](../../../)
