verify the pinAuth parameter with hmac

This commit is contained in:
Conor Patrick
2018-05-18 12:20:22 -04:00
parent 8932dcb624
commit 8020e868f9
3 changed files with 72 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ void crypto_sha256_update(uint8_t * data, size_t len);
void crypto_sha256_update_secret();
void crypto_sha256_final(uint8_t * hash);
void crypto_sha256_hmac(uint8_t * key, uint32_t klen, uint8_t * data, uint32_t datalen, uint8_t * hmac);
void crypto_ecc256_init();
void crypto_ecc256_derive_public_key(uint8_t * data, int len, uint8_t * x, uint8_t * y);