Vault 7: Projects

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

1.7.5.1 ARCFOUR_CONTEXT Structure
File
arcfour.h
Syntax
typedef struct {
uint8_t * sBox;
uint8_t iterator;
uint8_t coiterator;
} ARCFOUR_CONTEXT;
Members
Members Description
uint8_t * sBox; A pointer to a 256 byte S-box array
uint8_t iterator; The iterator variable
uint8_t coiterator; The co-iterator
Module
ARCFOUR
Description
Encryption Context for ARCFOUR module. The program need not access any of these values directly, but rather only store
the structure and use ARCFOUR_CreateSBox to set it up.
1.7.5.2 ARCFOUR_CreateSBox Function
Initializes an ARCFOUR encryption stream.
File
arcfour.h
Syntax
void ARCFOUR_CreateSBox(ARCFOUR_CONTEXT* context, uint8_t * sBox, uint8_t* key, uint16_t
key_length);
Module
ARCFOUR
Returns
None
Description
This function initializes an ARCFOUR encryption stream. Call this function to set up the initial state of the encryption context
and the S-box. The S-box will be initialized to its zero state with the supplied key.
This function can be used to initialize for encryption and decryption.
Remarks
For security, the key should be destroyed after this call.
Preconditions
None.
1.7 Library Interface MLA - Crypto Library Help ARCFOUR
102

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh