Skip to content

Instantly share code, notes, and snippets.

@ilebedev
Created September 17, 2018 07:43
Show Gist options
  • Save ilebedev/1221bf50c41ccd8d10e01774ffd83c2d to your computer and use it in GitHub Desktop.
Save ilebedev/1221bf50c41ccd8d10e01774ffd83c2d to your computer and use it in GitHub Desktop.
uint8_t secret_entropy[64];
uint8_t pk[32];
uint8_t sk[64];
#include <ed25519/ed25519.h>
/* This seed is as valuable as the secret key,
so make sure it comes from a trustworthy source
and will remian private. */
// Read/generate the secret seed from which keys are created
// TODO: get_trusted_entropy(secret_entropy);
// generate manufacturer's keys
ed25519_create_keypair(pk, sk, secret_entropy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment