# 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
…
- 96
- 97
- 98
- 99
- 100
…
- 119
- 120

File
tdes.h
Syntax
void TDES_Decrypt(DRV_HANDLE handle, void* plain_text, void* cipher_text, void* key);
Module
TDES
Returns
None.
Description
Decrypts a 64-byte block of data using the Triple-DES algorithm.
Remarks
TDES should be used with a block cipher mode of operation. See block_cipher_modes.h for more information.
Preconditions
None
Parameters
Parameters Description
handle Pointer to the driver handle for an instance of a TDES
module being used to decrypt the ciphertext. This should be
specified as NULL for the pure software implementation of
TDES.
plainText Buffer for the 64-bit output block of plainText produced by
decrypting the cipherText.
cipherText The 64-bit block of cipherText to decrypt.
key Pointer to a set of round keys created with the
TDES_RoundKeysCreate function.
Function
void TDES_Decrypt(DRV_HANDLE handle, void* cipherText, void* plainText,
void* key)
1.7.4 XTEA
This section describes the Application Programming Interface (API) functions of the XTEA module.
Functions
Name Description
XTEA_Configure Configures the XTEA module.
None
XTEA_Encrypt Encrypts a 64-bit block of data using the XTEA algorithm.
None
XTEA_Decrypt Decrypts a 64-bit block of data using the XTEA algorithm.
None
Macros
Name Description
XTEA_BLOCK_SIZE The XTEA algorithm block size
1.7 Library Interface MLA - Crypto Library Help XTEA
98

- 1
- 2
…
- 96
- 97
- 98
- 99
- 100
…
- 119
- 120