# Vault 7: Projects

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

### Protego

# MLA -- Crypto Library

1 January, 2012

- 1
- 2
…
- 22
- 23
- 24
- 25
- 26
…
- 119
- 120

1.6 Building the Library
Describes source files used by the crypto library.
Description
This section lists the files that are available in the \src of the crypto library. It lists which files need to be included in the build
based on either a hardware feature present on the board or configuration option selected by the system.
1.6.1 Block Cipher Modes
This section describes the source files that must be included when building the block cipher modes of operation.
Description
This section describes the source files that must be included when building the AES module.
These files are located in the
crypto/src/block_cipher_modes
directory.
File Description Conditions
block_cipher_mode_private.c Contains general purpose non-public functions. Must be included.
block_cipher_mode_cbc.c Contains functions used for the CBC mode of
operation.
Must be included when using CBC
mode.
block_cipher_mode_cfb.c Contains functions used for the CFB mode of
operation.
Must be included when using CFB
mode.
block_cipher_mode_ofb.c Contains functions used for the OFB mode of
operation.
Must be included when using OFB
mode.
block_cipher_mode_ctr.c Contains functions used for the CTR mode of
operation.
Must be included when using CTR
mode.
block_cipher_mode_ecb.c Contains functions used for the ECB mode of
operation.
Must be included when using ECB
mode.
block_cipher_mode_gcm.c Contains functions used for the GCM mode of
operation.
Must be included when using GCM
mode.
1.6.2 AES
This section describes the source files that must be included when building the AES module.
Description
This section describes the source files that must be included when building the AES module.
16-bit PICs
These files are located in the
crypto/src/aes/16bit
directory.
File Description Conditions
aes.c Contains general purpose AES functions. Must be included.
aes_encrypt_16bit.s Contains functions for encrypting plainText. Must be included when encrypting data.
1.6 Building the Library MLA - Crypto Library Help AES
24

- 1
- 2
…
- 22
- 23
- 24
- 25
- 26
…
- 119
- 120