Skip to content

Instantly share code, notes, and snippets.

@ilebedev
Created September 17, 2018 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilebedev/c04cc084624148145006d1f5d56419dd to your computer and use it in GitHub Desktop.
Save ilebedev/c04cc084624148145006d1f5d56419dd to your computer and use it in GitHub Desktop.
#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