Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.7.1.1.3 BLOCK_CIPHER_MODES Enumeration
File
block_cipher_modes.h
Syntax
typedef enum {
BLOCK_CIPHER_MODE_ECB = 0,
BLOCK_CIPHER_MODE_CBC,
BLOCK_CIPHER_MODE_CFB,
BLOCK_CIPHER_MODE_OFB,
BLOCK_CIPHER_MODE_CTR
} BLOCK_CIPHER_MODES;
Members
Members Description
BLOCK_CIPHER_MODE_ECB = 0 Electronic Codebook mode
BLOCK_CIPHER_MODE_CBC Cipher-block Chaining mode
BLOCK_CIPHER_MODE_CFB Cipher Feedback mode
BLOCK_CIPHER_MODE_OFB Output Feedback mode
BLOCK_CIPHER_MODE_CTR Counter mode
Module
General Functionality
Description
Enumeration defining available block cipher modes of operation
1.7.1.1.4 BLOCK_CIPHER_FunctionEncrypt Type
File
block_cipher_modes.h
Syntax
typedef void (* BLOCK_CIPHER_FunctionEncrypt)(DRV_HANDLE handle, void * cipherText, void *
plainText, void * key);
Module
General Functionality
Side Effects
None
Returns
None
Description
Function pointer for a block cipher's encryption function. When using the block cipher modes of operation module, you will
configure it to use the encrypt function of the block cipher module that you are using with a pointer to that block cipher's
encrypt function.
None
Remarks
None
1.7 Library Interface MLA - Crypto Library Help Block Cipher Modes
34
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_crypto.pdf