Skip to content

Instantly share code, notes, and snippets.

@ilebedev
Last active September 18, 2018 21:51
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/f1893dbcad8518b0cff3a663fe500e4c to your computer and use it in GitHub Desktop.
Save ilebedev/f1893dbcad8518b0cff3a663fe500e4c to your computer and use it in GitHub Desktop.
/* The unique public key assigned by M
to one of the devices it has manufactured. */
extern uint8_t PK_T[64];
/* The manufacturer's cryptographic key pair
is extremely sensitive information. */
extern uint8_t PK_M[32];
extern uint8_t SK_M[64];
/* The endorsement. */
extern uint8_t PK_T_sig[64];
/* Compute the endorsement of PK_T by M */
ed25519_sign(PK_T_sig, PK_T, 32, PK_M, SK_M);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment