# 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
…
- 47
- 48
- 49
- 50
- 51
…
- 119
- 120

1.7.1.4 CFB
Describes functionality specific to the Cipher Feedback (CFB) block cipher mode of operation.
Functions
Name Description
BLOCK_CIPHER_CFB_Initialize Initializes a CFB context for encryption/decryption.
BLOCK_CIPHER_CFB_Encrypt Encrypts plain text using cipher feedback mode.
BLOCK_CIPHER_CFB_Decrypt Decrypts cipher text using cipher-block chaining mode.
Structures
Name Description
BLOCK_CIPHER_CFB_CONTEXT Context structure for a cipher feedback operation
Description
Describes functionality specific to the Cipher Feedback (CFB) block cipher mode of operation.
1.7.1.4.1 BLOCK_CIPHER_CFB_CONTEXT Structure
File
block_cipher_mode_cfb.h
Syntax
typedef struct {
uint8_t initializationVector[CRYPTO_CONFIG_BLOCK_MAX_SIZE];
uint32_t blockSize;
BLOCK_CIPHER_FunctionEncrypt encrypt;
BLOCK_CIPHER_FunctionDecrypt decrypt;
uint8_t bytesRemaining;
} BLOCK_CIPHER_CFB_CONTEXT;
Members
Members Description
uint8_t
initializationVector[CRYPTO_CONFIG_BLOCK_MAX_SIZE];
Initialization vector for the CFB operation
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
CFB
Description
Context structure for a cipher feedback operation
1.7.1.4.2 BLOCK_CIPHER_CFB_Initialize Function
Initializes a CFB context for encryption/decryption.
File
block_cipher_mode_cfb.h
1.7 Library Interface MLA - Crypto Library Help Block Cipher Modes
49

- 1
- 2
…
- 47
- 48
- 49
- 50
- 51
…
- 119
- 120