Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Functions
Name Description
SHA256_Initialize Initializes a SHA-256 context to perform a SHA-256 hash.
SHA256_DataAdd Adds data to a hash being calculated.
SHA256_Calculate Finishes calculating a hash.
Structures
Name Description
SHA256_CONTEXT Context storage for hash operation
Description
1.6.3.1 SHA256_BIT_LENGTH Enumeration
File
sha256.h
Syntax
typedef enum {
SHA2_224,
SHA2_256
} SHA256_BIT_LENGTH;
Members
Members Description
SHA2_224 SHA-224 hash
SHA2_256 SHA-256 hash
Module
SHA-256
Description
Enumeration for selecting output bit length
1.6.3.2 SHA256_CONTEXT Structure
File
sha256.h
Syntax
typedef struct {
uint32_t h[8];
uint32_t totalBytes;
uint8_t partialBlock[64];
uint32_t * workingBuffer;
SHA256_BIT_LENGTH length;
} SHA256_CONTEXT;
Members
Members Description
uint32_t h[8]; Hash state
uint32_t totalBytes; Total number of bytes hashed so far
uint8_t partialBlock[64]; Beginning of next 64 byte block
1.6 Library Interface MLA - Crypto Hash Library Help SHA-256
17
1
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_crypto_hash.pdf