Vault 7: Projects

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

Preconditions
None
Parameters
Parameters Description
handle A driver handle. If the encryption module you are using has
multiple instances, this handle will be used to differentiate
them. For single instance encryption modules (software-only
modules) this parameter can be specified as NULL.
cipherText The resultant cipherText produced by the encryption. The
type of pointer used for this parameter will be dependent on
the block cipher module you are using.
plainText The plainText that will be encrypted. 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_FunctionEncrypt (
DRV_HANDLE handle, void * cipherText,
void * plainText, void * key)
1.7.1.1.5 BLOCK_CIPHER_FunctionDecrypt Type
File
block_cipher_modes.h
Syntax
typedef void (* BLOCK_CIPHER_FunctionDecrypt)(DRV_HANDLE handle, void * plainText, void *
cipherText, void * key);
Module
General Functionality
Side Effects
None
Returns
None
Description
Function pointer for a block cipher's decryption function. When using the block cipher modes of operation module, you will
configure it to use the decrypt function of the block cipher module that you are using with a pointer to that block cipher's
encrypt function.
None
Remarks
None
Preconditions
None
1.7 Library Interface MLA - Crypto Library Help Block Cipher Modes
35

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh