fix more build error

This commit is contained in:
hathach committed 2018-01-09 20:56:36 +07:00
1 parent 1999d023ba
commit 0586410d6d
2 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ void crypto_init(void)
{
srp_init();
crypto_sign_keypair(crypto_keys.sign.public, crypto_keys.sign.secret);
crypto_sign_keypair(crypto_keys.sign.pub, crypto_keys.sign.secret);
// Store for reuse
crypto_scheduleStoreKeys();
+10 -1
View File
@@ -18,6 +18,11 @@
#include "srp/srp.h"
#include "random.h"
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct
{
struct
@@ -29,7 +34,7 @@ typedef struct
struct
{
uint8_t __ignore__[32];
uint8_t public[32];
uint8_t pub[32];
};
};
} sign;
@@ -56,4 +61,8 @@ extern void crypto_transportEncrypt(uint8_t* key, uint8_t* nonce, uint8_t* plain
extern uint8_t crypto_transportDecrypt(uint8_t* key, uint8_t* nonce, uint8_t* ciphertext, uint16_t clength, uint8_t* plaintext, uint16_t* plength);
extern uint8_t crypto_advertise(void);
#ifdef __cplusplus
}
#endif
#endif /* HOMEKIT_CRYPTO_H_ */