Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

1.5 Configuring the Library
Describes the crypto library configuration.
Macros
Name Description
CRYPTO_CONFIG_AES_KEY_128_ENABLE Define this macro to only use 128-bit key lengths
CRYPTO_CONFIG_AES_KEY_192_ENABLE Define this macro to only use 192-bit key lengths
CRYPTO_CONFIG_AES_KEY_256_ENABLE Define this macro to use 256-bit key lengths. Enabling this will
actually enable CRYPTO_CONFIG_AES_KEY_DYNAMIC
CRYPTO_CONFIG_AES_KEY_DYNAMIC_ENABLE Define this macro to dynamically determine key length at runtime
CRYPTO_CONFIG_BLOCK_MAX_SIZE Block Cipher Configuration options (AES, TDES, XTEA)
Description
The configuration of the crypto library is based on the file crypto_config.h. This file (or the definitions it describes) must be
included in a header named system_config.h, which will be included directly by the library source files.
The crypto_config.h header file contains the configuration selection for this cryptographic library, including configuration for
the AES module and general configuration for the block cipher mode module. Based on the selections made, the crypto
library will support or not support selected features. These configuration settings will apply to all instances of the crypto
library.
This header can be placed anywhere; however, the path of this header needs to be present in the include search path for a
successful build.
1.5.1 CRYPTO_CONFIG_AES_KEY_128_ENABLE Macro
File
crypto_config_template.h
Syntax
#define CRYPTO_CONFIG_AES_KEY_128_ENABLE
Description
Define this macro to only use 128-bit key lengths
1.5.2 CRYPTO_CONFIG_AES_KEY_192_ENABLE Macro
File
crypto_config_template.h
Syntax
#define CRYPTO_CONFIG_AES_KEY_192_ENABLE
Description
Define this macro to only use 192-bit key lengths
1.5 Configuring the Library MLA - Crypto Library Help CRYPTO_CONFIG_AES_KEY_256_ENA
22

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh