Last active
September 18, 2018 21:51
-
-
Save ilebedev/f1893dbcad8518b0cff3a663fe500e4c 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
/* 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