Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Members
Members Description
uint8_t
remainingData[CRYPTO_CONFIG_BLOCK_MAX_SIZE];
Buffer to store data until more is avaliable if there is not
enough to encrypt an entire block.
uint32_t blockSize; Block size of the cipher algorithm being used with the block
cipher mode module
BLOCK_CIPHER_FunctionEncrypt encrypt; Encrypt function for the algorithm being used with the block
cipher mode module
BLOCK_CIPHER_FunctionDecrypt decrypt; Decrypt function for the algorithm being used with the block
cipher mode module
uint8_t bytesRemaining; Number of bytes remaining in the remainingData buffer
Module
ECB
Description
Context structure for the electronic codebook operation
1.7.1.2.2 BLOCK_CIPHER_ECB_Initialize Function
Initializes a ECB context for encryption/decryption.
File
block_cipher_mode_ecb.h
Syntax
void BLOCK_CIPHER_ECB_Initialize(BLOCK_CIPHER_ECB_CONTEXT * context,
BLOCK_CIPHER_FunctionEncrypt encryptFunction, BLOCK_CIPHER_FunctionDecrypt decryptFunction,
uint32_t blockSize);
Module
ECB
Returns
None.
Description
Initializes a ECB context for encryption/decryption. The user will specify details about the algorithm being used in ECB mode.
Preconditions
Any required initialization needed by the block cipher algorithm must have been performed.
Example
// Initialize the ECB block cipher module for use with AES.
SYS_MODULE_OBJ sysObject;
DRV_HANDLE handle;
BLOCK_CIPHER_ECB_CONTEXT context;
sysObject = DRV_AES_Initialize (DRV_AES_INDEX, NULL);
if (sysObject != SYS_MODULE_OBJ_STATIC)
{
// error
}
handle = DRV_AES_Open (DRV_AES_INDEX, 0);
if (handle != DRV_AES_HANDLE)
{
// error
}
1.7 Library Interface MLA - Crypto Library Help Block Cipher Modes
37
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_crypto.pdf