Vault 7: Projects

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

1.6.1.3 MD5_DataAdd Function
Adds data to a hash being calculated.
File
md5.h
Syntax
void MD5_DataAdd(MD5_CONTEXT* context, uint8_t* data, uint16_t len);
Module
MD5
Returns
None.
Description
This routine adds data to an MD5 hash being calculated. When the data length reaches a block size (64 bytes), this function
will calculate the hash over that block and store the current hash value in the hash context.
Remarks
None.
Preconditions
The hash context must be initialized with MD5_Initialize.
Example
uint8_t data[] = "Hello.";
MD5_CONTEXT context;
MD5_Initialize (&context);
MD5_DataAdd (&context, data, 6);
Parameters
Parameters Description
context The context of the hash being calculated.
data The data being added.
len The length of the data being added.
Function
void MD5_DataAdd( MD5_CONTEXT* context, uint8_t* data, uint16_t len);
1.6.1.4 MD5_Calculate Function
Finishes calculating a hash.
File
md5.h
Syntax
void MD5_Calculate(MD5_CONTEXT* context, uint8_t* result);
Module
MD5
1.6 Library Interface MLA - Crypto Hash Library Help MD5
12
1

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh