Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Parameters
Parameters Description
handle A driver handle. If the decryption module you are using has
multiple instances, this handle will be used to differentiate
them. For single instance decryption modules (software-only
modules) this parameter can be specified as NULL.
plainText The resultant plainText that was decrypted. The type of
pointer used for this parameter will be dependent on the
block cipher module you are using.
cipherText The cipherText that will be decrypted. The type of pointer
used for this parameter will be dependent on the block cipher
module you are using.
key Pointer to the key. The format and length of the key depends
on the block cipher module you are using.
Function
void BLOCK_CIPHER_FunctionDecrypt (
DRV_HANDLE handle, void * cipherText,
void * plainText, void * key)
1.7.1.2 ECB
Describes functionality specific to the Electronic Codebook (ECB) block cipher mode of operation.
Functions
Name Description
BLOCK_CIPHER_ECB_Initialize Initializes a ECB context for encryption/decryption.
BLOCK_CIPHER_ECB_Encrypt Encrypts plain text using electronic codebook mode.
BLOCK_CIPHER_ECB_Decrypt Decrypts cipher text using cipher-block chaining mode.
Structures
Name Description
BLOCK_CIPHER_ECB_CONTEXT Context structure for the electronic codebook operation
Description
Describes functionality specific to the Electronic Codebook (ECB) block cipher mode of operation.
1.7.1.2.1 BLOCK_CIPHER_ECB_CONTEXT Structure
File
block_cipher_mode_ecb.h
Syntax
typedef struct {
uint8_t remainingData[CRYPTO_CONFIG_BLOCK_MAX_SIZE];
uint32_t blockSize;
BLOCK_CIPHER_FunctionEncrypt encrypt;
BLOCK_CIPHER_FunctionDecrypt decrypt;
uint8_t bytesRemaining;
} BLOCK_CIPHER_ECB_CONTEXT;
1.7 Library Interface MLA - Crypto Library Help Block Cipher Modes
36

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh