adding crypto

This commit is contained in:
hathach committed 2018-01-10 11:13:28 +07:00
1 parent 0586410d6d
commit a486bb4d2f
1 file changed
+5
@@ -38,6 +38,8 @@
#include "HAPUuid.h"
#include "HAPPairing.h"
#include "crypto/crypto.h"
// kTLV type for pairing
enum {
PAIRING_TYPE_METHOD = 0,
@@ -128,6 +130,9 @@ err_t HAPPairing::begin(void)
_pairing.setHapProperties(HAP_CHR_PROPS_SECURE_READ | HAP_CHR_PROPS_SECURE_WRITE);
VERIFY_STATUS( _pairing.begin() );
// Init cryptography
crypto_init();
return ERROR_NONE;
}