Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.5 Configuring the Library
Configuration information for the Crypto Hash Library.
Macros
Name Description
CRYPTO_HASH_CONFIG_SHA_SMALL_RAM Allows the user to select an alternate implementation for the working
buffers used by the SHA hash algorithm family.
Description
The configuration of the Crypto Hash module is based on the file sha_config.h. A copy of this file should be included in the
system_config.h header file used to set system configuration.
Based on the selections made, the Cypto Hash module will support or not support selected features. These configuration
settings will apply to all instances of this module.
The sha_config and system_config headers can be placed anywhere; however, the path of these headers needs to be
present in the include search path for a successful build. Refer to the Application Overview section for more details.
1.5.1 CRYPTO_HASH_CONFIG_SHA_SMALL_RAM Macro
Allows the user to select an alternate implementation for the working buffers used by the SHA hash algorithm family.
File
sha_config_template.h
Syntax
#define CRYPTO_HASH_CONFIG_SHA_SMALL_RAM
Description
The CRYPTO_HASH_CONFIG_SHA_SMALL_RAM option will decrease the required size of the working buffers for the
SHA hash family. Enabling this configuration option will reduce the required RAM buffer size to 16 words. The word size
depends on the algorithm: for SHA-1, SHA-224, and SHA-256, the word size is 32 bits. For SHA-384 and SHA-512, the word
size is 64 bits. Enabling this option will slightly decrease performance.
1.5 Configuring the Library MLA - Crypto Hash Library Help CRYPTO_HASH_CONFIG_SHA_SMALL
9
1
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_crypto_hash.pdf