# 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
…
- 31
- 32
- 33
- 34
- 35
…
- 119
- 120

1.7.1.1.1.18 BLOCK_CIPHER_OPTION_CTR_64BIT Macro
File
block_cipher_modes.h
Syntax
#define BLOCK_CIPHER_OPTION_CTR_64BIT
Description
Treat the counter as a 64-bit counter. Leave the remaining section of the counter unchanged
1.7.1.1.1.19 BLOCK_CIPHER_OPTION_CTR_128BIT Macro
File
block_cipher_modes.h
Syntax
#define BLOCK_CIPHER_OPTION_CTR_128BIT
Description
Treat the counter as a full 128-bit counter. This is the default option.
1.7.1.1.2 BLOCK_CIPHER_ERRORS Enumeration
File
block_cipher_modes.h
Syntax
typedef enum {
BLOCK_CIPHER_ERROR_NONE = (0x00000000u),
BLOCK_CIPHER_ERROR_KEY_STREAM_GEN_OUT_OF_SPACE,
BLOCK_CIPHER_ERROR_CTR_COUNTER_EXPIRED,
BLOCK_CIPHER_ERROR_INVALID_AUTHENTICATION
} BLOCK_CIPHER_ERRORS;
Members
Members Description
BLOCK_CIPHER_ERROR_NONE = (0x00000000u) No errors.
BLOCK_CIPHER_ERROR_KEY_STREAM_GEN_OUT_OF_SPACE The calling function has requested that more bits be
added to the key stream then are available in the
buffer allotted for the key stream. Since there was not
enough room to complete the request, the request
was not processed.
BLOCK_CIPHER_ERROR_CTR_COUNTER_EXPIRED The requesting call has caused the counter number
to run out of unique combinations. In CTR mode it is
not safe to use the same counter value for a given
key.
BLOCK_CIPHER_ERROR_INVALID_AUTHENTICATION Authentication of the specified data failed.
Module
General Functionality
Description
Enumeration defining potential errors the can occur when using a block cipher mode of operation. Modes that do not use
keystreams will not generate errors.
1.7 Library Interface MLA - Crypto Library Help Block Cipher Modes
33

- 1
- 2
…
- 31
- 32
- 33
- 34
- 35
…
- 119
- 120