# 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
- 3
- 4
…
- 119
- 120

Table of Contents
1 Crypto Library 6
1.1 Introduction 7
1.2 Legal Information 8
1.3 Release Notes 9
1.4 Using the Library 10
1.4.1 Abstraction Model 10
1.4.2 Library Overview 16
1.4.3 How the Library Works 17
1.4.3.1 Block Ciphers 17
1.4.3.1.1 Modes of Operation 17
1.4.3.1.2 AES 19
1.4.3.1.3 TDES 19
1.4.3.1.4 XTEA 19
1.4.3.2 ARCFOUR 20
1.4.3.3 RSA 20
1.5 Configuring the Library 22
1.5.1 CRYPTO_CONFIG_AES_KEY_128_ENABLE Macro 22
1.5.2 CRYPTO_CONFIG_AES_KEY_192_ENABLE Macro 22
1.5.3 CRYPTO_CONFIG_AES_KEY_256_ENABLE Macro 23
1.5.4 CRYPTO_CONFIG_AES_KEY_DYNAMIC_ENABLE Macro 23
1.5.5 CRYPTO_CONFIG_BLOCK_MAX_SIZE Macro 23
1.6 Building the Library 24
1.6.1 Block Cipher Modes 24
1.6.2 AES 24
1.6.3 TDES 25
1.6.4 XTEA 25
1.6.5 ARCFOUR 25
1.6.6 RSA 26
1.7 Library Interface 27
1.7.1 Block Cipher Modes 27
1.7.1.1 General Functionality 27
1.7.1.1.1 Options 28
1.7.1.1.1.1 BLOCK_CIPHER_OPTION_AUTHENTICATE_ONLY Macro 29
1.7.1.1.1.2 BLOCK_CIPHER_OPTION_STREAM_START Macro 29
1.7.1.1.1.3 BLOCK_CIPHER_OPTION_STREAM_CONTINUE Macro 29
1.7.1.1.1.4 BLOCK_CIPHER_OPTION_STREAM_COMPLETE Macro 30
MLA - Crypto Library Help
2

- 1
- 2
- 3
- 4
…
- 119
- 120