Vault 7: Projects

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

Preconditions
The hash context must be initialized with SHA512_Initialize.
Example
// Initialization for CRYPTO_HASH_CONFIG_SHA_SMALL_RAM
uint8_t data[] = "Hello.";
uint64_t buffer[16];
SHA512_CONTEXT context;
uint8_t digest[64];
SHA512_Initialize (&context, SHA2_512, buffer);
SHA512_DataAdd (&context, data, 6);
SHA512_Calculate (&context, digest);
Parameters
Parameters Description
context The context of the hash being calculated.
result A buffer to store the calculated hash digest. 48 bytes for
SHA-384, 64 bytes for SHA-512.
Function
void SHA512_Calculate ( SHA512_CONTEXT * context, uint8_t * result);
1.6 Library Interface MLA - Crypto Hash Library Help SHA-512
24
1

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh