# 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
…
- 54
- 55
- 56
- 57
- 58
…
- 119
- 120

1.7.1.5.1 BLOCK_CIPHER_OFB_CONTEXT Structure
File
block_cipher_mode_ofb.h
Syntax
typedef struct {
uint8_t initializationVector[CRYPTO_CONFIG_BLOCK_MAX_SIZE];
BLOCK_CIPHER_FunctionEncrypt encrypt;
BLOCK_CIPHER_FunctionDecrypt decrypt;
void * keyStream;
void * keyStreamCurrentPosition;
uint32_t keyStreamSize;
uint32_t bytesRemainingInKeyStream;
uint32_t blockSize;
} BLOCK_CIPHER_OFB_CONTEXT;
Members
Members Description
uint8_t
initializationVector[CRYPTO_CONFIG_BLOCK_MAX_SIZE];
Initialization vector for the CFB operation
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
void * keyStream; Pointer to the key stream. Must be a multiple of the cipher's
block size, but smaller than 2^25 bytes.
void * keyStreamCurrentPosition; Pointer to the current position in the key stream.
uint32_t keyStreamSize; Size of the key stream.
uint32_t bytesRemainingInKeyStream; Number of bytes remaining in the key stream
uint32_t blockSize; Block size of the cipher algorithm being used with the block
cipher mode module
Module
OFB
Description
Context structure for the output feedback operation
1.7.1.5.2 BLOCK_CIPHER_OFB_Initialize Function
Initializes a OFB context for encryption/decryption.
File
block_cipher_mode_ofb.h
Syntax
void BLOCK_CIPHER_OFB_Initialize(BLOCK_CIPHER_OFB_CONTEXT * context,
BLOCK_CIPHER_FunctionEncrypt encryptFunction, BLOCK_CIPHER_FunctionDecrypt decryptFunction,
uint32_t blockSize, uint8_t * initializationVector, void * keyStream, uint32_t
keyStreamSize);
Module
OFB
Returns
None.
1.7 Library Interface MLA - Crypto Library Help Block Cipher Modes
56

- 1
- 2
…
- 54
- 55
- 56
- 57
- 58
…
- 119
- 120