Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.6.4.1 SHA512_BIT_LENGTH Enumeration
File
sha512.h
Syntax
typedef enum {
SHA2_384,
SHA2_512
} SHA512_BIT_LENGTH;
Members
Members Description
SHA2_384 SHA-384 hash
SHA2_512 SHA-512 hash
Module
SHA-512
Section
Data Types
************************************************************************
Enumeration for selecting digest bit length
1.6.4.2 SHA512_CONTEXT Structure
File
sha512.h
Syntax
typedef struct {
uint64_t h[8];
uint32_t totalBytes;
uint8_t partialBlock[128];
uint64_t * workingBuffer;
SHA512_BIT_LENGTH length;
} SHA512_CONTEXT;
Members
Members Description
uint64_t h[8]; Hash state
uint32_t totalBytes; Total number of bytes hashed so far
uint8_t partialBlock[128]; Beginning of the next 128 byte block
uint64_t * workingBuffer; 80 word uint64_t working buffer
SHA512_BIT_LENGTH length; Type of hash being calculated (SHA-384 or SHA-512)
Module
SHA-512
Description
Context storage for hash operation
1.6 Library Interface MLA - Crypto Hash Library Help SHA-512
21
1
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_crypto_hash.pdf