take a lazy approach to key agreement generation to not hold up boot time for nfc

This commit is contained in:
Conor Patrick
2019-08-20 21:27:52 +08:00
parent adcbd3aeb8
commit a72f0ede05
4 changed files with 18 additions and 7 deletions

View File

@@ -282,6 +282,11 @@ void crypto_ecc256_derive_public_key(uint8_t * data, int len, uint8_t * x, uint8
memmove(x,pubkey,32);
memmove(y,pubkey+32,32);
}
void crypto_ecc256_compute_public_key(uint8_t * privkey, uint8_t * pubkey)
{
uECC_compute_public_key(privkey, pubkey, _es256_curve);
}
void crypto_load_external_key(uint8_t * key, int len)
{