## SymmetricAlgorithm::ValidKeySize method


Checks if key size is valid.

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


| Parameter | Type | Description |
| --- | --- | --- |
| bitLength | int | Key size in bits. |

### ReturnValue

True if key size is valid, false otherwise.

## See Also

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