# 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
…
- 83
- 84
- 85
- 86
- 87
…
- 119
- 120

AES_RoundKeysCreate Creates a set of round keys from an AES key to be used in AES
encryption and decryption of data blocks.
AES_Encrypt Encrypts a 128-bit block of data using the AES algorithm.
AES_Decrypt Decrypts a 128-bit block of data using the AES algorithm.
Macros
Name Description
DRV_AES_HANDLE Definition for a single drive handle for the software-only AES module
DRV_AES_INDEX Map of the default drive index to drive index 0
DRV_AES_INDEX_0 Definition for a single drive index for the software-only AES module
DRV_AES_INDEX_COUNT Number of drive indicies for this module
AES_BLOCK_SIZE The AES block size (16 bytes)
AES_KEY_SIZE_128_BIT Use an AES key length of 128-bits / 16 bytes.
AES_KEY_SIZE_192_BIT Use an AES key length of 192-bits / 24 bytes.
AES_KEY_SIZE_256_BIT Use an AES key length of 256-bits / 32 bytes.
AES_ROUND_KEYS Definition for the AES module's Round Key structure. Depending on the
configuration of the library, this could be defined as
AES_ROUND_KEYS_128_BIT, AES_ROUND_KEYS_192_BIT, or
AES_ROUND_KEYS_256_BIT.
Structures
Name Description
AES_ROUND_KEYS_128_BIT Definition of a 128-bit key to simplify the creation of a round key buffer for
the AES_RoundKeysCreate() function.
AES_ROUND_KEYS_192_BIT Definition of a 192-bit key to simplify the creation of a round key buffer for
the AES_RoundKeysCreate() function.
AES_ROUND_KEYS_256_BIT Definition of a 256-bit key to simplify the creation of a round key buffer for
the AES_RoundKeysCreate() function.
Description
This section describes the Application Programming Interface (API) functions of the AES module.
1.7.2.1 DRV_AES_HANDLE Macro
File
aes.h
Syntax
#define DRV_AES_HANDLE ((DRV_HANDLE) 0)
Module
AES
Description
Definition for a single drive handle for the software-only AES module
1.7.2.2 DRV_AES_INDEX Macro
File
aes.h
Syntax
#define DRV_AES_INDEX DRV_AES_INDEX_0
1.7 Library Interface MLA - Crypto Library Help AES
85

- 1
- 2
…
- 83
- 84
- 85
- 86
- 87
…
- 119
- 120