Key generation and usage

Updated: April 19, 2023

The qcrypto library supports various types of cryptographic keys.

For detailed information about key generation functions, see qcrypto_keys.h.

Key requirements

The recommended key lengths depend on the application and the level of security required. For the NIST recommendations for key lengths, go to https://www.keylength.com/en/4/.

Symmetric keys

For the symmetric keys used in symmetric cryptographic primitives like AES, the size of the key depends on the symmetric algorithm.

Asymmetric keys