Created
September 17, 2018 08:45
-
-
Save ilebedev/c04cc084624148145006d1f5d56419dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sha3/sha3.h> | |
/* Address of the base of S, at a location | |
specified by a linker script */ | |
extern const void* s_ptr; | |
/* Address of the size of S, at a location | |
specified by a linker script */ | |
extern const size_t* s_size; | |
// Measure the SM via SHA3-512 | |
uint8_t S_H[64]; | |
sha3(&s_ptr, *s_size, S_H, 64); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment